Shopkeeper
Overview
The Shopkeeper is a central game mechanic that allows players to purchase items during the preparation phase. Items are organized into categories, making it easy for players to find and purchase what they need.
Items
The items are located in the /items/
folder. Each item has its own file with a separate configuration. Each file contains modules, which determine how the item functions in the Shopkeeper.
Categories
The shop organizes items into the following categories:
Permanent/Upgrades: Items like swords and armor that persist and can be upgraded
Consumables: Items that can be purchased repeatedly (e.g., Golden Apples, Ender Pearls)
Eggs: Special items that spawn minions when right-clicked on the ground
TNT: Throwable explosives activated by left-clicking
Creating Items
Access the
/items/
directory.Identify an existing item file to use as a template.
Duplicate the template file.
Rename the duplicate file for your new item.
Adjust the configuration to customize your item.
Item Modules
Items are configured using various modules that control their behavior and properties:
Mythic
Controls whether the item is part of the mythic item pool
Purchase
Defines buying conditions like cost and unlock requirements
Upgrade
Configures upgrade paths and tiers for items
Enchant
Handles enchantment application and limitations
Command
Handles command execution upon purchasing items
Equipment-builder
Specifies inventory placement and item properties
Configuration
Mythic Module
mythic:
is-mythic: true
Purchase Module
purchase:
gold-cost: 750
round-unlock: 1
consumable: true
category: "SUMMONS"
Upgrade Module
upgrade:
shared-id: "chestplate"
upgrade-tier: 2
Enchant Module
# Example 1
enchant:
is-enchant: true
max-purchases: 2
cost-increase-per-purchase: 25
apply-to:
- BOW
apply-enchants:
- "enchant{PUNCH} power{1}"
# Example 2
enchant:
is-enchant: true
apply-to:
LEATHER_BOOTS:
- "enchant{FEATHER_FALLING} power{4}"
CHAINMAIL_BOOTS:
- "enchant{FEATHER_FALLING} power{4}"
IRON_BOOTS:
- "enchant{FEATHER_FALLING} power{4}"
DIAMOND_BOOTS:
- "enchant{FEATHER_FALLING} power{4}"
NETHERITE_BOOTS:
- "enchant{FEATHER_FALLING} power{4}"
LEATHER_CHESTPLATE:
- "enchant{PROTECTION} power{1}"
CHAINMAIL_CHESTPLATE:
- "enchant{PROTECTION} power{1}"
IRON_CHESTPLATE:
- "enchant{PROTECTION} power{1}"
DIAMOND_CHESTPLATE:
- "enchant{PROTECTION} power{1}"
NETHERITE_CHESTPLATE:
- "enchant{PROTECTION} power{1}"
Equipment Builder Module
equipment-builder:
39:
ignore-slot: false
lore:
- "&8Permanent"
type: IRON_HELMET
amount: 1
damage: 0
model: 0
glint: false
head: ""
attributes:
- "attribute{ARMOR} operation{ADD_NUMBER} value{2.5}"
- "attribute{ARMOR_TOUGHNESS} operation{ADD_NUMBER} value{1.0}"
potions:
tags:
- "key;value"
enchants:
Item Examples
Iron Sword
purchase:
gold-cost: 500
round-unlock: 5
consumable: false
category: "WEAPONS"
upgrade:
shared-id: "sword"
upgrade-tier: 2
equipment-builder:
0:
ignore-slot: false
lore:
- "&8Permanent"
type: IRON_SWORD
amount: 1
damage: 0
model: 0
glint: false
head: ""
attributes:
- "attribute{ATTACK_DAMAGE} operation{ADD_NUMBER} value{5.0}"
- "attribute{ATTACK_SPEED} operation{ADD_NUMBER} value{-2.6}"
potions:
tags:
- "key;value"
enchants:
Potion
purchase:
gold-cost: 500
round-unlock: 1
consumable: true
category: "POTIONS"
equipment-builder:
0:
ignore-slot: true
lore:
- "&8Consumable"
type: SPLASH_POTION
amount: 1
damage: 0
model: 0
glint: false
head: ""
potions:
- "effect{HASTE} duration{200} amplifier{0} ambient{false} particles{true}"
tags:
- "key;value"
enchants:
Breeze Egg
purchase:
gold-cost: 750
round-unlock: 1
consumable: true
category: "SUMMONS"
equipment-builder:
0:
ignore-slot: true
lore:
- "&8Consumable"
type: BREEZE_SPAWN_EGG
amount: 1
damage: 0
model: 0
glint: false
head: ""
potions:
tags:
- "key;value"
enchants:
Sharpness Enchant
purchase:
gold-cost: 500
round-unlock: 1
category: "ENCHANTS"
enchant:
is-enchant: true
max-purchases: 5
cost-increase-per-purchase: 25
apply-to:
- WOODEN_SWORD
- STONE_SWORD
- IRON_SWORD
- DIAMOND_SWORD
- NETHERITE_SWORD
enchants:
- "enchant{SHARPNESS} power{1}"
equipment-builder:
0:
ignore-slot: false
name: "Sword: Sharpness {ENCHANT_LEVEL}"
lore:
- ""
- "&7Add &d🌟 Sharpness &7to &fSwords"
- ""
- "&7Max Enchant: &b{MAX_ENCHANT_LEVEL}"
- "&7Can be purchased multiple times."
type: ENCHANTED_BOOK
amount: 1
damage: 0
model: 0
glint: false
head: ""
potions:
tags:
- "key;value"
enchants:
Random Augment
mythic:
is-mythic: true
enchant:
is-enchant: true
command:
- "console->al player {PLAYER} ROLL_AUGMENT PRISMATIC"
equipment-builder:
0:
ignore-slot: false
name: "&cRandom Augment"
lore:
- ""
- "&7Roll &f{ICON_CARDS}&7."
type: PAPER
amount: 1
damage: 0
model: 11205302
glint: false
head: ""
potions:
tags:
- "key;value"
enchants:
ItemsAdder
purchase:
gold-cost: 500
round-unlock: 5
consumable: false
category: "WEAPONS"
upgrade:
shared-id: "sword"
upgrade-tier: 2
equipment-builder:
0:
ignore-slot: false
custom: "namespace:id"
Last updated