Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- register new shaped recipe for 322 named "&6Golden Head" with lore "&dSome say consuming the head of a fallen foe strengthens the blood" using gold ingot, gold ingot, gold ingot, gold ingot, player head, gold ingot, gold ingot, gold ingot, gold ingot
- command /headcraft [<text>]:
- permission: skript.op
- trigger:
- if arg 1 is equal to "on":
- if {headcraft} is true:
- message "Golden heads are already enabled"
- else:
- set {headcraft} to true
- broadcast "Golden heads enabled!"
- else if arg 1 is equal to "off":
- if {headcraft} is not set:
- message "Golden heads are already disabled"
- else:
- delete {headcraft}
- broadcast "Golden heads disabled"
- on craft of golden apple:
- "%name of item%" contains "&6Golden Head":
- {headcraft} is false
- cancel event
- command /headdrops [<text>]:
- permission: skript.op
- trigger:
- if arg 1 is equal to "on":
- if {headdrops} is true:
- message "Player heads are already enabled"
- else:
- set {headdrops} to true
- broadcast "Player heads enabled!"
- else if arg 1 is equal to "off":
- if {headdrops} is not set:
- message "Player heads are already disabled"
- else:
- delete {headdrops}
- broadcast "Player heads disabled"
- on death of a player:
- {headdrops} is true
- drop victim's skull at location of victim
- on consume of golden apple:
- "%name of player's tool%" contains "&6Golden Head":
- apply regeneration 2 to the player for 10 seconds
Advertisement
Add Comment
Please, Sign In to add comment