Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Criado por dima_raposa90 (DimaBR)
- # Armadura Protetora v1.0
- #
- every 2 seconds:
- loop all players:
- if name of loop-player's helmet is "&6Armadura Protetora":
- apply resistance 2 to loop-player for 2 seconds
- stop
- if name of loop-player's chestplate is "&6Armadura Protetora":
- apply resistance 2 to loop-player for 2 seconds
- stop
- if name of loop-player's leggings is "&6Armadura Protetora":
- apply resistance 2 to loop-player for 2 seconds
- apply regeneration 1 to loop-player for 2 seconds
- stop
- if name of loop-player's boots is "&6Armadura Protetora":
- apply resistance 2 to loop-player for 2 seconds
- stop
- on damage:
- loop all players:
- victim is player
- attacker is player
- if name of loop-player's chestplate is "&6Armadura Protetora":
- set {_damage} to damage
- subtract 2 from {_damage}
- chance of 10%:
- damage attacker by 1.5 hearts
- if name of loop-player's boots is "&6Armadura Protetora":
- damage cause is fall
- if {NoFall.%victim%} is true:
- cancel event
- on join:
- if {NoFall.%player%} is false:
- set {NoFall.%player%} to true
- command /protetora:
- permission: protetora.pegar
- trigger:
- give 1 diamond chestplate named "&6Armadura Protetora" with lore "&5+3 Proteçao" to player
- give 1 diamond helmet named "&6Armadura Protetora" with lore "&5+3 Proteçao" to player
- give 1 diamond boots named "&6Armadura Protetora" with lore "&5+3 Proteçao" to player
- give 1 diamond leggings named "&6Armadura Protetora" with lore "&5+3 Proteçao" to player
- send "&6voce pegou a armadura protetora."
- stop
- command /armadura:
- trigger:
- send "&BCriador: &fdima_raposa90 (DimaBR)"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement