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

"set_nbt" function in loot table does not merge NBT to item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 17w49a
    • Minecraft 17w47b, Minecraft 17w48a
    • None
    • Windows 10, Minecraft's included Java
    • Confirmed

      The bug

      "function": "set_nbt" in loot tables does nothing. Loot tables that worked in 1.12 don't show an error when loaded, but when the item is dropped the NBT data is not applied to it. This causes, for example, uncraftable potions in fishing and uncraftable arrows dropped by strays.

      Code analysis

      It appears that in 17w48a's bka class, the NBT data from the item is merged to the NBT data from the table, but is not merged back onto the item.

            dinnerbone [Mojang] Nathan Adams
            RichardAHallett Richard A. Hallett
            Votes:
            11 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: