Multiple items in GUI slot stack input limit

Started by ItzYaBoiMyth on

Topic category: Help with MCreator software

Last seen on 01:35, 15. Mar 2022
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
Last seen on 01:35, 15. Mar 2022
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..

Last seen on 01:35, 15. Mar 2022
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 :)

Last seen on 18:38, 28. Mar 2024
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 ;-)

Last seen on 01:35, 15. Mar 2022
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

 

Last seen on 09:46, 28. Oct 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks for tutorial :)
Fri, 10/22/2021 - 17:57

thanks for tutorial :)

Last seen on 20:01, 13. Aug 2023
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()))"