Version Detector

An API for datapacks to detect your Minecraft Version

by
3.2K Downloads
datapackfabricforgeneoforgequiltlibrarymanagementutility
Rent Server with this Mod

About this 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. 1.13
  2. 1.13.1
  3. 1.14
  4. 1.14.3
  5. 1.14.4
  6. 1.15
  7. 1.15.2
  8. 1.16
  9. 1.16.2
  10. 1.17
  11. 1.18
  12. 1.18.2
  13. 1.19
  14. 1.19.3
  15. 1.19.4
  16. 1.20
  17. 1.20.2
  18. 1.20.3
  19. 1.20.5
  20. 1.21
  21. 1.21.2
  22. 1.21.4
  23. 25w02a
  24. 25w03a
  25. 25w04a
  26. 25w05a
  27. 25w06a
  28. 25w07a
  29. 25w08a
  30. 25w09a
  31. 25w10a
  32. 1.21.5
  33. 25w15a
  34. 25w20a
  35. 1.21.6
  36. 1.21.7-1.21.8
  37. 25w31a
  38. 25w32a
  39. 25w34a
  40. 25w35a
  41. 25w36a
  42. 1.21.9-1.21.10
  43. 25w41a
  44. 25w42a
  45. 25w43a
  46. 25w44a
  47. 1.21.11
  48. 26.1 Snapshot 1 (Yay new versioning system)
  49. 26.1 Snapshot 2
  50. 26.1 Snapshot 3
  51. 26.1 Snapshot 4
  52. 26.1 Snapshot 5
  53. 26.1 Snapshot 6 - Snapshot 7 (Don't you DARE say it)
  54. 26.1 Snapshot 8 - Snapshot 9
  55. 26.1 Snapshot 10
  56. 26.1 Snapshot 11
  57. 26.1

April Fools Snapshots:

  1. 20w14infinite
  2. 22w13oneBlockAtATime
  3. 23w13a_or_b
  4. 24w14potato
    Currently no 25w14craftmine yet, been too lazy to add that

Available Versions

1.6.0release
MC 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 23w03a, 23w04a, 23w05a, 1.19.4, 23w12a, 23w13a, 23w13a_or_b, 23w14a, 23w16a, 23w17a, 1.20, 1.20.1, 23w31a, 23w32a, 23w33a, 23w35a, 1.20.2-pre1, 1.20.2, 23w40a, 23w41a, 23w42a, 23w43a, 23w43b, 23w44a, 23w45a, 23w46a, 1.20.3-pre1, 1.20.3-pre2, 1.20.3-pre3, 1.20.3-pre4, 1.20.3, 1.20.4, 23w51a, 23w51b, 24w03a, 24w03b, 24w04a, 24w05a, 24w05b, 24w06a, 24w07a, 24w09a, 24w10a, 24w11a, 24w12a, 24w13a, 24w14a, 1.20.5-pre1, 1.20.5-pre2, 1.20.5-pre3, 1.20.5-pre4, 1.20.5-rc1, 1.20.5-rc2, 1.20.5-rc3, 1.20.5, 1.20.6, 24w18a, 24w19a, 24w19b, 24w20a, 24w21a, 24w21b, 1.21-pre1, 1.21-pre2, 1.21-pre3, 1.21-pre4, 1.21-rc1, 1.21, 1.21.1, 24w33a, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 24w40a, 1.21.2-pre1, 1.21.2-pre2, 1.21.2, 1.21.3, 24w44a, 24w45a, 24w46a, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1-snapshot-1, 26.1-snapshot-2, 26.1-snapshot-3, 26.1-snapshot-4, 26.1-snapshot-5, 26.1-snapshot-6, 26.1-snapshot-7, 26.1-snapshot-8, 26.1-snapshot-9, 26.1-snapshot-10, 26.1-snapshot-11, 26.1-pre-1, 26.1-pre-2, 26.1-pre-3, 26.1-rc-1, 26.1-rc-2, 26.1-rc-3, 26.1fabric, forge, neoforge, quilt
March 28, 2026
1.6.0release
MC 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 23w03a, 23w04a, 23w05a, 1.19.4, 23w12a, 23w13a, 23w13a_or_b, 23w14a, 23w16a, 23w17a, 1.20, 1.20.1, 23w31a, 23w32a, 23w33a, 23w35a, 1.20.2-pre1, 1.20.2, 23w40a, 23w41a, 23w42a, 23w43a, 23w43b, 23w44a, 23w45a, 23w46a, 1.20.3-pre1, 1.20.3-pre2, 1.20.3-pre3, 1.20.3-pre4, 1.20.3, 1.20.4, 23w51a, 23w51b, 24w03a, 24w03b, 24w04a, 24w05a, 24w05b, 24w06a, 24w07a, 24w09a, 24w10a, 24w11a, 24w12a, 24w13a, 24w14a, 1.20.5-pre1, 1.20.5-pre2, 1.20.5-pre3, 1.20.5-pre4, 1.20.5-rc1, 1.20.5-rc2, 1.20.5-rc3, 1.20.5, 1.20.6, 24w18a, 24w19a, 24w19b, 24w20a, 24w21a, 24w21b, 1.21-pre1, 1.21-pre2, 1.21-pre3, 1.21-pre4, 1.21-rc1, 1.21, 1.21.1, 24w33a, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 24w40a, 1.21.2-pre1, 1.21.2-pre2, 1.21.2, 1.21.3, 24w44a, 24w45a, 24w46a, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1-snapshot-1, 26.1-snapshot-2, 26.1-snapshot-3, 26.1-snapshot-4, 26.1-snapshot-5, 26.1-snapshot-6, 26.1-snapshot-7, 26.1-snapshot-8, 26.1-snapshot-9, 26.1-snapshot-10, 26.1-snapshot-11, 26.1-pre-1, 26.1-pre-2, 26.1-pre-3, 26.1-rc-1, 26.1-rc-2, 26.1-rc-3, 26.1datapack
March 28, 2026
v1.5.0release
MC 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1-snapshot-1fabric, forge, neoforge, quilt
December 31, 2025
v1.5.0release
MC 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1-snapshot-1datapack
December 31, 2025
v1.4.0release
MC 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 25w31a, 25w32afabric, forge, neoforge, quilt
August 5, 2025

How to Install Version Detector on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set datapack Loader

In the panel under "Egg", select the datapack loader and matching Minecraft version (26.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Version Detector". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

datapackfabricforgeneoforgequilt

Minecraft Versions

26.1, 26.1-rc-3, 26.1-rc-2 (+166 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Version Detector server crashes on startup – what to do?

Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1). You can switch loaders with one click in the panel.

Is Version Detector compatible with datapack and fabric and forge and neoforge and quilt?

Version Detector officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 26.1, 26.1-rc-3, 26.1-rc-2. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Version Detector – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Version Detector consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Version Detector with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Creative Commons Attribution 4.0 International
Server-side
Required

Supported Versions

26.126.1-rc-326.1-rc-226.1-rc-126.1-pre-326.1-pre-226.1-pre-126.1-snapshot-1126.1-snapshot-1026.1-snapshot-9+159 more