mojira.dev
MCPE-110042

variable.attack_time Fails With Villager Runtime ID

When creating a mob that can use melee attacks and uses the runtime-id 'minecraft:villager_v2', the variable 'attack_time' becomes unknown and attack animations won't work correctly.

 

Steps To Reproduce:

  1. Add ' "minecraft:runtime_id": "minecraft:villager_v2" ' to any custom hostile mob

  2. Any previously working attack animations will no longer work

  3. Several errors will begin appearing in the content log

Expected Behavior:

  • The attack_time variable (along with other hidden variables) is universal and can be used by all mobs, regardless of runtime-id.

Actual Behavior:

  • Adding the villager runtime id to a mob breaks the attack_time variable

Comments 3

resolved with 1.16.220.55

resolved with 1.16.220.55

resolved with 1.16.220.55

Gruntastic

(Unassigned)

Unconfirmed

Windows

add-on, attack, attack_time, hostile, runtime-id, variable, villager

1.16.210.53 Beta, 1.16.210.51 Beta, 1.16.210.50 Beta, 1.16.201 Hotfix

1.16.220.50 Beta

Retrieved