Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage of player:
- if {baria.%victim%.rose} is 1:
- cancel event
- if {stats.%victim%.mp} is {stats.%victim%.maxmp}*0.04:
- set {baria.%victim%.rose} to 0
- send "&cバリアが消えました"
- set {cooldown.%victim%.1} to "false"
- stop effect "rose"
- stop
- else:
- damage attacker by {dungeon.%victim%.lv}
- add {stats.%victim%.maxmp}/-9 to {stats.%victim%.mp}
- on rightclick:
- if name of player's tool contains "&dローズシールド":
- repair tool of player
- if {cooldown.%player%.1} is "a":
- cancel event
- send "&c既にバリアを張っています!"
- execute console command "/playsound minecraft:entity.zombie_villager.converted ambient %player% ~ ~ ~ 1 1 1"
- stop
- else:
- cancel event
- set {cooldown.%player%.1} to "a"
- set {baria.%player%.rose} to 1
- 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