Mojira Archive
MCM-285

Changing mob variant in Behavior Pack makes the mob's attack reset

Windows_Minecraft - Publish_937076

1.4.2

 

Summary:

The goal was to use the variant option on the parrot to animate the mob. The behavior pack would be set up to switch variants of the parrot randomly every 0.1 to 0.3 seconds on a timer component. The parrot also needs a ranged attack. Before adding in the timer component to switch variants, the parrot properly targets and attacks its enemy (villager in this case). When you add the timer as specified above, it will look at the target but will not attack it. If you set the timer to trigger at a longer duration than the ranged attack interval (exactly 1 second in this case), the parrot will be able to properly attack the target.

 

Impact:

We cannot achieve the intended visual effect without breaking the behavior of the mob.

 

Repro Steps:

  1. Get the file "variantbug.json" from Greg or Quinn on Slack
  2. Place it into a behavior pack in a world and open the world
  3. Summon a parrot and a villager. You can ride the parrot. Notice how the parrot attacks the villager in bursts. This is how we expect the parrot to attack
  4. Edit the "minecraft:timer" component to have a time range of 0.1 to 0.3. Reload the game and notice how the parrot will no longer attack the villager
  5. Edit the "minecraft:timer" component to have a time range of 1.1 to 1.1. Reload the game and notice how the parrot attacks the villager, but only shoots one projectile per burst

 

Observed Results:
Listed above

Expected Results:
We would expect the changing of the variant to not impact the mob's ability to target and execute attacks.

Screenshots/Videos attached:
No

Awaiting Response

[Noxcrew] Joe Arsenault

2018-05-31, 05:02 PM

2018-10-04, 01:06 AM

2018-10-04, 01:06 AM

0

0

Future Release

-