Version Detector
An API for datapacks to detect your Minecraft Version
Über diese Mod
Version Detector is a proof of concept that more is possible with datapacks than you'd think, and also an API for datapacks to detect what version they're running.
It doesn't do much on its own, but can be useful for other datapacks.
Note: when adding the datapack to a world, if you're using a game version older than 1.20.2, Minecraft will warn you that the pack was made for an older version of Minecraft. Ignore this warning, I can't do anything about it on versions older than 1.20.2 as the feature of pack.mcmeta that allows me to add a range of supported versions instead of having just 1 was added in 1.20.2.
Questions/Issues? Post them in my discord as they are more likely to get seen there. Find it on the sidebar.
This pack uses the fact that Minecraft completely removes functions with invalid syntax when loading a datapack, for example "execute if entity @e[type=pillager]" is invalid syntax in 1.13, because Pillagers don't exist yet, causing the whole function to get removed in 1.13, but the function will load successfully and will exist in 1.14 and later because there is no more invalid syntax because Pillagers were added, and the command was written correctly. Each function sets a number in a scoreboard objective to a number and runs the next function, which has a different syntax to the previous one, for example "execute if entity @e[type=bee]" instead of "execute if entity @e[type=pillager]" when moving from the 1.14 function to the 1.15 function, checking for a different feature. If at any point the chain stops, the number stops changing, which matches your version of Minecraft.
The ID is stored in a score for "MinecraftVersion" in the "VersionInfo" objective. It goes from 0 (1.13) up to whatever the latest detectable version is.
This pack also has NeoForge and Forge detection. Fabric and Quilt are currently undetectable, as there is nothing I can detect that fabric or quilt (without mods installed) adds to the game.
To Modpack Creators:
I permit the use of this datapack/mod in your modpacks. You can include it in modpacks without the need to ask me about it. However, notifying me if it is being included in your modpack would be nice.
Versions Detected
List of versions detected, in order from oldest to newest, starting at ID 0 (1.13) and going up (if a version isn't in this list it is grouped with the newest version from before the version, example 1.21.3 is grouped with 1.21.2):
Releases/Snapshots
- 1.13
- 1.13.1
- 1.14
- 1.14.3
- 1.14.4
- 1.15
- 1.15.2
- 1.16
- 1.16.2
- 1.17
- 1.18
- 1.18.2
- 1.19
- 1.19.3
- 1.19.4
- 1.20
- 1.20.2
- 1.20.3
- 1.20.5
- 1.21
- 1.21.2
- 1.21.4
- 25w02a
- 25w03a
- 25w04a
- 25w05a
- 25w06a
- 25w07a
- 25w08a
- 25w09a
- 25w10a
- 1.21.5
- 25w15a
- 25w20a
- 1.21.6
- 1.21.7-1.21.8
- 25w31a
- 25w32a
- 25w34a
- 25w35a
- 25w36a
- 1.21.9-1.21.10
- 25w41a
- 25w42a
- 25w43a
- 25w44a
- 1.21.11
- 26.1 Snapshot 1 (Yay new versioning system)
- 26.1 Snapshot 2
- 26.1 Snapshot 3
- 26.1 Snapshot 4
- 26.1 Snapshot 5
- 26.1 Snapshot 6 - Snapshot 7 (Don't you DARE say it)
- 26.1 Snapshot 8 - Snapshot 9
- 26.1 Snapshot 10
- 26.1 Snapshot 11
- 26.1
April Fools Snapshots:
- 20w14infinite
- 22w13oneBlockAtATime
- 23w13a_or_b
- 24w14potato
Currently no 25w14craftmine yet, been too lazy to add that
Verfügbare Versionen
Version Detector auf dem Server installieren
Server bestellen
Bestelle einen Minecraft Java Server mit mindestens 3 GB RAM (4 GB empfohlen).
datapack Loader setzen
Wähle im Panel unter "Egg" den datapack-Loader und die passende Minecraft-Version (26.1).
Mod installieren
Öffne den Mod-Browser im Dashboard und suche nach "Version Detector". Klicke "Installieren" – fertig! Alternativ: Lade die .jar via SFTP in den /mods Ordner.
Kompatibilität
Mod-Loader
Minecraft-Versionen
26.1, 26.1-rc-3, 26.1-rc-2 (+166 weitere)
Server-seitig
✓ ErforderlichEmpfohlener RAM
4 GB(min. 3 GB)Häufige Fragen
Version Detector Server crasht beim Start – was tun?
Häufigste Ursache: falsche datapack-Version oder zu wenig RAM. Prüfe im Server-Log (latest.log), ob ein "OutOfMemoryError" oder "Mixin"-Fehler auftritt. Bei Mado Hosting: Stelle sicher, dass mindestens 3 GB RAM zugewiesen sind und der Loader zur Mod-Version passt (26.1). Über das Panel kannst du den Loader mit einem Klick wechseln.
Ist Version Detector mit datapack und fabric und forge und neoforge und quilt kompatibel?
Version Detector unterstützt offiziell datapack, fabric, forge, neoforge, quilt für Minecraft 26.1, 26.1-rc-3, 26.1-rc-2. Achtung: Forge- und Fabric-Mods sind NICHT untereinander kompatibel – wähle einen Loader und bleibe dabei. Im Mado Dashboard werden inkompatible Loader-Kombinationen automatisch erkannt.
Server laggt mit Version Detector – wie optimiere ich die Performance?
Empfohlener RAM: 4 GB (+1 GB pro 8 Spieler). Prüfe mit /spark profiler, ob Version Detector den meisten Tick-Time verbraucht. Häufige Fixes: Server-View-Distance auf 8-10 reduzieren, bei Forge "performant" oder "starlight" als Zusatz-Mod installieren. Bei Mado Hosting läuft dein Server auf NVMe-SSDs mit dedizierten CPU-Kernen für minimale Latenz.
Ähnliche Mods
Modded Server mieten
Installiere Version Detector mit nur einem Klick auf deinem Server.
Details
- Lizenz
- Creative Commons Attribution 4.0 International
- Server-seitig
- Erforderlich