#Custom loot tables haven't been working since 1.20

1 messages · Page 1 of 1 (latest)

fervent minnow
#

I'm trying to make it so that Wither Skeletons drop Wither Bones instead of regular bones, but no matter what I do, the game just ignores my edited loot table file & uses the vanilla file instead.
I created the item for the custom Wither Bone, and didn't edit the location of the loot table. I even changed the min_engine_version in both my resource & behavior pack manifest to 1.20.0 and it doesn't fix the issue. This issue is effecting every loot table, not just the Wither Skeletons.

As of 1.20.31, this is still an issue. Is there any way to fix this? This wasn't an issue before 1.20 released.

vast dawn
#

Any content log issues? Also, are you sure the custom items you have are working? 1.20.30 broke a lot of them

fervent minnow
#

I didn't get any content log errors related to the loot table, and the custom item is still working if obtained in creative mode or the /give command.

vast dawn
#

Weird. Can you send the file?

fervent minnow
vast dawn
#

It seems like the file itself is fine. Maybe try changing the name of the file and updating the wither skeleton's minecraft:loot component to point towards it? Such as bychanging the name of the file to something like custom_wither_skeleton.json and changing the minecraft:loot component to json "minecraft:loot": { "table": "loot_tables/entities/custom_wither_skeleton.json" }
(assuming that the file is in loot_tables/entities. Otherwise, the issue is that the file structure isn't set up right, as the minecraft:loot component takes the file path from the root and so it must be just right)

fervent minnow
#

I tried doing that, but now they are only dropping their swords. I renamed the loot table to custom_wither_skeleton and changed the filename in the minecraft:loot component of the Wither Skeleton's behavior file, it's still in the loot_tables/entites folder, and I also didn't get any content errors.

It seems Mojang broke something related to the loot tables in 1.20.0 that's preventing edited ones from working. I'm hoping this is fixed in 1.20.40.

vast dawn
#

Weird. Maybe report it as a bug. I haven't been having issues with custom mobs, but the bug may only affect vanilla mobs

storm knot
# fervent minnow I tried doing that, but now they are only dropping their swords. I renamed the l...

maybe try it with vanilla item, like replace coal with diamond.
if they dropped diamonds than the issue is within the item identifier, if not, make a bug report.

you can also try and make the wither skeleton entity file point towards an loot table that you know is working, like the zombie's loot table.
if they dropped rotten flesh, than the entity can't access their loot table, if not, try to break the wither skeleton file to see if it got affected or not

fervent minnow
#

I tried replacing the coal with diamond, and even changed the Wither Bones back to the regular bones, but that still did not work, so it isn't an issue with my item identifier. Swapping the loot table component filepath to the Zombie's loot table worked, but any edits to it get ignored. This issue effects all entities, both vanilla & custom.

I created a bug report on the bug tracker: https://bugs.mojang.com/browse/MCPE-175767

low beacon
#

for me works

fervent minnow
#

Update: I managed to fix the issue by making an entirely new behavior pack, and all of my loot tables are now working as intended. I'm not sure what was preventing it from working in the original behavior pack.