Support a bunch of new versions! As such, the ids have changed.
NOTICE: THIS UPDATE WILL LIKELY BREAK ANY DATAPACK THAT USES VERSION DETECTOR AS THE IDS HAVE CHANGED
The new ID list is as follows:
IDs
- 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 Pre-Releases 1 and 2
Support 1.21.5 Pre-Release 1 with id 23
This wouldn't have been possible if this one change didn't happen:
"Arguments in commands that accept inline values like loot tables, predicates, modifiers, data components, formatted text (/loot, /give, /tellraw, /execute if predicate, data components in /execute if items, etc.) have been reverted to accept numbers in place of booleans"
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