Mojira Archive
MCM-906

pre_effect_script does not run when entity is despawning with minecraft:despawn

Partner Rank:

2

Partner Team Reporting:

Everbloom Studios

Verification builds:

1.14.0.50

Summary:

In particle effects from animation controllers, the "pre_effect_script" molang expression does not run during the few ticks the entity has the minecraft:despawn component before fully despawning and being removed from the client. This causes any particles in the entity that use variables defined in that expression to throw an error saying "[Molang][error]-Error: accessing a variable that doesn't exist".

Impact:

This makes some of our content throw content errors, which lately fails certification.

Repro Steps:

  1. Create and join the provided world.
  2. Turn on the lever to spawn a turret entity.
    The turret is configured to change the hue of the particle depending on where you are around the entity, and does this by setting variable.hue to the entity's body_y_rotation + target_y_rotation.
  3. Turn the lever off to despawn the turret entity (tags the entity, which a minecraft:despawn component detects)

Observed Results:

The content log is spammed with:

[Molang][error]-Error: accessing a variable that doesn't exist: variable.hue

as the animation controller can no longer send the value of variable.hue to the particle before spawning

Expected Results:

No content error should appear when despawning the entity

Screenshots/Videos attached: Yes/No

Yes.

Regression Builds:

None

Unresolved

Energyxxer

2019-12-14, 07:13 AM

2019-12-16, 08:49 PM

0

0

Future Release

-