SuzukazeK

Untitled

Sep 21st, 2019
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. on right click with sword:
  2. {c.%player%} is not set
  3. set {c.%player%} to true
  4. remove slowness from player
  5. apply slowness of tier 4 to player for 10000 seconds and ambient true hide particle effects false
  6. play sound "item.armor.equip_generic" with volume 1 and pitch 1 at player
  7. wait a second
  8. peanut(player)
  9.  
  10. on damage:
  11. {c.%victim%} is true
  12. loop entities in radius 5 around the victim:
  13. loop-entity is attacker
  14. cancel event
  15. damage victim's tool by 3
  16. damage attacker by damage * 2 hearts
  17. push the attacker upwards at speed 0.3
  18. push the attacker forwards at speed -1.0
  19. play sound "entity.player.attack.sweep" with volume 1 and pitch 1 at victim
  20. wait a tick
  21. play sound "entity.player.attack.sweep" with volume 1 and pitch 1.5 at victim
  22. peanut(victim)
  23. loop 3 times:
  24. show 5 sweep attack particles at attacker offset by 0, 0.5, 0
  25. wait a tick
  26.  
  27. on tool change:
  28. {c.%player%} is true
  29. peanut(player)
  30.  
  31. function peanut(p: player):
  32. remove slowness from {_p}
  33. wait a second
  34. delete {c.%{_p}%}
  35.  
  36. command /a:
  37. trigger:
  38. loop entities in radius 7 around player:
  39. broadcast "%loop-entity%"
Advertisement
Add Comment
Please, Sign In to add comment