Component Affected: minecraft:behavior.delayed_attack (Behavior Pack – Entity JSON)
Description: When using the minecraft:behavior.delayed_attack component in a custom entity's behavior file, the entity fails to pursue or attack its target under specific spatial conditions. The entity remains idle even when the target is within attack range.
Steps to reproduce the issue:
Create a custom entity with a hitbox of 1 block wide and 2 blocks tall.
Assign the
minecraft:behavior.delayed_attackcomponent to its behavior JSON.Place the entity in the following positions relative to its target:
Southeast corner of a block.
North side of a wall.
West side of a wall.
Observe that the entity does not move toward or attack the target, even when in range.
Expected result: The entity should approach and attack the target once within range, regardless of its position relative to walls or corners.
Actual result: The entity remains stationary and does not attack, despite the target being within range.
Additional Notes: This issue seems to be related to pathfinding or collision detection when the entity is near walls or corners. It may affect vertical hitboxes (2 blocks tall) more frequently.
Please edit your report to change the Affected Version to the version shown on the Minecraft title screen