Currently the only way to do these things are rather clumsy and involves a lot of command blocks so I propose a new command that deals excactly with this.
The command makes the target try and pathfind from its current position to whatever coordinate is specified in the command. It will override the targets current wanderig ai until it reaches its destination (this will of course have some excemptions that if it cant pathfind to the destination it will either not try or will walk as close to as it can get and then time out after a set time and resume normal wandering/pathing ai)
Example of command:
/path <target> <destination x y z>
Target can be anything, a group of entities, or certain entities within a radius of the executioner of the command or a target at a specific location.
The command could also be expanded with warious extra bits, i.e. what should the target do when arriving at destination? stand still for a period of time or wander around in the gerneral vicinity of the distination for a period of time or just do whatever it wants and so on. Also wether it is persisten on reaching its destination (will not avoid attacking mobs on its way, or if it should resume normal behaviour if attacked on its way)
Should also work on entities that have NoAI=true, these will path to the destination and then stay there.
Usefull for Map Makers in custom maps for tasking eg a villager to walk to a specific location and so on.
Please sign in to leave a comment.
0 Comments