mojira.dev
MCPE-184636

Locked items can be stored inside decorated pots

Steps to reproduce:

  1. Switch into Survival mode if not in it already

  2. 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"}}
  3. 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

Comments 3

Probably occurs with composters and compostable items too, and perhaps other "use" actions such as dying a sheep.

Can confirm in 1.21.20.24 Android.

Steps to reproduce:

  1. Create a new world with cheats enabled.

  2. Switch to survival mode. (In creative items are "duped" instead of being removed)

  3. Run the following command:

    /give @s potato 3 0 {"item_lock": {"mode": "lock_in_inventory"}}
  1. 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.

  2. Now summon a pig and feed it with a potato. ❌ Notice that potato is being used, even though it is locked in inventory.

  3. 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 ~ ~ ~
  1. 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.

Preventing items from being used is not the purpose of item lock, so please do not expand the scope of this particular ticket beyond pots

SchwertKlee4517

(Unassigned)

1192011

Confirmed

Multiple

1.21.2 Hotfix, 1.21.21 Hotfix, 1.21.41 Hotfix, 1.21.51 Hotfix

Retrieved