Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-17431

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w06a
    • Snapshot 13w21b, Snapshot 13w22a, Snapshot 13w23a, Minecraft 1.6, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 13w36a, Minecraft 13w36b, Minecraft 1.7.4, Minecraft 14w03b, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.6-pre1, Minecraft 1.7.6-pre2, Minecraft 1.7.10, Minecraft 14w33c, Minecraft 14w34a, Minecraft 14w34b, Minecraft 14w34c, Minecraft 14w34d, Minecraft 1.8-pre1, Minecraft 1.8.8, Minecraft 15w38a, Minecraft 1.10.2, Minecraft 16w32b, Minecraft 16w43a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13b, Minecraft 17w15a, Minecraft 17w16b, Minecraft 17w17b, Minecraft 17w18b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w11a, Minecraft 18w20c, Minecraft 1.13-pre1, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w50a, Minecraft 19w13b, Minecraft 1.14, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3, 1.14.4, 19w38b, 1.15.1, 1.15.2
    • Confirmed
    • Items

      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.

            xilefian [Mojang] Felix Jones
            silentjelly SilentJelly
            Votes:
            40 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: