Innectis Community Forum

Innectis - Minecraft Server => Tutorials => Topic started by: Vector on February 07, 2013, 04:38:17 PM

Title: Chest Shops
Post by: Vector on February 07, 2013, 04:38:17 PM
If you want to set up a player-made shop, you can utilize chest shops! They're really quite simple to set up. Here's an example of a buy shop and a sell shop:

(http://i52.photobucket.com/albums/g38/dj_dances/2013-01-31_051503_zpsaa4b7e8e.png)

The one on the left is a sell shop and the one on the right is a buy shop.

To create listings you can use the /setshopitem command. Its syntax is below:

Code: [Select]
/setshopitem [item name] <buy/sell> <amount> <price>

Item name is optional. If omitted then the item in your main hand will be used. If empty, the off-hand will be used. For example, to create a listing where you are selling 5 dirt blocks for 20 vT, use /setshopitem dirt sell 5 20.

A more technical rundown of the sign's contents is explained below:

Line 1: Indicates what type of a shop it is. [sell] is for items the owner is selling, and [buy] is for items the owner is buying.
Line 2: The item being sold. You can put the ID of the item, or use an english sounding name. It's better to use an ID since that gets converted into the proper english sounding name. To figure out the ID, hold an item and type /itemid and press enter.
Line 3: This specifies how much of the item is being sold and what cost it is. You specify this by putting a number followed by @ and then another number, optionally adding vT to the end of it. The first number if the amount sold, and the second is how much the total costs. In the two examples, bread is listed at 3 pieces of bread for 5 vT.
Line 4: This is added automatically to show you how much of the item is in the shop.
Title: Re: Chest Shops
Post by: l_iamW on February 07, 2013, 04:47:33 PM
The one on the left is a sell shop and the one on the right is a sell shop.

I think you mean sell and buy and are Buy Chests new? I never remember them from the old chest shops.
Title: Re: Chest Shops
Post by: Eggnaug on February 07, 2013, 05:39:09 PM
Do not put two signs over a double chest. Only put one sign over it.
Title: Re: Chest Shops
Post by: Vector on February 16, 2013, 06:01:45 PM
Do not put two signs over a double chest. Only put one sign over it.
That's for the same item. You can, however, use two different signs on a double chest, so long as the items in the shop are separate.

@liam: Buy shops came much later in the first iteration of chest shops, so yes, they were in there.
Title: Re: Chest Shops
Post by: Vector on November 12, 2016, 10:45:24 PM
Updated with information from IDP 10.9.0.