mojira.dev
MC-154922

Wither roses dropped even if doMobLoot is set to false

The bug

When setting gamerule doMobLoot false, mobs killed by a Wither still drop wither roses, even if other drops do get disabled.

Code analysis

For 20w07a using Mojang names

net.minecraft.world.entity.LivingEntity.createWitherRose(LivingEntity) does not check the doMobLoot (or any other) gamerule when creating the wither rose item entity.

Linked issues

Attachments

Comments 8

IIRC, the rose is actually placed in the world, but will usually be dropped because of the Wither's explosion.

I forgot to specify that. If the block below the mob is not valid for planting the Wither Rose, it would be dropped, and not because of the explosion. That is even with doMobLoot false.

Can confirm in 20w51a.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 1.17-pre4.

Can confirm in 1.17.1.

Can confirm in 22w11a.

Sentropic

(Unassigned)

Confirmed

(Unassigned)

doMobLoot

Minecraft 1.14.3 Pre-Release 4, 20w07a, 20w51a, 1.16.5, 21w06a, 21w08b, 1.17.1, 22w12a

Retrieved