Topic category: User side tutorials
Since I had some problems with these I wanted to share it (Thank you "Themobgolbler69" for teaching me this).
This tutorial will teach you how to make a "store" (So you can buy things with an item(Not random)).
For the tutorial lets create a diamond store. (You can modify this if you want)
First: Create your own GUI and call it: "Shop", Make a button and lets call it: "Buy diamonds".
Now, lets create the procedure for this button. We will make the player buy 1 diamond with 24 gold ingots. I will leave the procedure here: https://drive.google.com/file/d/1Dbv1nLWRMpeyuXs2GMwkobPgcGTFgrxf/view?…
Customize it any way you want (Remember: to make a custom coin or any other in the game just change where the gold is, and to make it give you something else change it where the diamond is.)
Now on the "Buy diamonds" button select this procedure. And that's it. Hope it works for you!
Extra:
Sell Button Tutorial:
This will make a button sell stuff in your inventory, lets continue with our example (Buy diamonds with gold).
In the procedure just change places, if you want to sell diamonds to give you gold, just change the gold position with the diamond one.
IMPORTANT NOTE: On the second last block where it says remove, the number 24 means the number of materials specified it will take from player's inventory, change that any way you want.
Also in the block: Get Local: Amount_Of_Item_Needed >, you will see a number 23, this is the number of items needed plus the one on the top. Change that any way you want.
For the sell change the 23 to 0. And the 24 to 1
Following the steps for the Buy Procedure this should be your final product:
And for the sell if you followed steps this should be your procedure:
More clear I couldn't be :)!
Nice tutorial!
The procedure download is broken.
There? For me is working now.
You probably need to enable permissions for others to download.
Really hope there
The pocedure could work if you'd want to make an xp store?
Something like sell a coin you get some xp?
Yessir, I will leave the Procedure Here, modify it how ever you want
https://drive.google.com/file/d/15tB92IDggq_fl8wEOwTN8wU7vFWYYaUc/view?…
Thank you very much!
But if I want to use the mod on a multiplayer server? It works?
Erm, it should.
bro you're such a life saver thanks so much you have no idea how long ive been trying to do this!!
i tried this but it says missing dependencies because it dosent have itemstack
I have made a much better store with locks and inventories and all the goodies perhaps I can share it later in this post.