• • 9/1/22 6:38 pm • 1 logs
- 2.3k views • 0 today
- save_alt 93 downloads
- Compatibility
- Minecraft 1.13
- to version
- Minecraft 1.19
- Changes include
- Advancements
- Functions
189
This datapack is an example that shows how to detect versions.
You can enter the command "/function version:say_version" to get the current version, but it already states the version every time you enter the world. You can disable it stating the version by renaming the "player" file (located at data/version/functions) to something else
The version is stored in the objective "version" of "mc" and it does not have the 1. in front.
The pack format is stored in the objective "pack_format" if you want it for some reason.
It does not detect snapshots currently.
Note for using advancements to detect version: It cannot detect 1.18 with the first function because it cannot give the player the advancement so it does it in the "tick" function. Because of this, any version above 1.18 is detected only after a player is joined.
You can enter the command "/function version:say_version" to get the current version, but it already states the version every time you enter the world. You can disable it stating the version by renaming the "player" file (located at data/version/functions) to something else
The version is stored in the objective "version" of "mc" and it does not have the 1. in front.
The pack format is stored in the objective "pack_format" if you want it for some reason.
It does not detect snapshots currently.
Note for using advancements to detect version: It cannot detect 1.18 with the first function because it cannot give the player the advancement so it does it in the "tick" function. Because of this, any version above 1.18 is detected only after a player is joined.
1 Update Logs
Update #1 : by Endernice61 09/01/2022 6:38:40 pmSeptember 1, 2022 @ 10:38 pm UTC
Now able to detect 1.19
More like this
5401459
119



Have something to say?