From MinecraftOnline
Jump to navigation Jump to search


LionsShop is a plugin on MinecraftOnline that gives players the ability to make their own in-game shops using Signs, selling in-game items.

Shops use a finite state machine (FSM) based on Signs that does not need to save data in external files, allowing for optimal performance.


Upper part of a full Sign shop with the shop Sign on the bottom of the screenshot and the optional info Sign at the top.
Lower part with a content Sign telling the vendor what's left and the Chest itself.

How To - Your First Shop

  • Create a building to house your shop that makes the vendor chest unreachable by others.
  • Place the main shop Sign.
    • The first line should just read [shop]
    • The second line tells what others can buy from you and has the format "ItemID Amount Damagevalue". The Damagevalue is optional, it is useful if you want to sell a certain colored Wool or a certain Slab version (see Minecraft Wiki on block data values).
    • The third line tells what others need to sell to you to get your wares. It has the same format as the second line.
    • The fourth line is automatically filled with your name. This is to make sure that only you can remove or edit the shop.
  • Place a Chest up to 5 blocks under the main shop Sign (see the example pictures for a demonstration).
  • The shop is now working - you can check that by right-clicking on the main shop Sign with a Book in your hand.
    • Now you can place the optional Signs.
    • First, the [shopcontent] Sign that tells you the contents of the Chest and is updated automatically when someone successfully uses the main shop Sign or just checks on it with a Book.
      • The Sign can be up to two blocks over the Chest(!).
      • Just write [shopcontent] on the first line, the rest will be filled in automatically.
    • Second, the [shopinfo] Sign. This tells people what they can buy here in normal text and is taken from the servers items.txt file.
      • The Sign has to be right on top of the main shop Sign.
      • Just write [shopinfo] on the first line, the rest will be filled in automatically.
  • Fill the Chest with stuff for people to buy and secure it.
  • You are done, be happy with your first little shop.



With this command you can change what others can buy and need to sell to you without ripping the main shop Sign from the wall.

Just point at your main shop Sign and type "/lsshopedit buy ItemID Amount DamageValue", where the damagevalue is optional as always.

Exchange the buy with sell to change the sell line. Rightclick with a Book to check if all is right, the other Signs will update accordingly.

Creation Tax

To control shop creation on Freedonia a bit this plugin includes a tax option. The default tax is 16 Diamonds for one shop. A 'shop' is defined as one Sign or Button the player interacts with, not the building. Thus a player selling all the Wool colours and Dyes will cost several hundred Diamonds.

A tax will not be charged again to modify an existing shop using /lsshopedit.

Button usage

If you place a Button on the other side of a block that has a shop Sign attached you can use it with the Button.

Redstone power shop

You can power machinery with a shop Sign. Place -1 into the buy line and place a Button right under the shop Sign. This should be used in conjunction with the Button usage, or people could use your machinery without paying. ;) There is a little annoyance with how Minecraft handles Buttons that will cause the power giving Button to stay on longer than normal, the shop checks if the Button is still pressed and will give a message if that is true, though.

See Also