Skip to content

Default Prices (1.21)

dRotatingShop ships with prices_1_21.yml — a bundled price list of vanilla 1.21 items. It exists to seed your items.yml so the shop works out of the box, and is read by /dshop seed.

  • First start — while items.yml has no items, every entry that maps to a real material on your server is migrated into items.yml (~1,200 items). This runs once; a flag in data.yml (seeded: true) stops it re-running.
  • /dshop seed — force-loads the list any time, skipping ids that already exist. Use this if the auto-seed was skipped (e.g. you’d already added a few items, so the pool wasn’t empty), or to refresh after clearing the pool.

The auto-seed only fires when the pool is empty, so it never floods a catalogue you’ve curated. To get the full list anyway, run /dshop seed.

A flat map keyed by material id:

jungle_log:
name: jungle log # label -> title-cased into the item's display name
category: logs # informational only
stack: 64 # informational only
unit_buy: 8 # -> the item's price
stack_buy: 512 # informational only

For each entry, the seeder writes an items.yml item with:

items.yml field Source
material the entry key (e.g. jungle_logJUNGLE_LOG)
display-name name, title-cased
price unit_buy
stock seed.default-stock from config.yml (default 64)
per-player-limit seed.default-per-player-limit (default 8)

Edit prices_1_21.yml (or replace it entirely) before the first seed — change prices, drop entries, or add your own. Any key that doesn’t resolve to a material on your server version (e.g. potions, tipped arrows, or items from a newer release) is simply skipped, so a mismatched list won’t error.

After the first seed, the live pool is items.yml — edit prices there. prices_1_21.yml is only consulted by the seed.

To rebuild the pool from the price list only:

  1. Stop the server.
  2. Delete data.yml (clears the seeded flag) and empty items.yml (or delete it — it regenerates empty).
  3. Start the server — it seeds fresh.

Or just run /dshop seed to add the catalogue on top of what you already have.