Detect if item is placed in GUI slot?

Started by DanilkaD on Fri, 08/21/2020 - 18:28

Topic category: Help with modding (Java Edition)

Last seen on 13:49, 26. Oct 2020
Joined Feb 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Detect if item is placed in GUI slot?
Fri, 08/21/2020 - 18:28

Hi! I'm currently working on a 1.16 port for 1.15.2, and I'm currently working on smithing. The problem is, that I can't make a procedure if an item is placed in a slot, but if I try doing "When slot's contents change", it doesn't work correctly. It makes a Netherite Sword only if I place the diamond sword in slot 0, then remove it from the slot. Is there a way to fix it? I'm using MCreator 2020.4

Last seen on 12:14, 26. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Right now the workaround…
Fri, 08/21/2020 - 18:32

Right now the workaround used is to check the input slot on tick and set output slot to output. I am working on a fix

Last seen on 13:49, 26. Oct 2020
Joined Feb 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks Klemen, but I'm…
Fri, 08/21/2020 - 19:12

Thanks Klemen, but I'm wondering - is it possible to bind GUI to a vanilla block?

Last seen on 12:14, 26. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
No, it would require rewrite…
Fri, 08/21/2020 - 20:22

No, it would require rewrite of said vanilla block, likely with coremod or mixin