Minecraft wiki entry for Item_components, associated text: Locks the item in the player's inventory. Has a parameter mode that specifies the type of lock. It must be one of lock_in_inventory or lock_in_slot.[1]