🛣️ Path
Voici comment contrôler un PNJ pour qu'il suive un chemin précis :
Il faut lui attribuer le tag : controlMe
et placer un bloc de laine en dessous :
| Bloc de Laine | Direction |
|---|---|
| red_wool | nord |
| yellow_wool | est |
| blue_wool | sud |
| green_wool | ouest |
| lime_wool | sud-ouest |
| pink_wool | nord-ouest |
| orange_wool | nord-est |
| cyan_wool | sud-est |
Pour arrêter un PNJ selon les coordonnées :
execute positioned 3065 66 0 as @e[tag=controlMe] if entity @s[distance=..3] run tag @s remove controlMe