Guest User

Enderbp

a guest
Jan 26th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. options:
  2. P: &8[&bEnderBackPack&8]&1
  3.  
  4.  
  5. command /enderbp <text>:
  6. usage: {@P} /enderbp <on,enable:off,disable:set>
  7. permission: bp.admin
  8. trigger:
  9. if arg 1 is "on" or "enable":
  10. set {enderbp} to true
  11. message "{@P} Ender Backpacks are now on!"
  12. if arg 1 is "off" or "disable":
  13. set {enderbp} to false
  14. message "{@P} Ender Backpacks are now off!"
  15. if arg 1 is "set":
  16. if {enderbp} is true:
  17. give 1 ender chest to all players
  18. give 1 golden axe named "{@P} BackPack Breaker!" to all players
  19.  
  20. on break of ender chest:
  21. if {enderbp} is true:
  22. set the event-block to air
  23. drop an ender chest at the event-block
  24. cancel the event
  25.  
  26. on craft of ender chest:
  27. if {enderbp} is true:
  28. message "{@P} You cannot craft that item!"
  29. cancel the event
  30.  
  31. on block damage:
  32. event-block is an ender chest:
  33. player is holding a golden axe:
  34. if {enderbp} is true:
  35. set the event-block to air
  36. drop an ender chest at the event-block
  37. cancel the event
Advertisement
Add Comment
Please, Sign In to add comment