VoxelTropia

Wiki / NPC Shops

Mechanics | specification

NPC Shops

The Merchant, Alchemist, Technician and Farmer sell items for VED from your wallet. The Merchant buys back everything at a price list, while the Alchemist and Technician buy back their own stock, potions and machines for half the value of the raw materials. The last sale can be undone.

Shops in the game

Four NPCs sell items for VED from the player's wallet, and three of them also buy items back. They all use the same window and the same purchase rules. Prices differ only in the stock and in how buyback is valued.

NPCWindowSellsBuys
Merchant
also the /shop command
Merchant's Shopenchanted tools with effects, bow, armor, apples, diamonds, emeralds, crate keysany ordinary item and blueprint products, at a price list (Merchant buyback)
AlchemistAlchemistpotion ingredients and the brewing standthose ingredients and potions, for 50% of the raw material value
TechnicianTechnicianminion upgrades, fuel, parts, wooden, stone and iron toolsits own stock and machine blueprint products, for 50% of the raw material value
FarmerFarmerFarmer's Magic Pickaxe, with confirmationnothing

Where they stand

  • All sellers stand in the lobby. Clicking an NPC opens its shop.
  • The Merchant's window is also opened by the /shop command (/sklep, /handlarz), on every server, including on an island. The other shops are available only at their NPCs.
  • The lobby also has an Auctioneer (approx. x 21, y 41, z 73). It is not a shop: it opens the auction house, the same window as /ah (Auction House).
  • The Alchemist looks like a female alchemist.

The shop window

The window has 6 rows. The stock fills the 4 middle rows without the outermost columns, so up to 28 entries. The bottom row consists of black panes and buttons.

PlaceAction
Stock entryclick buys one pack, Shift + click buys 10 packs (purchase)
Barrier (middle of the bottom row)closes the window
"Sell" hopper (bottom right corner)only in a shop that buys items back; after a sale it shows the last item sold, and clicking it undoes the sale (undo)
Player inventoryclicking an item sells the whole stack (buyback)

An entry's description shows the price of a pack, the price of 10 packs ("Shift + click") and, if the shop buys that item back, the buyback price per piece. Nothing can be taken out of the window or put into it: every click and drag is blocked, including in the player's inventory. Only the left and right buttons work, with or without Shift; the number keys 1-9, double click and the middle button do nothing.

Purchase

  1. Clicking an entry buys one pack (e.g. 16 golden apples), Shift + click buys 10 packs for 10 times the price.
  2. The game checks whether all the goods will fit in the inventory (hotbar and backpack). If not: "Make room in your inventory - the purchase will not fit." and nothing happens.
  3. The game takes VED from the wallet (not from the bank). Too little VED: "Not enough VED - this costs ... VED." Nothing is taken or issued.
  4. After the VED is taken, the goods go to the inventory: "Bought ... for ... VED." A set with effects applies its effects immediately for 10 minutes.
  • A second click during a purchase is ignored, so you cannot pay twice.
  • If space runs out between the check and the handover (e.g. the player picked up an item), the excess drops at the player's feet and only the buyer can pick it up.
  • If the player leaves the game after the VED is taken but before the goods are issued, the VED returns to the account.
  • Shift on a set with effects gives 10 sets, but the effects apply once, for 10 minutes.

Confirmation

