How to prevent a select few items from going into my backpack

Started by Vakar on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to prevent a select few items from going into my backpack

I have made a GUI using MCreator where I added a few input slots, its basically a backpack mod
My issue is: I have tiers of backpacks where I don't want to end up having a tier3 backpack inside a tier1 backpack or just any other type of backpack in another backpack
I'm trying to replicate how you cant put shulker boxes inside shulker boxes, but with different items.

 

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
FOR DISABLE ITEMSTACK…
Mon, 09/15/2025 - 16:19

FOR DISABLE ITEMSTACK PLACEMENT

if: [provided itemstack] = [tier 1] OR [provided itemstack] = [tier 2] (and for the other tiers repeat)

do: return logic: true

return logic: false

 

this works for my purse items