Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick with book:
- if name of held item is "&e&lヒール":
- if level of player is more than or equal to 45:
- set {heal.%player%.cooldown} to difference between {heal.%player%.lastused} and now
- if {heal.%player%.cooldown} is less than 30 seconds:
- play "entity_ghast_shoot" to players at volume 1
- show an action bar from "&4&lCooldown &e%difference between 30 seconds and {heal.%player%.cooldown}%&7..." to player
- stop
- set {heal.%player%.lastused} to now
- reduce level progress of player by 45
- heal the player by 18
- play sound "entity.player.levelup" with volume 2 and pitch 2 at player
- create a circle effect at player with id "HEAL" with particles HEART with radius 1
- wait 2 second
- stop effect "HEAL"
- else:
- play "entity_ghast_shoot" to players at volume 1
- show an action bar from "&e&l%45 - level of player% &d&lMP &care not enough" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement