Advertisement
PingiPuck

No Fall Damage Source Commands

Sep 25th, 2016
2,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Activate Once: /scoreboard objectives add Falling stat.timeSinceDeath
  2. This command adds the timer objective.
  3.  
  4. Repeating: /scoreboard players tag @a add NotFalling {FallDistance:0.0f}
  5. This commands gives players a tag if they are not falling.
  6.  
  7. Chain: /scoreboard players set @a[tag=NotFalling] Falling 0
  8. This command resets the timer score if they are not falling anymore.
  9.  
  10. Chain: /effect @a[tag=NotFalling] jump_boost 0
  11. This command removes the jump boost effect if the player is not falling anymore.
  12.  
  13. Chain: /effect @a[score_Falling_min=9] jump_boost 1 255 true
  14. This command gives players jump boost if they have been falling for at least 8 ticks.
  15.  
  16. Chain: /scoreboard players tag @a remove NotFalling
  17. This command removes the tag.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement