Version Detector

Mod and data pack

An API for datapacks to detect your Minecraft Version

Server CursedGame MechanicsLibraryManagementTechnologyUtility

100 downloads
1 follower
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Filter loader...
Filter versions...

Fixed some issues and added some stuff

Changes

  • Removed Bukkit detection (I couldn't make it work)

Fixes

  • Pack doesn't load on versions prior to 1.21
    • This is because the '/data/verdetect/functions' (for versions prior to 1.21) folder was missing; only '/data/verdetect/function' (for 1.21+) existed.

Additions

  • Forge detection support
    • Uses the validity of the command /attribute @s forge:swim_speed get to detect Forge.
    • Stored in IsForge under VersionInfo
    • Running the function verdetect:printversion will tell you that forge has been detected
  • General Mod detection
    • Currently only detects Forge, but detection for other mod-related things like Fabric (if a mod with a server-side command is installed; Fabric Loader itself doesn't add anything that can be detected)
    • Stored in IsModded under VersionInfo

Support 25w05a with id 17

Support for 25w04a

Support 25w03a with id 15

Got this out in 2 hours of the snapshot being released, I'm fast with this! (not even Modrinth has 25w03a in their versions list yet!)

25w02a detection added with ID 14.

1.0.0

by AndrewGaming587 on Jan 11, 2025
Download

1.0.0

by AndrewGaming587 on Jan 10, 2025
Download

Initial Release Minecraft Version ID is stored in a score for "MinecraftVersion" in the "VersionInfo" objective. 1.13 is id 0, 1.14 is id 1, etc. Versions:

  • 1.13.x
  • 1.14.x
  • 1.15.x
  • 1.16.x
  • 1.17.x
  • 1.18.x
  • 1.19.x
  • 1.20-1.20.1
  • 1.20.2
  • 1.20.3-1.20.4
  • 1.20.5
  • 1.21-1.21.1
  • 1.21.2-1.21.3
  • 1.21.4+

Project members

AndrewGaming587

Member

Details

Licensed CC-BY-4.0
Published 17 days ago
Updated 5 hours ago