Some help to create a path for no ai mobs
Hello, I would like to create a predefined path for mobs without ia by making them teleport 0.1 block forward if a block precis is under their feet. Off currently it only works if there is a single mob on the way, if there are several it creates a conflict and teleports all the mobs on the way to the same level of the path and advances all superimposed.
Here is the command that should be modified but I can’t find a solution :
/execute at @e[type=minecraft:villager] if block ~ ~-2 ~ minecraft:red_glazed_terracotta run execute as @e[type=minecraft:villager] run tp @e[type=minecraft:villager] ~0.1 ~ ~ -90 0