Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- p: &8[&eLootCrate&8]&7
- c: &e
- command /lootcrate <text>:
- aliases: /lc, /lootcrates
- usage: /lootcrate <start/stop/help>
- permission: host.lootcrate
- trigger:
- if arg 1 is "start":
- set {lootcrate} to true
- set {lootcratetimer} to 600
- loop all players:
- give a random item out of chest or ender chest to the loop-player
- broadcast "{@p} The first loot crates have been given out!"
- else if arg 1 is "stop" or "disable":
- set {lootcrate} to false
- message "{@p} Loot Crate {@c}Disabled!" to the player
- else:
- send "{@c}-----------------------------------"
- send "{@p} /lootcrate <start/stop>"
- send "{@p} /lootcratetime"
- send "{@c}-----------------------------------"
- every 30 seconds:
- {lootcrate} is true
- remove 30 from {lootcratetimer}
- {lootcratetimer} is 0
- set {lootcratetimer} to 600
- loop all players:
- give a random item out of chest or ender chest to the loop-player
- broadcast "{@p} Lootcrates have been given out!"
- on right-click holding ender chest:
- if {lootcrate} is true:
- remove 1 of ender chest from player's inventory
- message "{@p} Giving Loot..." to the player
- wait 1 tick
- 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
- message "{@p} You received : {@c}%{_chosencrate}%" to the player
- give {_chosencrate} to player
- on place of ender chest:
- if {lootcrate} is true:
- cancel event
- on right-click holding chest:
- if {lootcrate} is true:
- remove 1 chest from player's inventory
- message "{@p} Giving Loot..." to the player
- wait 1 tick
- 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
- message "{@p} You received : {@c}%{_chosencrate}%" to the player
- give {_chosencrate} to player
- command /lootcratetimeleft:
- aliases: /lctl, /lootcratetl, /lct, /lootcratetime, /lctime
- trigger:
- if {lootcrate} is true:
- send "{@p} Loot crates will be given in {@c}%({lootcratetimer}/60)% minutes."
- else:
- send "{@p} LootCrates is currently {@c}Disabled!"
- on place of chest:
- if {lootcrate} is true:
- cancel event
- on craft of ender chest:
- if {lootcrate} is true:
- cancel event
- message "{@p} You're not allowed to craft crates!"
- on craft of chest:
- if {lootcrate} is true:
- cancel event
- message "{@p} You're not allowed to craft crates!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement