Mojira Archive
MC-122536

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

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.

Fixed

Richard A. Hallett

[Mojang] Nathan Adams

2017-11-26, 03:46 PM

2017-12-06, 01:14 PM

2017-12-06, 01:14 PM

11

8

Confirmed

Minecraft 17w47b, Minecraft 17w48a

Minecraft 17w49a