Is it possible to condition a craft in the vanilla crafting methods? (solved: it's not)

Started by nl_nl_n on

Topic category: Help with modding (Java Edition)

Last seen on 04:42, 9. Sep 2024
Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to condition a craft in the vanilla crafting methods? (solved: it's not)
Sat, 08/17/2024 - 18:28 (edited)

I want to make a (mod)recipe that gives different (mod)items depending on a certain NBT of the player.

All the tutorials I saw happen in a custom GUI of a custom block, but I want it to work with the standard crafting table and the player's "mini 2x2 crafting table".

I was thinking of doing an iteration to detect ingredients in crafting table slots. Detect the ingredient with the lowest amount and place that same amount of [result item] in the result slot. But I can't find how to get or set the crafting table slots.

Does anyone know if it's at least possible?

Edited by nl_nl_n on Sat, 08/17/2024 - 18:28