Closed kangarko closed 2 years ago
You can either use straight line targeting or remove the stuck action.
For an in-game user that'd be /wp disableteleport
to disable the stuck teleport action
You can either use straight line targeting or remove the stuck action.
Thank you, may I please ask you to point me out to the specific API call for this? I am not so familiar with the Citizens API at the moment.
When in doubt, API version of commands can be found by just finding the source of that command: https://github.com/CitizensDev/Citizens2/blob/master/main/src/main/java/net/citizensnpcs/commands/WaypointCommands.java#L70
in this case npc.getNavigator().getDefaultParameters().stuckAction(null);
Thank you so much that will help a ton <3
/version
output/version Citizens
outputLog file
https://pastebin.com/QG0NCt2T
config.yml
https://pastebin.com/4aGYWCb5
saves.yml
empty file
Profiler report
No response
Description
Following up on issue https://github.com/kangarko/Boss/issues/1103
In a nutshell, NPCs are targeting players and teleporting themselves to players when players are too far away. I'd like to disable this feature of Citizens. Tried setting npc.follow.teleport-across-worlds to false to no avail.
Here is my code: https://pastebin.com/rwBQyKqy
Thank you!