Pathfinding utilizing the minecraft:behavior.ranged_attack AI Goal no longer works in 1.18
Partner Rank:
1 (Critical)
Partner Team Reporting:
Oreville Studios
Verification builds and Platforms:
1.18.2, Windows 10
Summary:
In order for entities to move in a scripted way from one place to another, the minecraft:behavior.ranged_attack AI goal has been a common way many partners use to accomplish that behavior. In 1.18 (first noticed by us in release 1.18.2), pathfinding using this component is broken. In previous versions (up until 1.17.41), the entity with this AI Goal will move towards the target entity, in contrast to 1.18 where the entity will remain stationary.
Impact:
Our content on the Marketplace is affected by this issue, and in Steampunk Inventors it will prevent progression of the map, breaking the map (see video). Other partners have indicated to us that their content is also affected by this issue.
Repro Steps:
- Download "Steampunk Inventors" from the Marketplace.
- Start a new game and play normally until returning to Voltar and Igor with the blueprints for the first time.
- During the dialogue, the entities will not move even though they have the AI Goal applied (use /aigoals to confirm).
Observed Results:
Voltar and Igor remain stationary and do not pathfind to the testing area (see attached video in 1.18.2).
Expected Results:
Voltar and Igor will move and pathfind to the testing area (see attached video in 1.17.41).
Screenshots/Videos attached: Yes/No
Yes, attached is a video of the bug.
Regression Builds:
This did not occur in 1.17.41.
Notes:
Supplementary video of the issue in Steampunk Inventors: https://www.youtube.com/watch?v=Idr_OX91Vcw