Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- register new shaped recipe for golden apple named "&7[&6&lThe Golden Apple&7]" using gold ingot, gold ingot, gold ingot, gold ingot, player head, gold ingot, gold ingot, gold ingot, gold ingot with id "golden_head" in group "custom_uhc"
- on consume:
- if event-item is a golden apple:
- if name of player's tool contains "&7[&6&lThe Golden Apple&7]":
- remove regeneration from player
- remove absorption from player
- execute console command "/effect give %player% minecraft:regeneration 5 2"
- apply absorption to player for 2 minutes
- on death of a player:
- if {heads} are set:
- set {_temp} to the block below the victim
- set block 1 meter above {_temp} to oak fence
- set block 2 meter above {_temp} to victim's skull
- command /goldenheads [<text>]:
- aliases: /gheads, /ghead, /heads, /head, /gh
- permission: skript.op
- trigger:
- if arg-1 is set:
- if arg-1 is "on" or "enable":
- if {heads} is set:
- send "&eGolden Heads&a are already &a&lenabled"
- else:
- set {heads} to true
- send "&eGolden Heads&a are now &a&lenabled"
- else if arg-1 is "off" or "disable":
- if {heads} is set:
- delete {heads}
- send "&eGolden Heads&a are now &c&ldisabled"
- else:
- send "&eGolden Heads&a are already &c&ldisabled"
- else if arg-1 is "toggle" or "t":
- if {heads} is set:
- delete {heads}
- send "&eGolden Heads&a are now &c&ldisabled"
- else:
- set {heads} to true
- send "&eGolden Heads&a are now &a&lenabled"
- else if arg-1 is "help" or "h":
- send "&a/goldenheads &aon&7/&coff&7/&etoggle"
- else:
- make command sender execute command "/gh h"
- else:
- make command sender execute command "/gh t"
Advertisement
Add Comment
Please, Sign In to add comment