Description:
When using the minecraft:behavior.delayed_attackcomponent, if the pushable target under attack has a collision box larger than that of the attacker, it triggers a pathfinding blockage that prevents the attacking entity from executing normal attacks.
The severity of this bug lies in the fact that it effectively breaks the combat AI for any custom or vanilla entity utilizing the minecraft:behavior.delayed_attack component. This pathfinding loop prevents the entity from fulfilling its core function, rendering it passive and unresponsive in combat scenarios against larger targets. This significantly limits the utility of data-driven entity behaviors in the Bedrock Edition.
While I could switch to minecraft:behavior.melee_box_attack or minecraft:behavior.melee_attack as a workaround, the trade-off is unacceptable: I would lose access to the hit_delay_pct feature from minecraft:behavior.delayed_attack. This is a critical parameter that allows precise control over the timing of damage within an attack animation, a functionality that cannot be replicated with other components.
Therefore, I propose the following solutions: either fix the bug where minecraft:behavior.delayed_attack fails to trigger attacks due to hitbox collisions, or implement hit_delay_pct (or an equivalent function) into the minecraft:behavior.melee_box_attack component.
Attachments:
I have provided a world save, the Addon files, and a demonstration video to reproduce this bug. After loading the world or installing the Addon separately, you can search for "bug" in the creative inventory to find the sample entity spawn eggs. "bug2" is the target entity with an enlarged collision box; "bug1" is an attacker using minecraft:behavior.melee_box_attack; and "bug1_1" is an attacker using minecraft:behavior.delayed_attack.
Reproduction Steps:
Import the provided Addon or World pack.
Use spawn egg bug2 to place the target.
Use spawn egg bug1_1 next to it.(
minecraft:behavior.delayed_attack)/kill @e.
Use spawn egg bug2 to place the target.
Use spawn egg bug1 next to it.(
minecraft:behavior.melee_box_attack)Observe that the entity fails to attack due to the hitbox collision.
Regarding the importance of hit_delay_pct in Addon animations, please refer to the Microsoft documentation:Entity Documentation - minecraft:behavior.delayed_attack | Microsoft Learn. Without hit_delay_pct, it is impossible to implement any sophisticated or finely-tuned attack animations.
Linked issues
is duplicated by 2
Attachments
Comments 2
I understand the policy regarding duplicate reports. However, I am submitting this because the issue remains unresolved in the current version of the game, despite previous reports being marked as "resolved."
The reason I am providing this new, more detailed report is that the previous ones did not lead to an actual fix. I have included a specific reproduction world and a sample Addon that clearly demonstrate the pathfinding failure.
Please review the attached evidence, as this is a critical regression (or persistent bug) that severely impacts Addon development. I am not trying to spam, but to ensure this functional break in minecraft:delayed_attack is accurately addressed.
Please stop duplicating this report. Your previous reports have been resolved as duplicates of this one.