Advertisement
penguin_GANA

Untitled

Apr 24th, 2021
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 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
  9. else:
  10. damage attacker by {dungeon.%victim%.lv}
  11. remove {stats.%victim%.maxmp}*0.1 from {stats.%victim%.mp}
  12. on rightclick:
  13. if name of player's tool contains "&dローズシールド":
  14. repair tool of player
  15. if {cooldown.%player%.1} is "a":
  16. cancel event
  17. send "&c既にバリアを張っています!"
  18. execute console command "/playsound minecraft:entity.zombie_villager.converted ambient %player% ~ ~ ~ 1 1 1"
  19. stop
  20. else:
  21. cancel event
  22. set {cooldown.%player%.1} to "a"
  23. set {baria.%player%.rose} to 1
  24. on join:
  25. set {cooldown.%player%.1} to "false"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement