Advertisement
white17154

ウィンド

Apr 5th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. on rightclick with book:
  2. if name of held item is "&a&lウィンド":
  3. if level of player is more than or equal to 6:
  4. set {wind.%player%.cooldown} to difference between {wind.%player%.lastused} and now
  5. if {wind.%player%.cooldown} is less than 2 seconds:
  6. play "entity_ghast_shoot" to players at volume 1
  7. show an action bar from "&4&lCooldown &e%difference between 2 seconds and {wind.%player%.cooldown}%&7..." to player
  8. stop
  9. set {wind.%player%.lastused} to now
  10. reduce level progress of player by 6
  11. set {wind.%player%.meter} to 1
  12. set {wind.%player%.x} to x-coords of the block {wind.%player%.meter} meter in front of player's head
  13. set {wind.%player%.y} to y-coords of the block {wind.%player%.meter} meter in front of player's head
  14. set {wind.%player%.z} to z-coords of the block {wind.%player%.meter} meter in front of player's head
  15. loop 10 times:
  16. execute console command "/particle sweepAttack %{wind.%player%.x}% %{wind.%player%.y}% %{wind.%player%.z}% 0 0 0 0 8 mode @a"
  17. set {wind.%player%.meter} to {wind.%player%.meter} + 1
  18. set {wind.%player%.x} to x-coords of the block {wind.%player%.meter} meter in front of player's head
  19. set {wind.%player%.y} to y-coords of the block {wind.%player%.meter} meter in front of player's head
  20. set {wind.%player%.z} to z-coords of the block {wind.%player%.meter} meter in front of player's head
  21. play sound "entity.player.attack.sweep" with volume 2 and pitch 1 at player
  22. if the block {wind.%player%.meter} meter infront of player's head is not air:
  23. stop loop
  24. loop all blocks 10 meter in front of player's head:
  25. loop all entities in radius 0.5 around loop-block:
  26. loop-entity is not player
  27. make player damage loop-entity by 8
  28. apply speed 1 to the player for 3 seconds
  29. else:
  30. play "entity_ghast_shoot" to players at volume 1
  31. show an action bar from "&e&l%6 - level of player% &d&lMP &care not enough" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement