Advertisement
penguin_GANA

Untitled

Apr 24th, 2021
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. on damage of player:
  2. if {baria.%victim%.rose} is 1:
  3. cancel event
  4. if {stats.%victim%.mp} is {stats.%victim%.maxmp}*0.04:
  5. set {baria.%victim%.rose} to 0
  6. send "&cバリアが消えました"
  7. set {cooldown.%victim%.1} to "false"
  8. stop effect "rose"
  9. stop
  10. else:
  11. damage attacker by {dungeon.%victim%.lv}
  12. add {stats.%victim%.maxmp}/-9 to {stats.%victim%.mp}
  13. on rightclick:
  14. if name of player's tool contains "&dローズシールド":
  15. repair tool of player
  16. if {cooldown.%player%.1} is "a":
  17. cancel event
  18. send "&c既にバリアを張っています!"
  19. execute console command "/playsound minecraft:entity.zombie_villager.converted ambient %player% ~ ~ ~ 1 1 1"
  20. stop
  21. else:
  22. cancel event
  23. set {cooldown.%player%.1} to "a"
  24. set {baria.%player%.rose} to 1
  25. create a circle effect for player with id "rose" with particles HEART with radius 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement