Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /hoe <player>:
- trigger:
- give arg a diamond hoe named "&bSniper"
- on rightclick with diamond hoe:
- name of player's tool is "&bsniper"
- cancel event
- while false:
- shoot an arrow at speed 100
- wait 2 tick
- execute console command "/execute %player% ~ ~ ~ playsound minecraft:entity.firework.shoot ambient @p"
- on damage:
- if attacker's tool's name is "&bSniper":
- set damage to 5
- set maximum damage delay of victim to 0 tick
- every tick:
- loop all players:
- if loop-player's tool is diamond hoe named "&bSniper":
- if loop-player is sneaking:
- execute console command "/effect %loop-player% slowness 1 3 true"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement