This repository was archived by the owner on May 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Setup
Az928 edited this page Jul 24, 2018
·
7 revisions
Config field setup formats
name: Mystery Box name (use '&' for colors)
box.id: A string/text that is different for each box (example: common)
rgb: An array containing 3 integer, this will modify box particle colors
item: " item_name/id:meta:count:none/custom_name:enchant_id:level:enchant_id:level... "
-
For box key, the item format is just "item_name/id:meta"
-
Key has a custom name field also with field name
lore: An array containing lore for the key item
items: An array containing possible rewards configuration
- These two fields are needed
item and chance (An integer to determine chance of getting the item, 1 to 100)
- display field is optional if you want the reward display text to be custom
A template is written below with two crates configured
boxes:
- name: "&6&lCommon Mystery Box"
box.id: common
key:
item: "tripwire_hook:1"
name: "&8[Key]&r Common"
lore:
- "&7Type: &acommon"
- "&7Source: &cunknown"
- " "
- "&fUsed to open &6&lCommon Mystery Box"
rgb:
- 255
- 255
- 255
items:
- item: "bread:0:1"
chance: 30
display: "You won a bread"
- item: "322:0:20"
chance: 20
display: "This is an example custom display text"
- item: "466:0:1"
chance: 15
- item: "49:0:10"
chance: 40
- item: "iron_ingot:0:32"
chance: 80
- item: "gold_ingot:0:32"
chance: 60
- item: "bedrock:0:1"
chance: 1
- name: "&b&lLoot Mystery Box"
box.id: loot
key:
item: "tripwire_hook:2"
name: "&8[Key]&r Loot"
lore:
- "&7Type: &bloot"
- "&7Source: &cunknown"
- " "
- "&fUsed to open &b&lLoot Mystery Box"
rgb:
- 255
- 220
- 100
items:
- item: "diamond:0:10"
chance: 80
- item: "466:0:20"
chance: 20
- item: "diamond_block:0:5"
chance: 15
- item: "49:0:64"
chance: 40
- item: "iron_block:0:32"
chance: 80
- item: "130:0:1"
chance: 10
- item: "bedrock:0:20"
chance: 5
`