mojira.dev
MC-311697

Hoglins' equipment is not dropped according to `drop_chances` when converting to zoglins

Since it was requested that MC-311623 be split up, this report covers equipment transfer when a hoglin converts to a zoglin.

When such a conversion occurs, the zoglin retains any equipment given to the hoglin via commands. Per the standard outlined in MC-311623, it would be expected that the items a zoglin cannot make use of (all equipment slots) would be dropped according to drop_chances (preferably reflecting the chance value exactly).

This “bug” has basically no impact on the game, so I would not really mind if this were to be designated Works As Intended, Won’t Fix or Invalid. However, should other equipment transfer be fully implemented according to the MC-311623 standard, the reason for the inconsistency may be difficult to describe.

To reproduce

  1. Be in the overworld

  2. /summon minecraft:hoglin ~ ~ ~ {TimeInOverworld:280,equipment:{mainhand:{id:iron_sword},head:{id:iron_helmet},saddle:{id:saddle}},drop_chances:{mainhand:2f,head:2f,saddle:2f}}

  3. Once the piglin converts, /data get entity @n[type=zoglin] equipment
    ❌ All three items have been retained

Expected behavior

All three items would be dropped on the ground since the zoglin cannot make use of them.

Linked issues

MC-311698 Tadpoles' equipment is deleted when converting to frogs Open MC-311687 Zombies' equipped items on the body and saddle slots are not dropped according to `drop_chances` when converting to drowned Resolved MC-311692 Piglin brutes' equipped items on the body and saddle slots are not dropped according to `drop_chances` when converting to zombified piglins Resolved MC-311694 Skeletons' equipped items on the body and saddle slots are not dropped according to `drop_chances` when converting to strays Resolved MC-311688 Husks' equipped items on the body and saddle slots are not dropped according to `drop_chances` when converting to zombies Resolved

Comments 1

clamlol

(Unassigned)

Community Consensus

Platform

Low

Items, Mob behaviour

26.2, 26.3 Pre-Release 2

Retrieved