mojira.dev
MC-17431

Shift-clicking stacked items with a data tag into the enchanting table GUI removes data tags from the moved item

Notable examples

  • Renamed books

  • Shift-clicking a stack of potion arrows into the enchantment table (so it moves a single item) deletes the moved arrow's data/effect

  • Firework rockets

  • banners

  • written books

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The method net.minecraft.inventory.ContainerEnchantment.transferStackInSlot(EntityPlayer, int) only copies the complete item stack data if it has a count of 1, otherwise it creates a new item stack with count 1 and the same meta data but not the NBT data.

Linked issues

MC-28845 Named Blocks Shift-Clicked Into an Enchantment Table Lose Their Name Resolved MC-70995 Banner clear glitch Resolved MC-80513 Shift Clicking Styled Banners into Enchantment Tables Removes their Style Resolved MC-86183 Shift-clicking stacked items with data tag into enchantment table removes data tag from moved item Resolved MC-86825 Shift-Clicking Resolved

Attachments

Comments 13

Confirmed.

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

Still present in 1.7.5, 1.7.6-pre2, and 14w11b.

Still present in 1.8-pre1

Confirmed in Minecraft 1.11 with banners, written books and spawn eggs.

3 more comments
Liam Reese Turnbull

confirmed in 1.13.1 with firework rockets

Loek van Vucht

Confirmed in 1.14.3 Pre-Release 2.

CreeperMagnet_

Can confirm in 1.14.3 full release.

Spawn eggs seem to work correctly in Minecraft 1.14.4, but the issue remains for firework rockets and tipped arrows.

Yea because spawn eggs have been separated but arrows and fireworks have not

SilentJelly

Felix Jones

Confirmed

Items

banner, display-Name, enchanting_table, fireworks, item, spawn_egg, tipped_arrow, written_book

Snapshot 13w21b, Snapshot 13w22a, Snapshot 13w23a, Minecraft 1.6, Minecraft 1.6.1, ..., Minecraft 1.14.3, 1.14.4, 19w38b, 1.15.1, 1.15.2

20w06a

Retrieved