Chestshop

From DiplomacyCraft Wiki
Revision as of 09:57, 9 April 2026 by Thatsean (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ChestShop allows players to create physical shops using chests anywhere in their town. Any player can buy and sell items directly from a chest by right-clicking it, with all transactions settled in Gold (G).

Creating a Shop

[edit]

To create a shop, place a chest in your town and run the setup command while looking at it:

/shop create [price] [buy/sell/both] [item]

For example, to sell 64 cobblestone for 5G each:

/shop create 5 sell cobblestone

The chest will be converted into a shop. A sign is automatically attached showing the item, price, and whether the shop buys, sells, or both.

Note: Shops can only be created on plots you own within a town. You cannot create shops in the wilderness.

Buy, Sell, and Both

[edit]
Mode What it means
sell You sell items to customers visiting your shop
buy You buy items from customers who visit your shop
both Customers can do either — buy from or sell to your shop

Using a Shop

[edit]

Right-click any shop chest to open a menu showing the item for sale, the price, and available stock. Click to buy or sell as prompted. The Gold is transferred instantly between your balance and the shop owner's balance.

Managing Your Shops

[edit]

Viewing Your Shops

[edit]

/shop list — Lists all shops you own, including their location and current stock.

Removing a Shop

[edit]

/shop remove — Look at your shop chest and run this command to remove the shop. The chest and its contents are returned to normal.

Setting a Price

[edit]

/shop setprice [price] — Look at your shop chest to update its price.

Stocking a Shop

[edit]

Simply add items to the chest inventory to restock a sell shop. For a buy shop, ensure your chest has enough Gold deposited to pay customers.

Staff Shops

[edit]

Admins can create unlimited admin shops that never run out of stock. These function as infinite sources or sinks for items at a fixed price.

Searching for Shops

[edit]

/shop search [item] — Searches all shops on the server for a specific item, listing price and location.

/shop nearby — Lists shops within a short radius of your current position.

Commands Reference

[edit]
Command Description
/shop create [price] [buy/sell/both] [item] Create a shop on the chest you are looking at
/shop remove Remove the shop you are looking at
/shop list List all of your shops
/shop setprice [price] Update the price of the shop you are looking at
/shop search [item] Search all shops on the server for an item
/shop nearby List shops near your current location
/shop info View details about the shop you are looking at
/shop sell Set the shop you are looking at to sell mode
/shop buy Set the shop you are looking at to buy mode

See Also

[edit]