Advertisement
Guest User

Armadura Protetora

a guest
Jul 18th, 2015
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. #
  2. # Criado por dima_raposa90 (DimaBR)
  3. # Armadura Protetora v1.0
  4. #
  5.  
  6.  
  7. every 2 seconds:
  8. loop all players:
  9. if name of loop-player's helmet is "&6Armadura Protetora":
  10. apply resistance 2 to loop-player for 2 seconds
  11. stop
  12. if name of loop-player's chestplate is "&6Armadura Protetora":
  13. apply resistance 2 to loop-player for 2 seconds
  14. stop
  15. if name of loop-player's leggings is "&6Armadura Protetora":
  16. apply resistance 2 to loop-player for 2 seconds
  17. apply regeneration 1 to loop-player for 2 seconds
  18. stop
  19. if name of loop-player's boots is "&6Armadura Protetora":
  20. apply resistance 2 to loop-player for 2 seconds
  21. stop
  22.  
  23. on damage:
  24. loop all players:
  25. victim is player
  26. attacker is player
  27. if name of loop-player's chestplate is "&6Armadura Protetora":
  28. set {_damage} to damage
  29. subtract 2 from {_damage}
  30. chance of 10%:
  31. damage attacker by 1.5 hearts
  32. if name of loop-player's boots is "&6Armadura Protetora":
  33. damage cause is fall
  34. if {NoFall.%victim%} is true:
  35. cancel event
  36.  
  37. on join:
  38. if {NoFall.%player%} is false:
  39. set {NoFall.%player%} to true
  40.  
  41.  
  42. command /protetora:
  43. permission: protetora.pegar
  44. trigger:
  45. give 1 diamond chestplate named "&6Armadura Protetora" with lore "&5+3 Proteçao" to player
  46. give 1 diamond helmet named "&6Armadura Protetora" with lore "&5+3 Proteçao" to player
  47. give 1 diamond boots named "&6Armadura Protetora" with lore "&5+3 Proteçao" to player
  48. give 1 diamond leggings named "&6Armadura Protetora" with lore "&5+3 Proteçao" to player
  49. send "&6voce pegou a armadura protetora."
  50. stop
  51.  
  52. command /armadura:
  53. trigger:
  54. send "&BCriador: &fdima_raposa90 (DimaBR)"
  55. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement