Picking blocks in Creative replaces enchanted tools in hand
In Creative, when you have a full hotbar, block-picking doesn't work with a tool (axe, pickaxe, shovel, hoe, flint and steel, fishing rod, shears), weapon (sword, bow), or piece of armor in your hand. This issue is covered by MC-327, and is resolved as working as intended; the reason given is to prevent players from accidentally replacing a customized tool with a block.
However, enchanting such an item actually removes this immunity.
(Furthermore, there's nothing similar in place to prevent the destruction of firework stars, maps, enchanted books, written books, or non-tool items with custom NBT data, much of which is harder to reproduce if lost, especially without commands.)
Linked Issues
Created Issue:
Picking blocks in Creative with tools in hand
In Creative, when you have a full hotbar, block-picking doesn't work with a tool (axe, pickaxe, shovel, hoe, flint and steel, fishing rod, shears), weapon (sword, bow), or piece of armor in your hand. This issue is covered by
MC-327, and is resolved as working as intended; the reason given is to prevent players from accidentally replacing a customized tool with a block.
However, enchanting such an item actually removes this immunity.
(Furthermore, there's nothing similar in place to prevent the destruction of firework stars, maps, enchanted books, written books, or non-tool items with custom NBT data, much of which is harder to reproduce if lost, especially without commands.)
relates to
Still a dupe of
MC-327
Picking blocks in Creative with enchanted tools in hand
The "pick block" function can switch to a hotbar slot with an item in it, when:
- the hotbar is full and
- all previous slots (from the selected slot on) contain enchanted items.
Example to reproduce:
- Arrange items in the hotbar as follows: enchanted pickaxe, ench. shovel, ench. axe, ench. bow, ench. sword, in Creative mode enchanted stick, cooked chicken, water bucket, torches.
- Have netherrack in the inventory and a block of it nearby.
- Select slot 1.
- Use pick block on the netherrack.
Expected result: Pickaxe and netherrack get switched out (netherrack to slot 1, pickaxe to wherever the netherrack was in the inventory before).
Actual result: Slot 7 (chicken) gets selected and switched out with the netherrack (netherrack to slot 7, chicken to netherrack spot).
This was very likely introduced when MC-51984 got fixed.
Possible fixes, should be discussed: Change "switching immunity" from enchanted items to tools, maybe items with a durability bar if that's easier to handle in future versions. Or remove immunity completely.
This only happens for enchanted items. This is the fix for MC-51984.
MC-51984 is only about creative mode. Additionally if you pick block in creative mode (in 1.9.2) it acts the same way it does for survival mode: It places the old item in your inventory and puts the new item in your hotbar (instead of replacing it only)
You can remove the link to the world, thank you ![]()
In my opinion this is not really intended, MC-51984 was about unenchanted tools not being switched, whereas enchanted tools are. Now it is just the opposite. This behaviour makes definitely no sense in Survival because you do not lose the item there anyways, instead it makes the pick block function just inconsistent.
It's the fix for MC-51984
Unfortunately this is most likely intentional per the fix of MC-51984.
Still present in 14w17a
Yes, confirmed for 14w17a
Confirmed for 14w18b.
Isn't so. Basically it says that IF
MC-327is intended, enchanted tools shouldn't be overwritten by middle-clicking, which they are (just checked for 14w33c).[in response to a comment claiming this issue is a duplicate]
Confirmed for 1.8pre2
Confirmed for 1.8 and 1.8.1-pre1.
I think this can be considered fixed in the latest snapshot - enchanted items are only replaced as a last measure, other items will be switched to and replaced first.
About protecting other blocks: That's a feature request.