LionsShop

From MinecraftOnline

Jump to: navigation, search

Contents

Summary

lionsShop is a plugin on MinecraftOnline that gives players the ability to make their own in-game shops with 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.

Example

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.

Commands

/lsshopedit

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. As lionsShop is currently in testing and only enabled for mods its disabled. But when it goes live for normal players It appears to be available for ordinary players to use now, with the tax of 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 diamond.

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 shopsign. 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.

Slot machines

A working slot machine in open testing. Travel to CatVille and go into the basement of the small mall to test it. The machine pays back around 70% in 10.000 played games, When this goes active for normal players to set up there will be a huge creation tax somewhere around 6 stacks of diamonds or more, this is still to be discussed with all admins. There are more gambling games planned, stay tuned!


Personal tools