config/103/crate.yml
Example crate.yml - Commented and Explained.
# Just thought I put this in here. # <- This Hash or Number Symbol is an comment for those of you who don't know. # They are only here to explain things, and you do not need to edit any of these. crate: ## Unique Identifier. The UI for this is 'crate' buy-enabled: false ## Is this crate for sale? cost: 3000 ## What is the cost for purchasing this crate? need-perm-to-buy: true ## Do you need Permission to buy this crate? If yes, the permission is cactuscrate.buy.{Unique Identifier}. In this case it will be cactuscrate.buy.crate is-physical: true ## Is the crate Physical? True if it is Physical otherwise false (Virtual) item: 'chest' ## If it is Physical, specify what Item it should be. item-name: 'General Crate' ## Give the item an name. item-lore: - 'A normal crate containing everyday things.' ## What should the Lore be? '1': ## 1/1 (100%) chance to recieve an $200 playermessage: The contained $200! detail: $200 commands: - /eco give {PLAYER} 200 '5': ## 1/5 (20%) chance to recieve an $500 playermessage: You have won $500! detail: $500 commands: - /eco give {PLAYER} 500 '20': ## 1/20 (5%) chance to recieve 5 diamonds playermessage: Diamond! broadcast: '{PLAYER} has recieved 5 Diamonds from opening a crate.' detail: 5 Diamonds commands: - /give {PLAYER} diamond 5 '100': ## 1/100 (1%) chance to lose $500 playermessage: Bad Luck, you lost $500 detail: Lose $500 commands: - /eco take {PLAYER} 500 '150': ## 1/150 (0.67%) chance to recieve five diamonds broadcast: '{PLAYER} has recieved 5 Diamonds opening a crate.' playermessage: You have been Granted 5 Crates detail: 5 Crates commands: -'/crates give {PLAYER} 5 '200': ## 1/200 (0.5%) chance to recieve an Fire 2 Diamond Sword playermessage: Here lied an sword left by the Fire God. broadcast: '{PLAYER} has recieved a God Sword from opening a crate.' detail: Fire Diamond Sword commands: - '/give {PLAYER} diamond_sword 1 fire:2' weaponcrate: ## Unique Identifier = 'weaponcrate' buy-enabled: true ## In this case, buy is enabled, therefore the command to buy this crate is /crate buy weaponcrate {AMOUNT} cost: 1500 ## The cost to buy this crate is $1500 need-perm-to-buy: false ## This does not require any extra permission besides the default permission to buy this crate. ## It is not an physical crate so it does not require any sort of extra components. '5': ## 1/5 (20%) chance to recieve an Fire 2 Iron Sword playermessage: You recieved an Fire 2 Iron Sword from Weapon Crate! detail: Fire 2 Iron Sword commands: - '/give {PLAYER} iron_sword 1 fire:2' '25': ## 1/25 (4%) Chance to recieve an Fire 4 Iron Sword playermessage: You recieved an Fire 4 Iron Sword from Weapon Crate! detail: Fire 4 Iron Sword commands: - '/give {PLAYER} iron_sword 1 fire:4' '100': ## 1/100 (1%) Chance to recieve an Fire 2 Diamond Sword playermessage: You recieved an Fire 2 Diamond Sword from Weapon Crate! broadcast: '{PLAYER} has recieved a Fire 2 Diamond Sword from opening a Weapon Crate.' detail: Fire 2 Diamond Sword commands: - '/give {PLAYER} diamond_sword 1 fire:2'
If you have any further questions, feel free to ask.