Detect if item is placed in GUI slot?

Started by DanilkaD on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Feb 2017
Points:
837

User statistics:

  • Modifications: 4
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
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

Active 3 years ago
Joined Feb 2017
Points:
837

User statistics:

  • Modifications: 4
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
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

Active 1 year ago
Joined Jul 2023
Points:
266

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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