Shop Prices

Haberdashery supports Impactor currencies, along with generic Minecraft items

Shop Products have prices - by default most people will just want the primary Impactor currency (impactor:dollars). Setting the buy or sell keys on a Shop Product defines the price. Numeric prices use the shop currency, or defaultCurrency from config.json if the shop does not set one.

Numeric prices

{
  "item": { "id": "minecraft:oak_log", "amount": 16 },
  "buy": 150.0,
  "sell": 50.0
}

Item prices

{
  "item": { "id": "minecraft:emerald", "amount": 16 },
  "buy": {
    "item": { "id": "minecraft:diamond", "amount": 4 },
    "name": "4x Diamonds"
  }
}

The name field is optional. If omitted, the display name is derived from the item (i.e. <amount>x <item name>). This item example lets the player buy 16x Emerald for 4 Diamonds. The "item" price uses the Item Builderformat, letting you use custom items using Custom Model Data.

Last updated