Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-152556

Creative mode players can pickblock to replace an item with "minecraft:item_lock" component

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.18.20.27 Beta, 1.18.12 Hotfix
    • None
    • None
    • Confirmed
    • Windows
    • 724312

    Description

      When an item with the "minecraft:item_lock" component is given to a player in creative mode, they can replace it using the pickblock function (middle mouse button by default).
      This doesn't feel consistent with how they are not able to move the item in any other way. It can't be dropped, moved or replaced by clicking on it otherwise.

      Reproduction steps:

      1. Switch to creative mode /gamemode c
      2. Use this command to get an item locked in the first slot
        /replaceitem entity @s slot.hotbar 0 wool 1 0 {"minecraft:item_lock": {"mode":"lock_in_slot"}}
      3. Use this command to fill your hotbar with other items, so pickblock is forced to try and replace the current slot /give @s diamond_shovel 8
      4. Scroll to the first slot and use pickblock on the ground
        -> The locked wool block item gets replaced by a new block

      Attachments

        Activity

          People

            Maxaxik M
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              CHK: