Detecting vanilla crafting table slot contents BEFORE they are consumed.

Started by Ghoulander on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detecting vanilla crafting table slot contents BEFORE they are consumed.

I am trying to detect the slot contents of the vanilla crafting table before the items are consumed.

For example: A furnace can be made using Cobbled Deepslate OR Cobblestone OR a combination of both.

I'm trying to determine what blocks where used each time a furnace is made.

Using the trigger 'Item is Crafted' triggers AFTER the items are consumed so it always returns AIR.

 

So my question is: How do I check those slots just BEFORE they are consumed?

 

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i have a similar problem…
Mon, 04/01/2024 - 00:00

i have a similar problem. Only i am trying to create a mortar & pestle, and need a way to be sure it is used as ingredient inside a crafting table. or at least a way to know what slots ids to check if it is the player's inventory