Razboy20 / version-proxy-mc-datapack

A datapack which computes both the game version and server software, and is able to run function tags based on what version of MC you are running on.
1 stars 0 forks source link

1.18 update & questions #1

Open UltraHispeed-Elite opened 2 years ago

UltraHispeed-Elite commented 2 years ago

besides the possibility of a 1.18.2 update.

how does this work, I mean in simple terms how does it work. and it refers to detect modded versions how does this work?

Razboy20 commented 2 years ago

The datapack finds the game version/server software by placing command blocks in the overworld with specific version-related commands, and based on whether that command executed successfully, we can deduce the Minecraft version. Servers can be detected by finding new commands that they enable, such as /minecraft:, as well as different forks of bukkit/spigot adding their own versioning commands. The same strategy is employed for determining whether the server is modded by checking for the "forge" command.