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

Started by Vakar on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Apr 2022
Points:
506

User statistics:

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

 

Active 1 week ago
Joined Jun 2023
Points:
417

User statistics:

  • Modifications: 1
  • Forum topics: 23
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 86
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