Mojira Archive
MCM-1213

The entity component "minecraft:custom_hit_test" does not update the hitboxes regularly.

Partner Rank: 2

Partner Team Reporting: Starfish Studios

Verification builds: 1.16.40.02, build 4645976/1.16.200.52, build 4900268

Summary:
The entity component "minecraft:custom_hit_test" does not update all the entity hitboxes regularly when this component is added while the entity is already alive, until the game is reopened.

Impact:
This prevents entities from changing their hitboxes and updating them correctly when changing the entity's "minecraft:custom_hit_test" component through component groups. Resulting in an entity with multiple hitboxes when trying to update the hitbox that the entity already owned.

Repro Steps:

  1. Join a world using a mcbuild.
  2. Enable the drawing bounding boxes /bounds.
  3. Summon a baby hoglin /summon minecraft:hoglin ~ ~ ~ spawn_baby.
  4. Give yourself some fungus /give @s crimson_fungus 8.
  5. Feed the baby hoglin until it grows up.

Observed Results:
When growing up, the baby hoglin adds a larger hitbox, but does not remove its baby hitbox. If you close the world and reopen or spawn a adult hoglin, it won't have its little hitbox.

Expected Results:
The old hitbox must be removed immediately since the old component was removed and a new one added.

Screenshots/Videos attached: Yes.
Attached a hitbox from a normal adult hoglin and another from a baby hoglin that was recently grown into an adult.

Regression Builds:
Never worked properly since added.

Unresolved

Jean Lucas

2020-10-31, 11:21 PM

2023-07-22, 12:00 AM

6

5

Future Release

-