mojira.dev
MC-48522

Ctrl + Pickblock on Flowerpot gives you the flower (+NBT) instead of the flower pot

Normal pickblock should give you the flower and Ctrl + Pickblock should give you the flower pot (+NBT)


Code analysis by @unknown can be found in this comment.

Linked issues

Comments 12

Is this still a concern in the current Minecraft version 14w11b / Launcher version 1.3.11 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Confirmed for 14w18b.

This bug is still in affect for 14w19a.

Confirmed for 14w25b.

Is this still a concern in the current Minecraft version 1.8.1 Prerelease 3 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

2 more comments

Workaruond for placing flowerpots with a specific flower in them is using:

/give @p minecraft:flower_pot 1 0 {BlockEntityTag:{Item:"minecraft:red_flower",Data:0}}

only problem with that, it has a rendering/block loading bug.
1: You use the command above.
2: You place down the pot with the predetermined flower inside.
3: You need to re-open the world or press F3+A to reload the chunks and it will reload the pot and render it correctly.
(will also correctly render after placing any block in the world, after you place the pot.)

But it does work, after F3+A the correct flower/item is in the pot.

Confirmed for

  • 1.9-pre4

Please link to this comment in the description

The following is based on decompiled version of Minecraft 1.8 using MCP. All method and class names are the names used in the decompiled version.

The reason why this happens is that the private void middleClickMouse() method of the net.minecraft.client.Minecraft class has a special exception for flower pots. This should however only use the item in the flower pot if the flower pot contains one and CTRL is not pressed.

The following is my personal opinion:
The whole method and the public Item getItem(World worldIn, BlockPos pos) method of the net.minecraft.block.BlockFlowerPot class need therefor a rewrite as the item stored in the flower pot should be directly copied from the flower pot to the hotbar. Therefor the item inside a flower pot should be properly stored (see MC-91005).

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

Not sure why this was marked as affecting 17w50a since, as of the flattening, flower pots are no longer block entities. Therefore this no longer happens.

Dominik Stolz

(Unassigned)

Confirmed

Minecraft 14w07a, Minecraft 14w18b, Minecraft 14w19a, Minecraft 14w34d, Minecraft 1.8.4, ..., Minecraft 16w33a, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.12.1, Minecraft 1.12.2

Minecraft 17w50a

Retrieved