Steps to reproduce:
Switch into Survival mode if not in it already
Give yourself a locked item:
/give @s stick 1 0 {"item_lock": {"mode": "lock_in_inventory"}} /give @s stick 1 0 {"item_lock": {"mode": "lock_in_slot"}}
Use an empty decorated pot while holding the locked item
Observed result:
The locked item is inserted into the decorated pot.
Expected result:
The locked item stays in your inventory.
Linked issues
is duplicated by 3
Comments 3
Can confirm in 1.21.20.24 Android.
Steps to reproduce:
Create a new world with cheats enabled.
Switch to survival mode. (In creative items are "duped" instead of being removed)
Run the following command:
/give @s potato 3 0 {"item_lock": {"mode": "lock_in_inventory"}}
Place a composter and a decorated pot and try to place a potato in each of them. ❌ Notice that potato is being used even though it is locked in inventory.
Now summon a pig and feed it with a potato. ❌ Notice that potato is being used, even though it is locked in inventory.
Now give yourself a dye and summon a sheep with the following commands.
/give @s green_dye 1 0 {"item_lock": {"mode": "lock_in_inventory"}} /summon sheep ~ ~ ~
Try to dye a sheep with a green dye. ❌ Notice that a dye is used even though it locked in inventory.
Expected result:
You should not be able to interact with entities and blocks with items, that are locked in inventory.
Observed result:
You're able to interact with entities with items, that are locked in inventory.
Note:
This doesn't happen with armour stands.
Probably occurs with composters and compostable items too, and perhaps other "use" actions such as dying a sheep.