Pathfinder Momentarily Overrides Controllable
The output of command /version on my server is: git-paper-101 MC: 1.16.1
The output of command /version citizens on my server is: 2.0.27-SNAPSHOT (build 2067)
Hi, there's an issue with Sentinel & Citizen's controllable feature, when your controllable entity starts to target an enemy because it either was shot or something, it'll attempt to go to it so it'll conflict with your controls as it'll make you move very slowly & if you stop moving it'll drag you towards the target. Thank you.
I've confirmed this locally.
/npc create bob, /npc controllable, mount the NPC, /ex walk <npc> <npc.location.backward[15]> (or any other pathfind command). The pathfinder overrides the player's own control of the NPC movement.
This might be a bit of an awkward thing to fix as there is a valid question of who is in control of movement. In my mind, it should always be the top entity (ie in this situation, the player mounted atop the npc, and not the npc) (and in situations like a player npc mounted on a horse npc, that top player npc should have control, not the horse). I think at least fullwall has thought differently about how that should go.
I think, given that /npc controllable explicitly grants the player control over the NPC's movement (and non-controlling mounting can be done without that for npcs other than horses), the NPC's pathfinding should be effectively disabled for so long as a player is atop with /npc controllable and thus in theoretical control of movement.
Other problem is that /npc controllable is tied up with mounting, and it's very possible that you might have NPC mounts that don't let you control them per se but just travel on their own routine. Perhaps need to add a separate trait.