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
- Uses the validity of the command
- 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.
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+