mojira.dev
MC-306264

Control + Pick Block does not work if pick block is bound to a key instead of a mouse button

The shortcut to copy a block’s nbt using control + pick block only works if pick block is bound to a mouse button (left button, middle button, or right button). If pick block is bound to a keyboard key, then using control + pick block ignores the control input and does not copy nbt.

Steps to reproduce:

  1. Change your key bind for pick block to a letter key (such as 'R')

  2. Place down a tile entity and give it special NBT (e.g. command in a command block, items in a chest, etc)

  3. Press control then the key while looking at the tile entity (ctrl + R)

Expected Result:

The item will be copied with its nbt.

Actual Result:

Pick block is executed normally, ignoring the control input and not copying nbt.

Update: I noticed this issue is only for MacOS and only occurs when trying to use left control and a key, using right control and a key or using a mouse button and either control button works on 1.21.11, whereas in 1.21.10 only left control and a key worked (right control never worked, left control and mouse didn't work either, and middle click only worked with command instead of control)

I suspect this has something to do with the change in 1.21.11 that changed several command key shortcuts to use control, which may have also changed the primary control button from left control to right control.

Attachments

Comments 6

Could not reproduce in 1.21.11

Could not reproduce in 26.1-snapshot-6



Could this be a keyboard issue?
-Does using Control + Q[drop item] drop an entire stack for you?
--If no then this is likely a keyboard issue.

Hi!
Thank you for your report! 

Could you please provide more details or/and media files. As we have no repro of this issue.

  • Can you record a video of the issue and upload it?

  • Are you using any modifications or texture packs?

  • Could you please include details about your device and system specifications?

  • Is “R” key on keyboard registering input correctly in game while typing?

  • Did this issue occur on a LAN or on a multiplayer server?

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

can reproduce in 26.1-snapshot-6

However, you must press Ctrl + R simultaneously (I set it to the R key). Holding down the R key alone will not preserve the NBT properties.

(Please forgive the translation issue)

但是必须同时按住crtl + r (我设置的是R键) 单独按住R键无法保留NBT属性
(请原谅翻译问题)

Sorry, first bug report and all that.

I think I’ve figured out the issue being an issue of which control key was being used. I play on a Macbook but used to play on a windows laptop, so I was used to having control at the far bottom left and had rebound that key to left control, which no longer worked for control + pick block in 1.21.11. However, changing the key bind to right control fixed the issue for me.

I tested this on a windows laptop as well and noticed a similar but opposite issue in which control + pick block worked only with the left control but not the right control button in 1.21.11, whereas in 1.21.10 it worked with both control buttons on windows, and it worked with left control but not right control on mac.

I only believed this as a bug as my old setup using left control on mac broke in the development versions of 1.21.11 but was never reported.

And to clarify: I’m playing on vanilla singleplayer instances of 1.21.11 and 1.21.10 (whenever mentioned) and all the keys involved have worked completely fine elsewhere.

Can I clarify - has this been resolved or is it still an issue?

charon

(Unassigned)

Unconfirmed

(Unassigned)

1.21.11

Retrieved