How to block crafting from custom craft table? - 2022.1 - 1.18.2

Started by NxelScar on

Topic category: Help with modding (Java Edition)

Last seen on 14:21, 23. Aug 2022
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to block crafting from custom craft table? - 2022.1 - 1.18.2

I have a custom crafting table that works fine until slot 02 reaches 64 blocks. If the blocks are not removed, it still allows me to craft, spending the resources and losing the result because the slot is full. What is the way to block crafting until the space in slot 02 is released?

My procedure:
im1

The problem:

https://youtu.be/3y6dBskV8dM

Last seen on 06:22, 13. Mar 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It depends what you want…
Sat, 09/03/2022 - 03:23

It depends what you want. Check to make sure there are either no items in your output, or check to see if your output number of items plus the number of items in the output slot < 64 while also making sure they are the same block. (&& is and || is or)

If ((block == emptyItemstack) || ((block==block in output slot) && (number of total items <64))

 

Last seen on 06:22, 13. Mar 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Simple version of it without…
Sat, 09/03/2022 - 03:27

Simple version of it without all your stuff just to handle that part.Image