1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00
This commit is contained in:
zumbiepig
2024-08-17 10:43:32 -07:00
parent 33d2f59287
commit b0a03d94c8
49 changed files with 234 additions and 305 deletions

View File

@@ -0,0 +1,9 @@
ModAPI.require("player"); //Require the player, we need to see their fall height.
ModAPI.require("network"); //Require the network, we need to send network packets.
ModAPI.addEventListener("update", ()=>{ // Every client tick
if (ModAPI.player.fallDistance > 2.0) { // If the player is at a height that they can take damage from hitting the ground:
ModAPI.network.sendPacketPlayer({isOnGround: true}); // Tell the server the player is on the ground
}
});