Dynamic Custom Crafting

Started by Sybastian on

Topic category: Help with MCreator software

Last seen on 11:41, 31. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dynamic Custom Crafting

It it possible to create a custom crafting table that functions exactly the same as a standard table? Everywhere i look i see people coding in buttons to craft rather than what vanilla minecraft normally does for crafting. Iv tried to recreate the effect for quite a while, but my items always end up infinitely duping or it insta-crafts the moment you put the materials in. Anyone know what procedure setup i should use? Or should i just give up and take the easy route with the button crafting?

Last seen on 16:18, 24. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Set the blocks tick speed to…
Thu, 06/03/2021 - 15:40

Set the blocks tick speed to 1 (In advanced properties tab of block.) Make a procedure and set it to run on the update tick of your block. In the procedure make an If block and use it to check each slot of your crafting table to make sure it has the inputs for your recipe. Then make it so if the if is true it sets one of your output items in your output slot (MAKE SURE YOU ARE SETTING THE CONTENTS OF THE SLOT AND NOT ADDING.) Now go to your gui and select your output slot, then click edit. Make a procedure that runs when items are removed from your output slot. Make the procedure reduce each input slot by by one. This should give you a working recipe, if you want more just add more if statements to the procedure, with the proper inputs and outputs. TLDR: make your procedure place an output in the output slot if the inputs are right, and create a procedure that removes the input items when the output is taken.