CREAMPAN0408

Untitled

Dec 24th, 2018
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. #ライフタクト
  2. on rightclick holding gold hoe:
  3. cancel the event
  4. player's tool is enchanted with PROTECTION 10
  5. player is sneaking
  6. if level of player is more than 5:
  7. set {_cooldown} to difference between {Heal.%player%.lastused} and now
  8. if {_cooldown} is less than 10 seconds:
  9. play "entity_ghast_shoot" to player at volume 10
  10. create a circle effect at player with id "HealFailed" with particles SMOKE NORMAL with radius 1
  11. message "<pink>%difference between 10 seconds and {_cooldown}% <white>後に使用可能"
  12. wait 20 tick
  13. stop effect "HealFailed"
  14. stop
  15. loop players in radius 5 around the player:
  16. play "entity_player_levelup" to loop-player at volume 10
  17. add 6 to loop-player's health
  18. reduce level progress of player by 6
  19. create a circle effect for loop-player with id "HEAL" with particles HEART with radius 1
  20. set {Heal.%player%.lastused} to now
  21. wait 60 tick
  22. stop effect "HEAL"
  23. else:
  24. play "entity_ghast_shoot" to player at volume 10
  25. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  26. message "<pink>回復スキルには6Lv以上のXPが必要です!"
  27. wait 20 tick
  28. stop effect "Failed"
Add Comment
Please, Sign In to add comment