Advertisement
Guest User

Untitled

a guest
Nov 15th, 2015
1,322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. options:
  2. p: &8[&eLootCrate&8]&7
  3. c: &e
  4.  
  5. command /lootcrate <text>:
  6. aliases: /lc, /lootcrates
  7. usage: /lootcrate <start/stop/help>
  8. permission: host.lootcrate
  9. trigger:
  10. if arg 1 is "start":
  11. set {lootcrate} to true
  12. set {lootcratetimer} to 600
  13. loop all players:
  14. give a random item out of chest or ender chest to the loop-player
  15. broadcast "{@p} The first loot crates have been given out!"
  16. else if arg 1 is "stop" or "disable":
  17. set {lootcrate} to false
  18. message "{@p} Loot Crate {@c}Disabled!" to the player
  19. else:
  20. send "{@c}-----------------------------------"
  21. send "{@p} /lootcrate <start/stop>"
  22. send "{@p} /lootcratetime"
  23. send "{@c}-----------------------------------"
  24.  
  25. every 30 seconds:
  26. {lootcrate} is true
  27. remove 30 from {lootcratetimer}
  28. {lootcratetimer} is 0
  29. set {lootcratetimer} to 600
  30. loop all players:
  31. give a random item out of chest or ender chest to the loop-player
  32. broadcast "{@p} Lootcrates have been given out!"
  33.  
  34.  
  35. on right-click holding ender chest:
  36. if {lootcrate} is true:
  37. remove 1 of ender chest from player's inventory
  38. message "{@p} Giving Loot..." to the player
  39. wait 1 tick
  40. set {_chosencrate} to a random item out of diamond or 3 gold ingot or 10 iron ingot or 32 dirt or enchantment table or diamond sword or diamond helmet or diamond boots or 32 arrow or 3 tnt or flint and steel or lava bucket or 1 golden apple item or 10 bottle o' enchanting
  41. message "{@p} You received : {@c}%{_chosencrate}%" to the player
  42. give {_chosencrate} to player
  43.  
  44. on place of ender chest:
  45. if {lootcrate} is true:
  46. cancel event
  47.  
  48. on right-click holding chest:
  49. if {lootcrate} is true:
  50. remove 1 chest from player's inventory
  51. message "{@p} Giving Loot..." to the player
  52. wait 1 tick
  53. set {_chosencrate} to a random item out of iron pickaxe or 2 apple or 8 steak or cake item or 64 raw pufferfish or bow or golden chestplate or fishing rod or cobweb or iron sword or diamond shovel or iron leggings or 64 poppy or water bucket or 16 snowball or 16 lapis or 3 books
  54. message "{@p} You received : {@c}%{_chosencrate}%" to the player
  55. give {_chosencrate} to player
  56.  
  57.  
  58. command /lootcratetimeleft:
  59. aliases: /lctl, /lootcratetl, /lct, /lootcratetime, /lctime
  60. trigger:
  61. if {lootcrate} is true:
  62. send "{@p} Loot crates will be given in {@c}%({lootcratetimer}/60)% minutes."
  63. else:
  64. send "{@p} LootCrates is currently {@c}Disabled!"
  65.  
  66. on place of chest:
  67. if {lootcrate} is true:
  68. cancel event
  69.  
  70. on craft of ender chest:
  71. if {lootcrate} is true:
  72. cancel event
  73. message "{@p} You're not allowed to craft crates!"
  74. on craft of chest:
  75. if {lootcrate} is true:
  76. cancel event
  77. message "{@p} You're not allowed to craft crates!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement