mojira.dev
MC-269887

Mobs not dropping loot/xp (caused by outdated datapack)

Moderator Note

Data packs created for 1.20.4 are likely incompatible with 1.20.5 and either don't load or malfunction. Most importantly, the item format has changed, which means that data packs modifying mob drops will no longer work.

In particular, the More Mob Heads data pack by Vanilla Tweaks replaces the drops of all vanilla mobs, which means that using the 1.20.4 version of the More Mob Heads data pack will cause all mobs to drop nothing, due to the loot table format being incompatible.

Please wait for the data packs you're using to be updated, and then download them again to apply to your world. In the meantime, you can disable data packs using the command /datapack disable or simply by deleting them in the datapacks directory of your world save folder.

for the past 3-4 snapshots, mobs haven't been dropping loot; passive, neutral, agressive, doesn't matter. None are dropping loot or XP which is really annoying. I've been killing mobs with a diamond sword with Looting III, but still nothing drops. This affects my cow farm as, again, nothing is dropping. Along with that, everything else for me has come to a standstill as I can't do anything in my world.

Linked issues

MC-272997 Mobs like cows and sheep don't drop items only XP Resolved MC-271067 Passive mobs drop no loot Resolved MC-271070 Cows won't drop loot Resolved MC-271077 Mob Drops Resolved MC-271101 Endermen don't drop enderpearls Resolved

Attachments

Comments 9

Do you have the `doMobLoot ` gamerule enabled? Please provide a clear way to reproduce the described behavior.

I do have that gamerule enabled, and it's been enabled since I created the world before the 1.21 snapshots started dropping (I created the world about a week before they started dropping so I couldn't enable the 1.21 features) and I dont know how to recreate this bug since the bug only started happening since around the time of 24w8a or 24w9a

Do you have any data packs enabled? If so, try disabling them and check if the issue persists.

I have a vanilla tweaks datapack on, they didn't cause issues before, but if they are the things causing the issue, how can I disable it?

If the data pack is designed for 1.20.4, it may cause problems when used in later versions. You can disable it using /datapack disable <pack name>.

So- it seems I can't disable them?

Cheats need to be enabled to run the command:
Esc → Open to LAN → Allow Cheats: ON → Start LAN World

After tinkering with the datapacks, only disabling Vanilla Tweak's 'More Mob Heads' seems to have fixed this issue, I have also taken the liberity to delete it from the world folder just to be on the safe side

FoodieTheFox

(Unassigned)

Unconfirmed

(Unassigned)

24w12a

Retrieved