Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick with book:
- if name of held item is "&a&lウィンド":
- if level of player is more than or equal to 6:
- set {wind.%player%.cooldown} to difference between {wind.%player%.lastused} and now
- if {wind.%player%.cooldown} is less than 2 seconds:
- play "entity_ghast_shoot" to players at volume 1
- show an action bar from "&4&lCooldown &e%difference between 2 seconds and {wind.%player%.cooldown}%&7..." to player
- stop
- set {wind.%player%.lastused} to now
- reduce level progress of player by 6
- set {wind.%player%.meter} to 1
- set {wind.%player%.x} to x-coords of the block {wind.%player%.meter} meter in front of player's head
- set {wind.%player%.y} to y-coords of the block {wind.%player%.meter} meter in front of player's head
- set {wind.%player%.z} to z-coords of the block {wind.%player%.meter} meter in front of player's head
- loop 10 times:
- execute console command "/particle sweepAttack %{wind.%player%.x}% %{wind.%player%.y}% %{wind.%player%.z}% 0 0 0 0 8 mode @a"
- set {wind.%player%.meter} to {wind.%player%.meter} + 1
- set {wind.%player%.x} to x-coords of the block {wind.%player%.meter} meter in front of player's head
- set {wind.%player%.y} to y-coords of the block {wind.%player%.meter} meter in front of player's head
- set {wind.%player%.z} to z-coords of the block {wind.%player%.meter} meter in front of player's head
- play sound "entity.player.attack.sweep" with volume 2 and pitch 1 at player
- if the block {wind.%player%.meter} meter infront of player's head is not air:
- stop loop
- loop all blocks 10 meter in front of player's head:
- loop all entities in radius 0.5 around loop-block:
- loop-entity is not player
- make player damage loop-entity by 8
- apply speed 1 to the player for 3 seconds
- else:
- play "entity_ghast_shoot" to players at volume 1
- 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