Creating Player Shops

Nov 10, 2016
Creating Player Shops
  • EMC has a custom shop sign feature for use on Residences. There are three different versions of a shop sign which are reflected in how they're made and used - however, all of them use the same format.

    To learn how to buy and sell from various shop signs, visit the Wiki page about using player shop signs.


    How do shop signs work(top)


    In order to set up a shop you must first start by placing a chest somewhere. The chest will contain the items which you'd like to sell (or it will store any items which you'll be going to buy). Then you need to place a sign near the chest, the so called shop sign. A shop sign can be placed above, directly on top, attached to or besides (next to) the chest.

    There are three different types of shop signs: the #Sign, the CHOOSE sign and the old shop signs. The old method is basically kept in place to keep things easy on the players, but we recommend that you use the current shop signs; the #Sign.

    Setting up a buying shop sign(top)


    You can now set up signs without specifying an item. To create a "blank" shop sign, you have to type:
    • Line 1: Empty (Blank; it will auto-fill with your username later)
    • Line 2: The amount of items you want to sell (For example: 3)
    • Line 3: The cost of the item you are selling (For example: 100)
    • Line 4: #
    Best Minecraft Servers

    Once you click "Done", you should get a confirmation message in Chat that says "Shop partially created! You must now set the item to sell by left clicking the sign with the item in your MAIN hand." and your sign should look like this:

    Best Minecraft Servers

    To finish setting up the shop, grab the item you want to sell in your main hand and left click the sign. It should automatically update to show which item the shop is selling and give you a message in Chat that says "Shop successfully created for <item>".

    Setting up a selling shop sign(top)


    You can also set up a shop to buy items rather than sell them. The process is very similar to the one shown above, the only difference is in the third sign line:
    • Line 1: Empty (Blank; it will auto-fill with your username later)
    • Line 2: The amount of items you want to buy (For example: 5)
    • Line 3: How much you want to pay for the item, prefixed by a colon (For example: :40)
    • Line 4: #
    You can also buy and sell items in the same sign, by specifying both prices separated by a colon:
    • Line 1: Empty (Blank; it will auto-fill with your username later)
    • Line 2: The amount of items you want to sell or buy (For example: 2)
    • Line 3: Both prices, separated by a colon (For example: 100:40)
    • Line 4: #
    Note: You can put the word "FREE" as the buy or sell price to give away (or accept) items for free.

    Editing a previously created sign(top)


    The new shop system introduces a new command - /createshopmode - which allows you to edit the item you are selling without having to destroy the sign.

    Once you type the command you should get a message in Chat that says:

    Best Minecraft Servers

    Left clicking any shop sign you created with an item will change that sign to sell the item in your main hand.

    Setting up a shop sign with custom text(top)


    You can also make a shop sign with custom text on the fourth line:
    • Line 1: Empty (Blank; it will auto-fill with your username later)
    • Line 2: The amount of items you want to sell or buy
    • Line 3: The price of the item
    • Line 4: "#"[The custom text here]
    Best Minecraft Servers

    Follow the same steps from the regular shop signs - left click the sign with the item you want to sell. This time, instead of displaying the item name, it will display the custom text you wrote on the last line.

    Best Minecraft Servers

    When players left click your shop sign, they will get a confirmation message before the purchase is complete:
    Best Minecraft Servers

    After this confirmation message is shown you need to click the sign again to confirm your action.

    Old Method(top)


    The old method of creating shops is similar the process shown above. However, it is less advanced in that instead of using # on the fourth line you simply write the item's name or item ID. To find this out type /iteminfo while holding the item you want to sell.

    When written, it may look like this:
    Best Minecraft Servers

    Shops created under the old method can still be altered (in what they sell or buy) with the /createshopmode command.

    CHOOSE shop signs(top)


    With the 2016 Independence Day Update (found here) a new shop sign was introduced to replace the now obsolete SLOT signs.

    CHOOSE signs should be used when you're selling items which have slightly different properties and cannot be sold as the same item, such as promos, horse eggs with different stats and enchantments. Their other main advantage is that players get to see the items in the chest through a dialogue box/user interface and can click to chose what to buy.

    You cannot sell items to CHOOSE signs with the :Sell mechanisn.

    Setting up a CHOOSE sign(top)

    A default CHOOSE sign will allow players to buy any item in any slot of the chest. When linked to a chest (rather than a range of slots, as explained below) then the dialog/user interface box will show all available rows. You can make a default CHOOSE sign like this:
    • Line 1: Empty (Blank; it will auto-fill with your username later)
    • Line 2: The amount of items you want to sell (e.g. 3)
    • Line 3: The cost of the item you are selling (e.g. 100)
    • Line 4: choose
    When written it could look like this:
    Best Minecraft Servers
    A choose sign where players can buy 3 items at once.

    Note: On the 'amount line' you can only set the sign to sell multiple copies of the same item (i.e. the same item ID, which can be found with /iteminfo).

    To ensure it works, you can test the chest dialog yourself by left clicking on your CHOOSE sign. Note that you can only use the dialogue box and no transaction will occur if you are the shop's owner.

    After players click on an item to buy then a confirmation dialog is shown. Once players click the sign again the actual purchase is made.

    Best Minecraft Servers
    The CHOOSE sign dialog is the same as that of a customized shop sign.

    Setting a range of slots for the shop to use(top)

    You can limit the range of slots that a CHOOSE sign draws its stock from. The slots in a single chest are numbered as follows:

    Best Minecraft Servers

    The first 3 lines of the CHOOSE sign remain the same, but on the fourth line you would specify the range or specific slot you want to the shop's stock to draw from.

    So, for example, if you want to set up a CHOOSE sign which will only sell the first 4 items in a chest (so slots 1 to 4) then you could do something like this:
    • Line 4: choose 1-4
    Using a limited range like this will affect the dialogue box by showing a smaller amount of rows and not displaying any items which are placed outside its range.

    Note that a CHOOSE sign will first pick an item other than the clicked slot before using the one in the slot itself, even if that other item falls outside the specified range. This behavior is comparable to the old SLOT signs.

    Also note that the items being sold by CHOOSE signs can be changed to the held item when clicked with/createshopmode toggled on, just like all the other shop signs.

    Setting a single slot for the shop to use(top)

    You can do this by specifying one slot instead of the default entire chest or range shown above, like this:
    • Line 4: choose 4
    A CHOOSE sign reacts in the same way as the obsolete SLOT sign, with the major difference being the preview which players get before buying. So if you only want to mimic the old behaviour then all you have to do is limit the CHOOSE sign to one slot only.

    Removing shop signs(top)


    Shop signs cannot be removed by simply breaking them. This is because the sign will think you are attempting to buy from it and/or signs can also be changed by clicking on them while using the /createshopmode command. Therefore the best ways to remove a shop sign include:
    • Hold shift (sneak function) while removing the sign.
    • Remove the block to which the sign is attached.

    Use Rupees to buy from other players. Save Tokens to redeem rare items in the future.

Looking for a more general Minecraft guide? Visit Minecraftopia!