Mojira Archive
MCM-696

Timer component not working in vanilla projectile entities

*Partner Rank:*

2

*Partner Team Reporting:*

Everbloom Studios

*Verification builds:*

1.12.0.5

*Summary:*

The minecraft:timer component does not call the time_down_event once the time runs out, when used in a vanilla projectile (arrows, snowballs, eggs, ender pearls, etc.). Note that this does not affect custom entities with the minecraft:projectile component, only vanilla projectiles.

*Impact:*

This breaks some features added to projectiles (such as despawning of arrows after some time) in existing maps as well as maps in development.

*Repro Steps:*

  1. Add the provided behavior pack to the world you're going to test this in. This behavior pack gives snowballs a timer component, which adds a spawn_entity component after 1 second.
  2. Join the world, give yourself a snowball and throw it up in the air (making sure it doesn't hit anything during the first second it travels through the air).

*Observed Results:*

Nothing special appears to happen (the call_success event isn't run, therefore the minecraft:spawn_entity component isn't added)

*Expected Results:*

The snowball should spawn a leashed baby pig after one second of air time (the call_success event is run, allowing the minecraft:spawn_entity component to be added)

*Screenshots/Videos attached: Yes/No*

No

*Regression Builds:*

1.12.0.4 was the last version the timer component worked on projectiles.

Unresolved

Energyxxer

2019-06-15, 07:56 PM

2019-07-17, 11:49 PM

0

2

Future Release

-