Advertisement
white17154

ヒール

Apr 5th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. on rightclick with book:
  2. if name of held item is "&e&lヒール":
  3. if level of player is more than or equal to 45:
  4. set {heal.%player%.cooldown} to difference between {heal.%player%.lastused} and now
  5. if {heal.%player%.cooldown} is less than 30 seconds:
  6. play "entity_ghast_shoot" to players at volume 1
  7. show an action bar from "&4&lCooldown &e%difference between 30 seconds and {heal.%player%.cooldown}%&7..." to player
  8. stop
  9. set {heal.%player%.lastused} to now
  10. reduce level progress of player by 45
  11. heal the player by 18
  12. play sound "entity.player.levelup" with volume 2 and pitch 2 at player
  13. create a circle effect at player with id "HEAL" with particles HEART with radius 1
  14. wait 2 second
  15. stop effect "HEAL"
  16. else:
  17. play "entity_ghast_shoot" to players at volume 1
  18. 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