Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # MFG's Skript to prevent mobs from agro'ing on you if you wear them skull as a helmet.
- # It might later on be used to place heads and make a safe area near the heads.
- #
- # ZOMBIE
- on damage of a zombie:
- if attacker is a player:
- if helmet of attacker is zombie head:
- message "<yellow>You cant hit a <green>ZOMBIE <yellow>when you're protected from it!" to attacker
- cancel event
- stop
- on target:
- if target is a player:
- if entity is zombie:
- if helmet of target is a zombie head:
- cancel event
- stop
- # SKELETON
- on damage of a skeleton:
- if attacker is a player:
- if helmet of attacker is skeleton head:
- message "<yellow>You cant hit a <green>skeleton <yellow>when you're protected from it!" to attacker
- cancel event
- stop
- on target:
- if target is a player:
- if entity is skeleton:
- if helmet of target is a skeleton head:
- cancel event
- stop
- # CREEPER
- on damage of a creeper:
- if attacker is a player:
- if helmet of attacker is creeper head:
- message "<yellow>You cant hit a <green>CREEPER <yellow>when you're protected from it!" to attacker
- cancel event
- stop
- on target:
- if target is a player:
- if entity is creeper:
- if helmet of target is a creeper head:
- cancel event
- stop
Advertisement
Add Comment
Please, Sign In to add comment