make an item unable to be removed from inventory

Started by DeRokerij on

Topic category: Help with modding (Java Edition)

Last seen on 11:58, 17. Nov 2023
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make an item unable to be removed from inventory

i want to make it so a specific item cannot be removed from the inventory unless in creative mode

i was wondering if anyone knew how to make it so that once a player has a specific item in their inventory that item can no longer be moved to a chest or dropped on the floor
 but other items still can be removed/moved

Last seen on 17:02, 15. Apr 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wanted to know this too, i…
Sun, 04/14/2024 - 14:04

I wanted to know this too, i searched so much but i couldn't find anything

Last seen on 06:02, 18. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
force it back into the…
Mon, 04/15/2024 - 06:05

force it back into the inventory upon drop