Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /DeathChest <text>:
- usage: /DeathChest <enable:disable:toggle>
- permission: skript.op
- trigger:
- if arg 1 is "enable" or "on":
- set {DeathChest} to true
- message "&aDeath Chest Enabled!"
- if arg 1 is "disable" or "off":
- set {DeathChest} to false
- message "&cDeath Chest Disabled!"
- if arg 1 is "toggle":
- if {DeathChest} is false:
- set {DeathChest} to true
- message "&aDeath Chest Enabled!"
- if {DeathChest} is true:
- set {DeathChest} to false
- message "&cDeath Chest Disabled!"
- on death of player:
- if {DeathChest} is true
- loop blocks in radius 1:
- loop-block is air
- set loop-block to chest
- add drops to loop-block
- add 1 golden apple to loop-block
- clear drops
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement