Skip to content

Instantly share code, notes, and snippets.

@misode
Created August 3, 2019 17:12
Show Gist options
  • Save misode/f14f79da81e86e4a86785181a7a02c3a to your computer and use it in GitHub Desktop.
Save misode/f14f79da81e86e4a86785181a7a02c3a to your computer and use it in GitHub Desktop.

Preventing Fall Damage

This method is based on PingiPuck's video

You need to run a command once (or on every /reload).

scoreboard objectives add falling minecraft.custom:minecraft.time_since_death 

You need to run these commands for every player every tick

scoreboard players set @s[nbt={FallDistance:0.0f}] falling 0
effect clear @s[scores={falling=0}] jump_boost
effect give @s[scores={falling=9..}] jump_boost 1 255 true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment