Need help making an item unable to be moved from the inventory

Started by Hercules1080 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help making an item unable to be moved from the inventory

I'm trying to make a mod that locks out certain slots of your inventory, and I'm using "locked slot" items to stop people from using those slots. I need a way to keep people from being able to pick up the locked slot items from the inventory slots that they're in.

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
procedure that activates…
Thu, 06/26/2025 - 20:05

procedure that activates when the item is in the inventory that replaces the slot with itself untill removed by another procedure maybe? for keeping from being taken, im not 100% sure.