Skip to main content

Item Configuration

Item templates are configured under the items/ directory as individual YAML (.yml) files. They define the physical size, value, display properties, and rewards of the mystery items.


Example Item Configs

1. Virtual Item

id: "golden_ticket"
rarity: "common"
type: "consumable"
base-item: "minecraft:paper"
display-name: "Golden Ticket"
desc: "Allows entering exclusive auctions!"
width: 3
height: 1
custom-model-data: 1001
worth: 50.0
virtual-item: true

2. Container (Physical / Reward-based) Item

id: "mysterious_box"
rarity: "super_rare"
type: "collectible"
base-item: "minecraft:chest"
display-name: "Mysterious Box"
desc: "A mysterious container containing unknown treasure!"
width: 2
height: 2
custom-model-data: 0
worth: 300.0
virtual-item: false
rewards:
- type: "item"
id: "golden_ticket"
amount: 2
- type: "item"
id: "lucky_charm"
amount: 1
- type: "item"
id: "diamond_block"
amount: 2

Configuration Properties

FieldTypeDefaultDescription
idStringRequiredUnique item ID matching the filename.
rarityStringRequiredRarity ID referencing a file in rarities/.
typeStringRequiredItem type ID referencing a file in types/.
base-itemStringRequiredThe raw Minecraft material key (e.g. minecraft:chest). Resolved via YueMiLibs.
display-nameStringCustom display name of the item stack (supports Adventure MiniMessage formatting).
descStringDescription lore text (formatted in white).
widthInteger1Item width in slots for chest container packing (1 to 6).
heightInteger1Item height in slots for chest container packing (1 to 3).
custom-model-dataInteger0Resource pack CustomModelData value.
worthDouble0.0Financial value of the item in the auction system.
virtual-itemBooleanfalseIf true, the winner receives the item's worth in currency. If false, the rewards list is evaluated and distributed.
rewardsListList of rewards distributed when a non-virtual item is won. Supports type "item" referencing other custom items.