An entry with confirmation (today only the Farmer's pickaxe) opens a small window: the item in the middle, "Buy" on the left with the description "You will pay ... VED", "Cancel" on the right. Shift + click opens the confirmation straight away for 10 pieces for 25,000 VED. After buying or cancelling, the shop window returns.

Buyback

A shop buys items back if it has the "Sell" hopper in the corner of the window: the Merchant, Alchemist and Technician. The Farmer buys nothing.

  1. After the window opens, every item in the inventory (hotbar and backpack, without armor and the off hand) that this shop will buy gets "You sell for: ... VED" in its description, for the whole stack, calculated for the whole sale at once (not per piece separately, see below).
  2. Clicking such an item sells the whole stack from that slot. The item disappears immediately and the VED goes to the wallet: "Sold 64x ... for ... VED".
  3. Clicking an item the shop does not buy: "This shop does not buy that." The item stays in the inventory.
  4. A sale that would come to 0 VED (a very cheap material in a small amount) is rejected: "Too little to sell." The item stays in the inventory, VED does not change.
  5. If the payout fails, the item returns: "Payout failed - the item is back in your inventory."
  6. After the window closes, the price notes disappear.
MerchantAlchemist and Technician
Ordinary Minecraft itemany, at the price list (default 1 VED per piece)only from their own stock, 50% of the price
Blueprint productany, 100% of the raw material value at the buyback price listonly machines at the Technician and products the shop itself sells; 50% of the raw material value at NPC shop prices
Potionlike an ordinary item (default price)only the Alchemist, 50% of the potion value (potions)
Game catalog itemnoonly from their own stock (Auto Smelter, Compactor), 50% of the price
Wear (durability)irrelevantlowers the price proportionally
Roundingwhole sale at once, rounded down to full VEDwhole sale at once, rounded down to full VED

Buyback at 50% of value (Alchemist, Technician)

payout for the whole sale = floor(raw material value per piece x 50% x remaining durability / maximum x number of pieces) rounded down, in full VED payout 0 VED = sale rejected, the items stay

VED exists only in whole units: rounding happens once, at the end, for the whole sale at once - not separately for each piece and then added up. With several pieces at once this differs from rounding each piece separately and summing (example below). An item without durability (or an unbreakable one) counts as new. The raw material value of a piece:

ItemRaw material value
an entry from this shop's stockits price per piece (pack price / pieces in the pack)
a blueprint product from a category the shop buys (Technician: machines)sum of the recipe ingredients / number of pieces produced; quality is irrelevant
a blueprint product the shop itself sellsas above, but no more than the price in the stock
potion (Alchemist only)the bottle and one third of the ingredient portion (potions)
ingredient value = lowest price per piece in NPC shops (sold by the Merchant, Alchemist, Technician or Farmer) = price from the Merchant's buyback price list (a material no shop sells) = value of the cheapest recipe that makes it (a game item, e.g. a component) = 0 (no price and no recipe)

Valuation descends the recipe chain at most 8 levels. A recipe with a loop or too long a chain has no valuation, so the shop will not buy such a product.

Example: durability and rounding

An Iron Pickaxe costs 60 VED at the Technician and has 250 durability points. A new one returns for 30 VED, and with 100 points remaining for 60 x 50% x 100/250 = 12 VED. A Stone Pickaxe (10 VED, 131 points) with 100 remaining: 10 x 50% x 100/131 = 3.8168, rounded down to 3 VED.

Example: the whole sale at once, not piece by piece

Blaze Powder is worth 15 VED. Sold singly: 15 x 50% = 7.5, rounded down to 7 VED. Sold 3 pieces at once: 3 x 15 x 50% = 22.5, rounded down to 22 VED - 1 VED more than rounding three separate sales would give (3 x 7 = 21).

What shops do not buy

  • an item with a custom name or enchantments (sets with effects, the Farmer's pickaxe, keys, rewards, mob drops, enchanted tools), unless it is a blueprint product;
  • a product below 100% quality without a source blueprint mark, and an item with a damaged quality mark;
  • a product from an unknown blueprint and a product whose valuation comes to 0;
  • minions (they have a custom name and no blueprint mark) and pets (they go to the collection);
  • at the Alchemist and Technician: anything outside their stock, potions and (at the Technician) machines;
  • at the Merchant: a material with price 0 in the price list.

Undoing a sale

Every sale in any shop goes to the top of the player's single queue. The bottom right corner of the window shows only the last sale: an item with the description "Sold for ... VED" and the number of sales beneath it.

  1. Clicking the corner undoes the last sale. The previous one is revealed beneath it, until the queue runs out and the hopper returns.
  2. The player gives back exactly as much VED as they received. The item returns with the same properties (including wear): "Sale undone: ... (-... VED)".
  3. At least one free inventory slot is needed. Without it: "Make room in your inventory to undo the sale."
  4. If the wallet lacks that amount, the sale stands: "You no longer have those ... VED - the sale cannot be undone."
Queue length
the last 64 sales; older ones drop out and cannot be undone
Shop
the queue is shared: a sale at the Alchemist can be undone at the Merchant and vice versa; the Farmer has no corner
Moving to another server
the queue stays (e.g. lobby <-> island)
Leaving the game
the queue is lost
Maximum age
12 h since the last sale

Merchant

The "Merchant's Shop" window: at the Merchant NPC or with the /shop command. Sets are enchanted items with custom names. A set's effects last 10 minutes from purchase. The Merchant does not buy back sets or keys; of the ordinary entries it buys back apples, diamonds, emeralds and bow arrows at the price list.

EntryContentsEffects (10 min)PriceShift (10x)Buyback per piece
Magic PickaxeDiamond Pickaxe, Efficiency V, Unbreaking III, Fortune III, MendingHaste II, Speed II4004,000–
Magic ShovelDiamond Shovel, Efficiency V, Unbreaking III, MendingHaste II1501,500–
Magic AxeDiamond Axe, Efficiency V, Unbreaking III, Sharpness V, MendingHaste II, Strength I4004,000–
Magic SwordDiamond Sword, Sharpness V, Unbreaking III, Looting III, MendingStrength II, Speed II3003,000–
Magic BowBow, Power V, Unbreaking III, Flame I, Infinity, Mending; 64x Arrows–60600–
Magic Armor SetDiamond Helmet, Diamond Chestplate, Diamond Leggings, Diamond Boots; Protection IV, Unbreaking III, MendingResistance II, Regeneration I7007,000–
Golden Apples (16x)16x Golden Apples–480
30 each
4,8001
Enchanted Golden Apples (4x)4x Enchanted Golden Apples–1,200
300 each
12,0001
Diamonds (64x)64x Diamonds–4,800
75 each
48,00050
Emeralds (64x)64x Emeralds–3,840
60 each
38,40040

The bow comes with 64 arrows, which the Merchant buys back at 0.5 VED each (price list), i.e. 32 VED for all of them at once, less than the price of the bow (60 VED).

Crate keys

Clicking gives one key, Shift + click gives 10. The Merchant does not sell the VIP Key. What keys are for: Crates and keys.

KeyPriceShift (10x)
Copper Key2502,500
Iron Key7507,500
Gold Key2,00020,000
Diamond Key6,00060,000
Obsidian Key15,000150,000

Merchant buyback

The Merchant buys any ordinary Minecraft item, regardless of wear. A material not in the table costs 1 VED per piece in the price list. A price of 0 in the price list means the Merchant does not buy that material.

payout = floor(price per piece x number of pieces in the stack) rounded down, in full VED, for the whole sale at once price per piece = price from the price list or the default price (may be a fraction of a VED, e.g. Cobblestone 0.5, Dirt 0.1)

A sale that would come to 0 VED is rejected - the items stay with the player.

MaterialPrice per piece (price list)Payout for a stack of 64Cheapest in NPC shops
Diamond503,20075
Emerald402,56060
Gold Ingot201,280–
Iron Ingot1064015
Coal31925
Cobblestone0.532–
Arrow0.532–
Dirt0.16–
any other material164–

No buyback price is higher than the lowest price at which the same item can be bought from an NPC, so buying and selling yield no profit.

Blueprint products at the Merchant

The Merchant buys a blueprint product for the full raw material value of its recipe, regardless of quality: a product with 31% quality is worth the same as one with 100%. It values ingredients solely by its own buyback price list (not by shop prices). Quality rules: Product quality.

product value per piece = sum (ingredient value per piece x amount) / number of pieces the recipe produces ingredient value = price from the Merchant's buyback price list (material) = value of the cheapest recipe that makes it (game item) = 0 (no price and no recipe) Merchant pays = floor(product value per piece) rounded down, in full VED; 0 - does not buy
ProductIngredients (value per piece)Merchant pays per piece
Compactor32 x Iron Ingot (10)
16 x Redstone Dust (1)
1 x Chest (1)
337
Auto Smelter64 x Cobblestone (0.5)
32 x Coal (3)
8 x Iron Ingot (10)
208
Incubation Core4 x Bio Gel (0.00 no price and no recipe)
2 x Diamond (50)
8 x Redstone Dust (1)
108
Incubator8 x Iron Ingot (10)
4 x Glass (1)
2 x Nutrient Paste (4 from recipe)
92
Iron Sword3 x Iron Ingot (10)
1 x Stick (1)
31
Taming Lure4 x Wheat (1)
2 x Bone (1)
6
Nutrient Paste2 x Zombie Heart (0.00 no price and no recipe)
4 x Wheat (1)
4
Example

An Iron Sword from the Iron Longsword blueprint: 3 x 10 + 1 x 1 = 31 VED. That is what the Merchant pays for a sword of 31% quality and for a sword of 100% quality.

Alchemist

The "Alchemist" window. It sells basic potion ingredients and the brewing stand. It buys back the same items for 50% of the price, and potions for 50% of their value.

ItemIn packPriceShift (10x)Buyback per piece
Glass Bottle12201
Nether Wart16603
Sugar12201
Glistering Melon Slice1121206
Spider Eye14402
Fermented Spider Eye19904
Blaze Powder1151507
Magma Cream1181809
Ghast Tear14040020
Blaze Rod13030015
Rabbit's Foot12525012
Pufferfish1101005
Golden Carrot1121206
Redstone Dust12201
Glowstone Dust13301
Gunpowder14402
Phantom Membrane12525012
Turtle Scute14040020
Dragon's Breath16060030
Brewing Stand14040020
Mana Crystal32646401
Ember Wand15005.000250
Frost Wand11.50015.000750
Mending Wand11.50015.000750
Venom Wand13.00030.0001.500
Spark Wand16.00060.0003.000
Fireball Staff18.00080.0004.000
Storm Staff112.000120.0006.000
Bat Swarm Staff112.000120.0006.000
Staff of Renewal115.000150.0007.500
Meteor Staff130.000300.00015.000

Potion value

Value is calculated per bottle. One portion of ingredients brews 3 bottles, so one third of a portion falls to each bottle.

value = Glass Bottle + (Nether Wart + effect ingredient + modifiers) / 3 buyback = floor(value x 50% x number of bottles) rounded down, in full VED, for the whole sale at once
ModifierAdds to the portion
long versionRedstone Dust (2 VED)
strong version (II)Glowstone Dust (3 VED)
splashGunpowder (4 VED)
lingeringGunpowder and Dragon's Breath (4 + 60 VED), because it is made from a splash potion
  • Ingredients are valued at the lowest price in NPC shops. A bottle costs 2 VED.
  • Potions with Fermented Spider Eye are valued starting from the cheapest base potion: Harming from Poison, Slowness from Swiftness, Invisibility from Night Vision. Weakness has no wart: bottle + Fermented Spider Eye / 3.
  • Water, Awkward, Mundane and Thick: the bottle and whatever was put into it.
  • A potion with a custom name, enchantments or custom effects, and every potion not in the table, is not bought back.
Example

Strength: 2 + (6 + 15) / 3 = 9 VED, buyback of one bottle floor(9 x 50%) = 4 VED. Long Swiftness: 2 + (6 + 2 + 2) / 3 = 5.3333 VED, buyback floor(5.3333 x 50%) = 2 VED. Weakness: 2 + 9 / 3 = 5 VED, buyback 2 VED. An intermediate value (e.g. 5.3333) may remain a fraction, but the payout is always in full VED.

PotionPortion (without bottle)Bottle valueBuyback: regularsplashlingering
Water–21111
AwkwardNether Wart42212
MundaneRedstone Dust2.671212
ThickGlowstone Dust31212
SwiftnessNether Wart, Sugar4.672313
Swiftness (long)Nether Wart, Sugar, Redstone Dust5.332313
Swiftness IINether Wart, Sugar, Glowstone Dust5.672313
StrengthNether Wart, Blaze Powder94515
Strength (long)Nether Wart, Blaze Powder, Redstone Dust9.674515
Strength IINether Wart, Blaze Powder, Glowstone Dust105515
HealingNether Wart, Glistering Melon Slice84414
Healing IINether Wart, Glistering Melon Slice, Glowstone Dust94515
RegenerationNether Wart, Ghast Tear17.338919
Regeneration (long)Nether Wart, Ghast Tear, Redstone Dust189919
Regeneration IINether Wart, Ghast Tear, Glowstone Dust18.339919
Fire ResistanceNether Wart, Magma Cream105515
Fire Resistance (long)Nether Wart, Magma Cream, Redstone Dust10.675616
Night VisionNether Wart, Golden Carrot84414
Night Vision (long)Nether Wart, Golden Carrot, Redstone Dust8.674515
Water BreathingNether Wart, Pufferfish7.333414
Water Breathing (long)Nether Wart, Pufferfish, Redstone Dust84414
LeapingNether Wart, Rabbit's Foot12.336616
Leaping (long)Nether Wart, Rabbit's Foot, Redstone Dust136717
Leaping IINether Wart, Rabbit's Foot, Glowstone Dust13.336717
PoisonNether Wart, Spider Eye5.332313
Poison (long)Nether Wart, Spider Eye, Redstone Dust63313
Poison IINether Wart, Spider Eye, Glowstone Dust6.333313
Slow FallingNether Wart, Phantom Membrane12.336616
Slow Falling (long)Nether Wart, Phantom Membrane, Redstone Dust136717
Turtle MasterNether Wart, Turtle Scute17.338919
Turtle Master (long)Nether Wart, Turtle Scute, Redstone Dust189919
Turtle Master IINether Wart, Turtle Scute, Glowstone Dust18.339919
WeaknessFermented Spider Eye52313
Weakness (long)Fermented Spider Eye, Redstone Dust5.672313
Harming from PoisonNether Wart, Spider Eye, Fermented Spider Eye8.334414
Harming IINether Wart, Spider Eye, Fermented Spider Eye, Glowstone Dust9.334515
Slowness from SwiftnessNether Wart, Sugar, Fermented Spider Eye7.673414
Slowness (long)Nether Wart, Sugar, Fermented Spider Eye, Redstone Dust8.334414
Slowness IINether Wart, Sugar, Fermented Spider Eye, Glowstone Dust8.674515
Invisibility from Night VisionNether Wart, Golden Carrot, Fermented Spider Eye115616
Invisibility (long)Nether Wart, Golden Carrot, Fermented Spider Eye, Redstone Dust11.675616

Technician

The "Technician" window. It sells minion upgrades, fuel, machine parts and tools. It buys back its own stock for 50% of the price (taking wear into account) and machine blueprint products for 50% of the raw material value. Energy weapons are a separate topic.

Upgrades and parts

ItemIn packPriceShift (10x)Buyback per piece
Auto Smelter14004.000200
Compactor16006.000300
Energy Cell32646401
Spark Pistol15005.000250
Volt Pistol11.50015.000750
Ion Carbine12.00020.0001.000
Photon SMG13.00030.0001.500
Laser Rifle15.00050.0002.500
Arc Blaster16.00060.0003.000
Scatter Rifle18.00080.0004.000
Pulse Revolver110.000100.0005.000
Rail Sniper125.000250.00012.500
Plasma Launcher130.000300.00015.000
Ammo Pouch12.00020.0001.000
Pouch Upgrade 2110.000100.0005.000
Pouch Upgrade 3150.000500.00025.000
Redstone Dust12201
Glass13301
Iron Ingot1151507
Chest1121206

Tools

Ordinary tool crafting is blocked and there are no tool blueprints, so the Technician is their permanent source. The buyback in the table applies to a new tool; a worn one is worth proportionally less (formula).

ItemIn packPriceShift (10x)Buyback per piece
Wooden Pickaxe15502
Wooden Axe15502
Wooden Shovel15502
Wooden Hoe15502
Stone Pickaxe1101005
Stone Axe1101005
Stone Shovel1101005
Stone Hoe1101005
Iron Pickaxe16060030
Iron Axe16060030
Iron Shovel12525012
Iron Hoe14040020

Minion fuel

The Technician sells all three fuels that minions accept. How fuel works: Minions -> Fuel.

FuelPriceDurationSpeed bonusPrice per hourBuyback per pieceRemains
Coal530 min+5%102–
Coal Block505 h+5%1025–
Lava Bucket101 h+25%105Bucket

Prices are proportional to duration: every fuel costs the same per hour. The bonus does not affect the price (To be decided). A lava bucket does not stack, so Shift requires 10 free slots.

Machine blueprint products

Raw material value is calculated at the lowest prices in NPC shops, and an ingredient nobody sells at the Merchant's buyback price list. Product quality is irrelevant. A product the Technician itself sells is worth at most what it costs in the stock. Minions and pets from this category are not bought back.

ProductIngredients (value per piece)Raw material valuePrice in stockTechnician pays
Compactor32 x Iron Ingot (15)
16 x Redstone Dust (2)
1 x Chest (12)
524600262
Auto Smelter64 x Cobblestone (0.5)
32 x Coal (5)
8 x Iron Ingot (15)
312400156
Incubation Core4 x Bio Gel (0.00 no price and no recipe)
2 x Diamond (75)
8 x Redstone Dust (2)
166–83
Incubator8 x Iron Ingot (15)
4 x Glass (3)
2 x Nutrient Paste (4 from recipe)
140–70
Example

An Auto Smelter bought from the Technician for 400 VED returns for 200 VED. The same item made from a blueprint has raw materials worth 312 VED, so the Technician pays 156 VED for it.

Farmer

The "Farmer" window has one entry and buys nothing back.

EntryContentsEffects (10 min)Price
Farmer's Magic PickaxeDiamond Pickaxe, Efficiency V, Unbreaking III, Fortune III, MendingHaste II, Speed II2,500

The purchase requires confirmation (confirmation). Without enough VED nothing is issued. The pickaxe has a custom name and enchantments, so no shop will buy it back.

To be decided

  • Merchant's armor: full set or chestplate. The contract prices a "diamond chestplate" at 700 VED, while the game gives a whole set for that price: helmet, chestplate, leggings and boots with Protection IV, Unbreaking III and Mending, plus effects. To be decided: the price of the full set or just the chestplate. Incidentally, Shift on this entry means 40 items, more than the inventory holds, so it always ends with "Make room in your inventory".
  • Empty buyback price list on the islands. On the islands server the Merchant (/shop) does not see the exceptions table and pays 1 VED for every material, including diamond and arrow. A bow for 60 VED gives 64 arrows worth 64 VED there, i.e. a profit on every purchase, endlessly. Blueprint products are valued differently there than in the lobby.
  • Lava cheaper than its bonus. All fuels cost the same per hour at the Technician (10 VED), but lava gives +25% speed, and coal and coal block +5%. There is no reason to buy coal. The contract said to calculate the price from duration and does not account for the bonus. To be decided: a higher lava price or the bonus included in the price.
  • Shared undo queue. One queue covers all shops, so a sale at the Alchemist or Technician can be undone in the Merchant's window, also through /shop on an island. Undoing always returns exactly the amount paid out, so it gives no profit. To be decided whether it stays this way or the queue should be separate for each shop.
  • Farmer's pickaxe vs the Merchant's pickaxe. The Farmer's Magic Pickaxe (2,500 VED) has the same enchantments and the same effects as the Merchant's Magic Pickaxe (400 VED). It differs only in name and description.
  • Blocks in Merchant buyback. Blocks are not in the price list, so they go at the default price: Diamond Block 1 (9 x Diamond = 450), Emerald Block 1 (9 x Emerald = 360), Gold Block 1 (9 x Gold Ingot = 180), Iron Block 1 (9 x Iron Ingot = 90), Coal Block 1 (9 x Coal = 27) VED. The minion Compactor turns loot into blocks by itself.
  • Potions without valuation. The Alchemist does not buy Wind Charging, Weaving, Oozing and Infestation potions because they have no valuation, nor does it sell their ingredients.
  • The name in the sale message is the English name of the material, not of the item, e.g. "crafter" instead of "Incubator", "magma cream" instead of "Auto Smelter".
  • Ingredients without a price. Zombie Heart and Bio Gel have neither a price nor a recipe, so they count as 0 in product valuation (Nutrient Paste, Incubator, Incubation Core).
  • Trade skills. Negotiation was meant to improve NPC prices, and Commerce and Appraisal turnover and valuation. Buying and selling in shops give no points and skills do not affect prices. No formulas.