Advertisement
minamino_tudoi

NAGIHARAI

Dec 6th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. command /NAGIHARAI:
  2. trigger:
  3. if {NAGIHARAI::%player%} is more than 0:
  4. send "cooldown"
  5. stop
  6. set {_l} to location of player
  7. set {_y} to yaw of player
  8. set pitch of {_l} to 0
  9. set yaw of {_l} to {_y}
  10. set {_l} to location of block 1 forward {_l}
  11. set yaw of {_l} to {_y}
  12. set {_l1} to location of block 1 left {_l}
  13. set {_l2} to location of block 1 right {_l}
  14. set yaw of {_l2} to {_y}
  15. set {_l2} to location of block 1 forward {_l2}
  16. set {_l2} to location of block 1 above {_l2}
  17. set {_l} to line 2 of lore of tool of player
  18. set {_l::*} to {_l} split at "&3"
  19. set {_a} to ({_l::2} parsed as number) / 2
  20. loop blocks within {_l1} to {_l2}:
  21. loop living entities in radius 1 of location of loop-block:
  22. loop-entity is not armor stand or player
  23. damage loop-entity by {_a} hearts
  24. push loop-entity above at force .2
  25. play sound "entity.player.attack.sweep" with volume .5 at loop-entity
  26. command "/particle sweep_attack %x-coord of loop-entity% %y-coord of loop-entity + 1% %z-coord of loop-entity% 0 0 0 0 1"
  27. set {NAGIHARAI::%player%} to {NAGIHARAI}
  28.  
  29. every second:
  30. loop all players:
  31. remove 1 from {NAGIHARAI::%loop-player%}
  32.  
  33. command /skillcooldown <string> <number>:
  34. permission: sk.admin
  35. trigger:
  36. set {%arg-1%} to arg-2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement