Advertisement
white17154

ダーク

Apr 5th, 2019
551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. on rightclick with book:
  2. if name of held item is "&5&lダーク":
  3. if level of player is more than or equal to 9:
  4. set {dark.%player%.cooldown} to difference between {dark.%player%.lastused} and now
  5. if {dark.%player%.cooldown} is less than 5 seconds:
  6. play "entity_ghast_shoot" to players at volume 1
  7. show an action bar from "&4&lCooldown &e%difference between 5 seconds and {dark.%player%.cooldown}%&7..." to player
  8. stop
  9. set {dark.%player%.lastused} to now
  10. reduce level progress of player by 9
  11. set {dark.%player%.x} to x-coords of the block 7 meter in front of player's head
  12. set {dark.%player%.y} to y-coords of the block 7 meter in front of player's head
  13. set {dark.%player%.z} to z-coords of the block 7 meter in front of player's head
  14. set {dark.%player%.location} to location of the block 7 meter in front of player's head
  15. execute console command "/particle portal %{dark.%player%.x}% %{dark.%player%.y}% %{dark.%player%.z}% 1 1 1 10 1000 mode @a"
  16. wait 40 tick
  17. execute console command "/particle hugeexplosion %{dark.%player%.x}% %{dark.%player%.y}% %{dark.%player%.z}% 0 0 0 0 1 mode @a"
  18. play sound "entity.generic.explode" with volume 2 and pitch 0 at player
  19. loop all entities in radius 3 around {dark.%player%.location}:
  20. loop-entity is not player
  21. make player damage loop-entity by 15
  22. apply blindness 1 to the loop-entity for 7 seconds
  23. else:
  24. play "entity_ghast_shoot" to players at volume 1
  25. show an action bar from "&e&l%9 - level of player% &d&lMP &care not enough" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement