Detect if item is placed in GUI slot?

Started by DanilkaD on

Topic category: Help with modding (Java Edition)

Last seen on 14:22, 1. Jan 2022
Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect if item is placed in GUI slot?

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

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 14:22, 1. Jan 2022
Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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?

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

Last seen on 16:12, 23. Mar 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right now the workaround…
Mon, 07/31/2023 - 14:24

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

Hmm .. I have a similar problem .. but I need to change the productivity of the block depending on the slot. Like acceleration modules.. And since it's +5 manufacturing speed.. in a tick it's a very bad idea