When a 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
Crucially, irrespective of the attacker's attack range, the attacking entity becomes incapable of executing attacks against its target.
Testing confirms that all pushable entities with oversized collision box consistently exhibit this attack-obstructing bug.
Minecraft creators are hitting game-breaking roadblocks left and right because of this bug - it's gotta be fixed ASAP!
Linked issues
Attachments
Comments 4
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.
使用该 minecraft:behavior.delayed_attack 组件时,如果被攻击的可推目标碰撞框大于攻击者的碰撞框,会触发寻路阻断,阻止攻击实体执行普通攻击。
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.
这个漏洞的严重性在于它实际上会破坏任何使用该 minecraft:behavior.delayed_attack 组件的自定义或原版实体的战斗 AI。这种寻路循环阻止了实体完成其核心功能,使其在面对大型目标的战斗场景中变得被动且无反应。这大大限制了基于数据的实体行为在 Bedrock 版中的应用。
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.
虽然我可以切换到 minecraft:behavior.melee_box_attack 或 minecraft:behavior.melee_attack 作为变通方法,但这种权衡是不可接受的:我将失去 hit_delay_pct 功能的访问权限 minecraft:behavior.delayed_attack 。这是一个关键参数,允许对攻击动画中伤害的时机进行精确控制,这一功能是其他组件无法复制的。
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.
因此,我提出以下解决方案:要么修复因碰撞 minecraft:behavior.delayed_attack 判定导致无法触发攻击的 bug,要么在组件中 minecraft:behavior.melee_box_attack 实现 hit_delay_pct(或类似函数)。
Please reopen this report - MCPE-222718,change status from Resolved to Open. Thanks!
I have now supplemented this original report with all necessary reproduction files and detailed steps as requested. Please note that this issue still persists in the latest version!
Since the core evidence is now fully provided here, could you please REOPEN this ticket and change the status from 'Resolved' back to 'Open'? This is a critical bug for Add-on development, and I've consolidated all data to this single thread.
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 usingminecraft:behavior.delayed_attack.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_pctin Addon animations, please refer to the Microsoft documentation:Entity Documentation - minecraft:behavior.delayed_attack | Microsoft Learn. Withouthit_delay_pct, it is impossible to implement any sophisticated or finely-tuned attack animations.