Wiki Shops and trading

Prices and payment items

How to write the price line, take any item as payment, and how change works.

Line 3 of a shop sign is the price: an amount and an item.

Writing the price

Write the number and the item name, like 3 emerald, 16 iron ingot or 1 netherite. The number can also go after the name. A number alone, like 2, means diamonds.

Item names are forgiving: capital letters, spaces or underscores, plurals and minecraft: in front are all fine. Short names work too: dia for diamond, em or ems for emerald, iron, gold, copper and netherite for their ingots, xp for a bottle o' enchanting, pearl for an ender pearl, shell for a shulker shell and lapis for lapis lazuli.

Items you can't type

For a price like an enchanted book or a potion, use your off-hand.

  1. Hold the payment item in your off-hand.
  2. Write only the number on line 3.
  3. Place the sign. The price is an exact copy of the item in your off-hand.

A sign in your off-hand doesn't count. Then the price is diamonds.

Limits

Items you can't get in survival, like command blocks, barriers, bedrock, light blocks and spawn eggs, can't be prices. The highest price is 2,304, and never more than a full inventory of that item can pay (36 for items that don't stack, like potions).

Change

Buyers can pay with blocks and get change back. Loose items are used first. For example, a shop that asks 3 diamonds takes a diamond block from a buyer with no loose diamonds and gives back 6 diamonds.

Change works for diamonds, emeralds, iron, gold, copper and netherite ingots and their blocks, lapis, redstone, coal, raw iron, raw gold, raw copper, slime balls, bone meal, wheat, dried kelp, resin, and gold, iron and copper nuggets (9 nuggets make an ingot). It only works for plain items, not renamed or enchanted ones.

Tip If the chest is short on space, the shop stores payment as blocks to make it fit.