Shopkeeper
π§ Overview
The Shopkeeper is a core game mechanic that allows players to purchase items during the preparation phase. Items are grouped into categories to make browsing and purchasing fast and intuitive.
π¦ Items
All items are stored inside the /items/ folder.
Each item has its own file and configuration.
Every item file is made up of modules, which define how the item behaves in the shop.
π Categories
Permanent / Upgrades
Items that persist and can be upgraded (e.g., swords, armor).
Consumables
Items that can be purchased repeatedly (e.g., Golden Apples, Ender Pearls).
Eggs
Special items that spawn minions when right-clicked.
TNT
Throwable explosives activated by left-clicking.
π Creating Items
Open the
/items/directory.Choose an existing item file as a template.
Duplicate it.
Rename the copy to your new itemβs name.
Edit the configuration to define your itemβs behavior.
π§© Item Modules
Each module defines a specific part of how the item works.
πͺ Mythic Module
Marks the item as Mythic, linking it to mythic-related features (e.g., augments, rare effects).
π° Purchase Module
Defines purchase details and availability.
gold-cost
How much gold the item costs.
round-unlock
Round number when the item becomes available.
consumable
Whether it can be bought multiple times.
category
The category this item belongs to.
πΌ Upgrade Module
Items with the same shared-id form an upgrade path.
Higher upgrade-tier values = better versions.
β¨ Enchant Module
Example 1 (basic):
Example 2 (advanced, per-item):
cost-increase-per-purchase is a percentage increase per buy.
Example with 25% increase:
Level 1: 500 Gold
Level 2: 625 Gold
Level 3: 750 Gold
π§± Equipment Builder Module
Controls what item is given, its visuals, and stats.
ignore-slot
Whether the slot should be ignored when given.
type
The item type (e.g., IRON_HELMET).
attributes
Attribute modifiers (armor, damage, etc.).
enchants
Optional enchantments.
lore
Text lines shown in the tooltip.
π‘ Examples
βοΈ Iron Sword
π§ͺ Potion
πͺ Breeze Egg
π Sharpness Enchant
π Random Augment
π§© ItemsAdder Integration
Last updated