config/104/crate.yml
Example crate.yml - Commented and Explained.
# <- This hash-tag or number symbol is an comment. They are only here to explain whats happening and do not need to be edited in any situation ##################### # - Example Crate - # ##################### crate: # Unique Identifier. The Unique Identifier for this is 'crate' ################ # - Settings - # ################ buy-enabled: false # If you wish for the crate to be for sale, set it to true. We are not selling in this case. cost: 3000 # If you are selling the crate, what should the cost be? need-perm-to-buy: false # Do you need permission to buy the crate? If true, the perm is cactuscrate.buy.{Unique_Identifier}. Ex. cactuscrate.buy.crate is-physical: true # Is the crate Physical (Item) or Virtual (Data). item: 'chest' # If it is Physical, What should the item be? item-name: '{GREEN}Example Crate' # What should the item's name be? item-lore: # What should the lore be? - '{GREEN}An Generic Crate' - '{WHITE}Yes, We support multiple lore' use-gui: true # Do you want an Inventory GUI, which helps hand out the reward? ############### # - Rewards - # ############### '1': # If the reward is '1', the player will receive this reward every time they open the crate. playermessage: 'Recieved Basic Package' # What message do you want to send to the player when they recieve the crate? detail: '$1000, 4 Apples, 4 Pork, 50 Exp' # How would you describe this Reward? /crate info {Unique_Identifier} display-item: 'chest name:{BLUE}ExampleName lore:ExampleLore' # If the crate has an GUI, what should the icon be? # {item} name:{...} lore:{...} commands: # What commands are used to give out this reward? - '/eco give {PLAYER} 1000' - '/give {PLAYER} apple 4' - '/give {PLAYER} pork 4' - '/xp give {PLAYER} 50' # 1/5 (20%) Chance to recieve an $2000 '5': playermessage: You have won $2000! display-item: 'book name:{BLUE}$2000 lore:$2000!' detail: $2000 commands: - /eco give {PLAYER} 2000 # 1/20 (5%) Chance to recieve 5 diamonds '20': playermessage: Diamond! display-item: 'diamond name:{BLUE}Diamonds lore:5_Diamonds!' broadcast: '{PLAYER} has recieved 5 Diamonds from opening a crate.' detail: 5 Diamonds commands: - /give {PLAYER} diamond 5 # 1/100 (1%) Chance to win a full diamond-armor set. '100': playermessage: You're set for Battle! display-item: 'diamond_helmet name:{BLUE}Battle_Kit lore:Full_Set_of_Armor' detail: Full Diamond-Armor Set! commands: - '/give {PLAYER} 310 1' - '/give {PLAYER} 311 1' - '/give {PLAYER} 312 1' - '/give {PLAYER} 313 1' # 1/150 (0.67%) Chance to recieve 5 chest '150': playermessage: When you opened the crate, 5 more crates miraculously appeared! display-item: 'chest name:{BLUE}Cactus_Crates! lore:5_crates!' broadcast: '{PLAYER} has recieved 5 crates opening a crate!' detail: Five Crates commands: - '/crates give {PLAYER} 5' # 1/200 (0.05%) Chance to recieve an Pig Spawner '200': playermessage: 'The crate contained an Pig Spawner!' display-item: 'mob_spawner name:{BLUE}Pig_Spawner lore:How_Lucky!' broadcast: '{PLAYER} has recieved an Pig Spawner from opening a crate.' detail: Pig Spawner commands: - '/give {PLAYER} 52 1'
If you have any further questions, feel free to ask.