Plugin -=- Guide To Making Shops With Massivelock -=-

massivecraft-logotype-plugin-massivelock-2000.jpg

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.
  1. Start by creating the lock. Type /lock create [name]
  2. 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.
  3. 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.
  4. 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.
  5. 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.
Want to learn more about MassiveLock? Follow this tutorial: https://www.massivecraft.com/massivelock

Visual Guide

Step One:
mIqPUE9.png

xtviWOD.png


Step Two:
vLkKF9k.png

eCKzrjD.png


Step Three:
g9RXx48.png

cpRBrtT.png


Step Four:
49662aa88993d0d4ac037d8659965737.png

La8lZbg.png


Step Five:
S5aq5zI.png


Want to remove cookies from this shop? There are two ways to do this:

If you DO have the item, type
f495e88474872d74de0c6823c112f242.png

While holding the item

mX6Uxti.png


If you DO NOT have the item, type
2031e302622cef1831a9203500baf38f.png


z2ulMPO.png


iV3X0zD.png

liBlNb4.png


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:

38382c510a1ef3d8fee96113cf1de371.png


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.
 
VERY helpful guide, but it's missing how to stock the items. I didn't know you had to shift click with an empty hand to open the chests, it took me an hour to find someone to tell me. I suggest adding that, but otherwise, great guide.
 
VERY helpful guide, but it's missing how to stock the items. I didn't know you had to shift click with an empty hand to open the chests, it took me an hour to find someone to tell me. I suggest adding that, but otherwise, great guide.
This was written before that feature was added.
 
This was written before that feature was added.
I have updated it since Chestshops were removed. I added a piece about shiftclicking but i will make it more clear when get home


Q: I see items in my shop that aren't in my chest. Why is this?
A: When you click the chest, it shows all the items you have added to your lock as illustrated in Step 4, regardless of if the item is actually in the chest anymore. If you SHIFT+CLICK the chest you can see the actual inventory of the chest. Rememeber you cant be holding any items in either hand to shift+click the chest
 
i put it /lock edit shopprices add B50 S0 Q10 and it said "Invalid price 0.00 must be positive."
 
i put it /lock edit shopprices add B50 S0 Q10 and it said "Invalid price 0.00 must be positive."
Just to clarify WHY this doesnt work.

You are intending to tell the lock that you do not want this item to be sold to you, when in fact that zero is saying "I want to have them sell to me for zero regals" which cant happen in the program.
 
REMEMBER! If you know of any super helpful tips or other helpful things I should put on this tutorial, please feel free to let me know either in PM on the forums here or in this thread!! Also if you have any questions feel free to ask them here as some already have or also I'm more than happy to answer any MassiveLock questions, shop or otherwise, in PM.