Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick with book:
- if name of held item is "&5&lダーク":
- if level of player is more than or equal to 9:
- set {dark.%player%.cooldown} to difference between {dark.%player%.lastused} and now
- if {dark.%player%.cooldown} is less than 5 seconds:
- play "entity_ghast_shoot" to players at volume 1
- show an action bar from "&4&lCooldown &e%difference between 5 seconds and {dark.%player%.cooldown}%&7..." to player
- stop
- set {dark.%player%.lastused} to now
- reduce level progress of player by 9
- set {dark.%player%.x} to x-coords of the block 7 meter in front of player's head
- set {dark.%player%.y} to y-coords of the block 7 meter in front of player's head
- set {dark.%player%.z} to z-coords of the block 7 meter in front of player's head
- set {dark.%player%.location} to location of the block 7 meter in front of player's head
- execute console command "/particle portal %{dark.%player%.x}% %{dark.%player%.y}% %{dark.%player%.z}% 1 1 1 10 1000 mode @a"
- wait 40 tick
- execute console command "/particle hugeexplosion %{dark.%player%.x}% %{dark.%player%.y}% %{dark.%player%.z}% 0 0 0 0 1 mode @a"
- play sound "entity.generic.explode" with volume 2 and pitch 0 at player
- loop all entities in radius 3 around {dark.%player%.location}:
- loop-entity is not player
- make player damage loop-entity by 15
- apply blindness 1 to the loop-entity for 7 seconds
- else:
- play "entity_ghast_shoot" to players at volume 1
- 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