Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
988
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. command /diamondless <text>:
  2. usage: /diamondless <enable:disable:toggle>
  3. permission: skript.op
  4. trigger:
  5. if arg 1 is "enable":
  6. set {diamondless} to true
  7. message "&cDiamondless Enabled!"
  8. if arg 1 is "disable":
  9. set {diamondless} to false
  10. message "&cDiamondless Disabled!"
  11. if arg 1 is "toggle":
  12. if {diamondless} is true:
  13. set {diamondless} to false
  14. message "&cDiamondless Disabled!"
  15. stop
  16. if {diamondless} is false:
  17. set {diamondless} to true
  18. message "&cDiamondless Enabled!"
  19. stop
  20.  
  21. on mine of gold ore:
  22. if {diamondless} is true:
  23. chance of 50%:
  24. set block to air
  25. drop 1 gold ingot
  26. cancel the event
  27. else:
  28. set block to air
  29. cancel the event
  30.  
  31. on mine of diamond ore:
  32. if {diamondless} is true:
  33. set block to air
  34. cancel the event
  35.  
  36. on death of player:
  37. if {diamondless} is true:
  38. drop 4 gold ingots at the victim
  39. drop 1 diamond at the victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement