Inserting only specific items into a slot

Started by VegaOrionis on

Topic category: Help with MCreator software

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Inserting only specific items into a slot

Is it possible to set slots in the created block to only put specific items into it?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can probably use this,
Fri, 09/26/2025 - 11:45

you can probably use this,

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if that's not available in…
Fri, 09/26/2025 - 11:55

if that's not available in your version have you tried this,

or does that not do what I think it does

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in the older version there…
Fri, 09/26/2025 - 14:10

in the older version there is only this:  https://imgur.com/a/U5wZB3p
But even in newer versions, where it's possible to set a procedure, I still don't know how to write code to limit it to selected items and their quantity, for example, 1. I was thinking of a workaround: detecting the item being placed and how many, and if it's not the right one it disappears, but also returns the item it took to the user. But I don't know how...

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in modern versions you can…
Fri, 09/26/2025 - 14:14

in modern versions you can use the disable condition and 

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but if you don't mind…
Fri, 09/26/2025 - 14:14

but if you don't mind locking your gui element you should be able to achieve the same result, a procedure controlling what you can put in the slot

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"limit stack input to" is…
Fri, 09/26/2025 - 14:54

"limit stack input to" is only for limiting to one item. And I would like to use multiple items. Apart from that, I haven't tried the other method you sent yet and I haven't thought about how to write it yet.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay are you okay with…
Fri, 09/26/2025 - 15:39

Okay are you okay with locking your gui element?