Mojira Archive
MCM-1700

Projectiles shot by non-players using minecraft:spawn_entity ignore anchor field

Partner Rank:
2

Partner Team Reporting:
Everbloom Games

Verification builds:
1.20.10.21_rc0
1.20.40.20_rc0

Summary:
Projectiles shot by non-players using minecraft:spawn_entity ignore anchor field, and are shot from the feet instead of whatever the anchor was

Impact:
Makes mobs that shoot projectiles nearly always miss, in maps that use spawn_entity for projectiles. This directly affects the Dungeons & Dragons map, making skeletons, goblins and a few bosses unable to hit players with their projectiles.

Repro Steps:

  1. Open the provided world.
  2. Look at the floating skeleton.
  3. Crouch to make the skeleton shoot via the minecraft:spawn_entity component.
  4. Observe the trajectory of the arrow.

Observed Results:

The skeleton shoots from its feet.

Expected Results:

The skeleton should shoot from its eye level.

Regression Build:

Worked in 1.20.0.23_rc0, doesn't work in 1.20.10.21_rc0

Screenshots / Videos Attached:

Yes

Notes

We're able to work around this by using anchor 0 (feet) and setting the origin of the projectile directly within the offset field. However, this is time consuming and should not be expected of creators to fix their ranged enemies. Shooting projectiles using `minecraft:spawn_entity` is a very commonly used trick in our studio and it's frustrating to see it broken.

Unresolved

Energyxxer

2023-09-27, 07:41 PM

2023-10-03, 09:48 PM

0

0

Future Release

-