Advertisement
Randall123459

DeathChest

Apr 8th, 2015
1,596
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. command /DeathChest <text>:
  2. usage: /DeathChest <enable:disable:toggle>
  3. permission: skript.op
  4. trigger:
  5. if arg 1 is "enable" or "on":
  6. set {DeathChest} to true
  7. message "&aDeath Chest Enabled!"
  8. if arg 1 is "disable" or "off":
  9. set {DeathChest} to false
  10. message "&cDeath Chest Disabled!"
  11. if arg 1 is "toggle":
  12. if {DeathChest} is false:
  13. set {DeathChest} to true
  14. message "&aDeath Chest Enabled!"
  15. if {DeathChest} is true:
  16. set {DeathChest} to false
  17. message "&cDeath Chest Disabled!"
  18.  
  19. on death of player:
  20. if {DeathChest} is true
  21. loop blocks in radius 1:
  22. loop-block is air
  23. set loop-block to chest
  24. add drops to loop-block
  25. add 1 golden apple to loop-block
  26. clear drops
  27. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement