This tutorial will serve as a guide to making shops with the MassiveLock plugin. The example shown in this tutorial will be making a shop that sells Cookies.
- Start by creating the lock. Type /lock create [name]
- Lock the chest with the lock. You can do this by typing /lock punch and then punching the chest, or typing /lock tool and hitting the chest with the enchanted stick it gives you. If using /lock punch, remember to re-type the command again to deactivate lock mode.
- Once you have created a lock and applied it to a chest, edit the lock to be able to sell items. This is done by typing /lock edit mode shop.
- Now that your lock knows that it is supposed to sell items, you can tell it how much those items should sell for, how much it should buy them for, and in what amounts, add prices!! The easiest way to do this is to hold the item in your hand and type /lock edit shopprices add B# S# Q#. The B, S, and Q refer to the Buy, Sell, and Quantity. Let's say you wanted to sell 100 cookies for 5 regals. You would type /lock edit shopprices add b5 q100. If you wanted your lock to also be able to buy cookies, but at 1 regal per 100, you would type /lock edit shopprices add b5 s1 q100. You do not need to add both a sell price and a buy price, and can leave either blank if you wish.
- Now that you have a lock, have told it to buy and sell, as well as what it is selling and for how much, it is time to place the items into the chest! You do this by SHIFT+CLICKING the items into the chest.
Visual Guide
Step One:
Step Two:
Step Three:
Step Four:
Step Five:
Want to remove cookies from this shop? There are two ways to do this:
If you DO have the item, type
While holding the item
If you DO NOT have the item, type
Q: Can I add more than one item to my shop?
A: Yes! Just use the command in step 4 for each item you want to add! Be sure to limit the amount of items in one lock to 54, due to the limitation of the lock GUI. If you have more, simply create a new lock. You can also add 1 lock for each item if that is how you prefer your shop to look.
Q: What is this part of the /lock show that says ShopAccount? Can I change that?
A: The shop account just tells you who the money goes to/comes from when using a shop. Although it is editable, you can only set it yourself.
Q: Why do I see "Massivelock has overridden user access" when I click a chest?
A: This simply means that under normal circumstances, you wouldn't be allowed to open a chest/door there. Since Massivelock overrides all other plugins for access it allows you to use this door/chest since you are added to the lock or its public.
Q: I'm afraid I might accidentally set the prices to sell higher than buy and I will lose my money.
A: Well our lovely techstaff thought ahead and made that IMPOSSIBLE. You cannot set the sell price greater than the buy price. If you try you will get this message:
Q: There are blank spaces in my shop GUI. What are they? Why are they there?
A: There are two parts of any shop. The physical chest and the lock information. So those blank spaces are simply an item that is added to your lock information, yet is NOT in the chest. So that blank space is where that item WOULD be if it was in the chest. A simple way to manage these is to keep track of what is purchased and if you have no more of that item, remove that item from the lock information.