Mojira Archive
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.