Saddled pigs don't drop saddle with doMobLoot=false
To reproduce:
1. /gamerule doMobLoot false
2. /summon Pig ~ ~ ~ {Saddle:1b,CustomName:SaddledPig}
3. /kill @e[name=SaddledPig]
Observe how the pig dropped no saddle. According to MC-15114, saddles should be dropped even without doMobLoot.
Linked Issues
relates to4
Created Issue:
Saddled pigs don't drop saddle with doMobLoot=false
To reproduce:
1. /gamerule doMobLoot false
{Saddle:1b,CustomName:SaddledPig}
2. {{/summon Pig ~ ~ ~}}
3. /kill @e[name=SaddledPig]Observe how the pig dropped no saddle. According to
MC-15114, saddles should be dropped even without doMobLoot.
To reproduce:
1. /gamerule doMobLoot false
{Saddle:1b,CustomName:SaddledPig}
2. {{/summon Pig ~ ~ ~}
}
3. /kill @e[name=SaddledPig]Observe how the pig dropped no saddle. According to
MC-15114, saddles should be dropped even without doMobLoot.To reproduce:
1. /gamerule doMobLoot false
2. /summon Pig ~ ~ ~ {Saddle:1b,CustomName:SaddledPig}
3. /kill @e[name=SaddledPig]Observe how the pig dropped no saddle. According to
MC-15114, saddles should be dropped even without doMobLoot.
relates to
relates to
relates to
relates to
Summary:
Saddled Pigs and Striders don't drop saddle with doMobLoot=false.
Because horses, mules and donkeys drop saddles when doMobLoot=false, as well MC-15114 is WAI (dropping saddles is an intentional feature), the expected behavior is that pigs and striders will drop saddles. The Java edition had a similar issue with pig MC-92772.
Steps to reproduce:
- /gamerule doMobLoot false
- Summon a pig and a strider.
- Equip them with a saddle.
- Kill them.
Observed results:
The pig and the strider did not drop their saddle.
Expected results:
Saddles will drop from the pig and the strider.
Summary:
Relates to MC-92772. When the gamerule doMobLoot is disabled, endermen do not drop the blocks they carry upon their demise. This behavior can inadvertently result in block deletion, as endermen sporadically acquire blocks.
Steps to reproduce:
/gamerule doMobLoot true/summon enderman ~ ~ ~ {Health:1f,carriedBlockState:{Name:"minecraft:anvil"}}- Kill the enderman.
/gamerule doMobLoot false/summon enderman ~ ~ ~ {Health:1f,carriedBlockState:{Name:"minecraft:anvil"}}- Kill the enderman again
Observed result:
Endermen don't drop their block when the gamerule doMobLoot is set to false.
Expected result:
Enderman should drop their block when the gamerule doMobLoot is set to false.
Note:
It appears that monsters holding items also do not drop them when the gamerule doMobLoot is disabled, suggesting that this behavior might be intentional. However animals still drop their saddles.
According to MC-15114, marked as WAI, and MC-92772, which was fixed, mobs are intended to drop their saddles upon death even when the gamerule doMobLoot is set to false. However, this no longer happens. This issue affects horses, mules, camels, skeleton horses, donkeys, zombie horses, striders and pigs. It is also related to MC-271480 and partially overlaps with MCPE-162215, but applies to all saddable mobs, not just pigs and striders.
How to reproduce
- Summon a horse, mule, camel, skeleton horse, donkey, zombie horse, pig, or strider
- Saddle it
/gamerule doMobLoot false- Kill it
Expected result
The mob would drop its saddle upon dying.
Observed result
The mob doesn't drop its saddle.
Note: Donkeys and mules still drop their chest when equipped, even if doMobLoot is set to false.
Relates to MCPE-162215, same problem.