make an item unable to be removed from inventory

Started by DeRokerij on Fri, 04/21/2023 - 16:04

Topic category: Help with modding (Java Edition)

Last seen on 11:00, 23. Apr 2023
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make an item unable to be removed from inventory
Fri, 04/21/2023 - 16:04

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