MostFunGuy

Untitled

Mar 23rd, 2014
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. #
  2. # MFG's Skript to prevent mobs from agro'ing on you if you wear them skull as a helmet.
  3. # It might later on be used to place heads and make a safe area near the heads.
  4. #
  5.  
  6.  
  7. # ZOMBIE
  8.  
  9. on damage of a zombie:
  10. if attacker is a player:
  11. if helmet of attacker is zombie head:
  12. message "<yellow>You cant hit a <green>ZOMBIE <yellow>when you're protected from it!" to attacker
  13. cancel event
  14. stop
  15.  
  16. on target:
  17. if target is a player:
  18. if entity is zombie:
  19. if helmet of target is a zombie head:
  20. cancel event
  21. stop
  22.  
  23.  
  24. # SKELETON
  25.  
  26. on damage of a skeleton:
  27. if attacker is a player:
  28. if helmet of attacker is skeleton head:
  29. message "<yellow>You cant hit a <green>skeleton <yellow>when you're protected from it!" to attacker
  30. cancel event
  31. stop
  32.  
  33. on target:
  34. if target is a player:
  35. if entity is skeleton:
  36. if helmet of target is a skeleton head:
  37. cancel event
  38. stop
  39.  
  40.  
  41. # CREEPER
  42.  
  43. on damage of a creeper:
  44. if attacker is a player:
  45. if helmet of attacker is creeper head:
  46. message "<yellow>You cant hit a <green>CREEPER <yellow>when you're protected from it!" to attacker
  47. cancel event
  48. stop
  49.  
  50. on target:
  51. if target is a player:
  52. if entity is creeper:
  53. if helmet of target is a creeper head:
  54. cancel event
  55. stop
Advertisement
Add Comment
Please, Sign In to add comment