Advertisement
doru90

Untitled

Jan 2nd, 2020
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. command /hoe <player>:
  2. trigger:
  3. give arg a diamond hoe named "&bSniper"
  4. on rightclick with diamond hoe:
  5. name of player's tool is "&bsniper"
  6. cancel event
  7. while false:
  8. shoot an arrow at speed 100
  9. wait 2 tick
  10. execute console command "/execute %player% ~ ~ ~ playsound minecraft:entity.firework.shoot ambient @p"
  11. on damage:
  12. if attacker's tool's name is "&bSniper":
  13. set damage to 5
  14. set maximum damage delay of victim to 0 tick
  15. every tick:
  16. loop all players:
  17. if loop-player's tool is diamond hoe named "&bSniper":
  18. if loop-player is sneaking:
  19. execute console command "/effect %loop-player% slowness 1 3 true"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement