Credit to @Cryptoraider_Gemkit for making a guide like this first! First place down a desk prop, (this will be your crafting table) now place down a button. It shouldn’t be visible in game, and the interactive message should be “craft”. Now, choose what ingredients you will need to craft something. For example, in my game, i crafted a speed potion that required one raspberry and one blueberry.
Now place down inventory item managers that track your required items, then place down the same amount of properties as the inventory item managers. Name the properties after your ingredients, and make the property type number, and property scope player.
Next go into your inventory item managers and go to the property tab. Make them track the property that is named after their managed item. For example, one of my inventory item managers would be tracking the property “Blueberry.”
If you still don’t understand, this should help:
Next place down a popup with a call to action button named after the item/potion you want to craft. Now wire the button to the popup, so that button is pressed → open the popup.
Next place down a trigger, and wire the popup to it so that the primary call to action is clicked, → trigger.
Next, follow this blockcode:
Change the property and the number in the block code depending on how many of that item you need to craft your item/potion. Now place down another trigger that is triggered when receiving on “Trigger”, and do this block code in it:
Again, change this to your needs. Next place down another popup with the header text “insufficient Materials”, and the call to action button, “Materials Needed.” Make it open when receiving on “insufficient”, and make the call to action channel, “Materials.” Now place down yet another popup, and make it open when receiving on “Materials”, and copy this block code:
Now, in the same popup, do a another block like this:
AGAIN! CHANGE IT DEPENDING ON WHAT ITEM AND ITEM AMOUNT YOU NEED TO CRAFT
Now place down two item granters. Make one grant -1 blueberry when receiving on the channel speed, (or whatever, just make sure your channel is coming from the block code above this one)
(and whatever item you’re using, and change the number depending on how much you need for the item/potion)
and make the other one grant -1 raspberry (read above again)
Now if your craft recipe grants you an item, place down a item granter and make it grant that item when receiving on the channel, but since mines was a speed potion, i made players double their speed when they complete the craft.
Last but not least, place down a popup that says “Success”, and have it open when receiving on the channel “Success.”
Sorry if this guide was a little unclear, i typed fast, so i might have to go back and edit some stuff. Finished product:
This is a basic craft system that should show what materials you are missing for the item/potion.
Happy Gimkitting!
'.