Multiple items in GUI slot stack input limit

Started by ItzYaBoiMyth on

Topic category: Help with MCreator software

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Multiple items in GUI slot stack input limit
Mon, 02/15/2021 - 02:09 (edited)

Is there any way to add multiple items to the stack input limit of a gui slot?
Im making a storage container that is meant to hold different kinds of dust (gunpowder, redstone, etc.) and im trying to make it so that ONLY those items can go in the container.

https://cdn.discordapp.com/attachments/694682184782577685/8106802251759…

EDIT: Better yet, is there a way to make it so a tag can be the stack input limit? For example, i have a item tag set as Dust, which includes Redstone, Gunpowder, Glowstone, and my custom dust.

Edited by ItzYaBoiMyth on Mon, 02/15/2021 - 02:09
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Still looking for a solution…
Mon, 02/22/2021 - 14:09

Still looking for a solution for this..

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey thanks, i dont know…
Tue, 02/23/2021 - 16:23

Hey thanks, i dont know french myself, but you should consider making an english version :)

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My english is horrible ;-)
Tue, 02/23/2021 - 20:08

My english is horrible ;-)

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh lol i was able to…
Tue, 02/23/2021 - 21:22

oh lol

i was able to somewhat translate what you were doing, but im pretty sure i did it wrong as the gui gets a long error every time

 

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Another useful way of doing…
Mon, 02/21/2022 - 15:02

Another useful way of doing this is adding the items you want to a tag and just replace the limited item input to this piece of code:
"(ItemTags.getAllTags().getTagOrEmpty(new ResourceLocation("forge:tagname")).contains(stack.getItem()))"