How to make entity's follow paths in Minecraft(JAVA) Remade
ฝัง
- เผยแพร่เมื่อ 21 ส.ค. 2024
- Today I will show you how to make any mob or entity follow a path in Minecraft JAVA edition. Note watch the video to work out how to change speed/get it to function correctly.
Command for spawning:
/summon minecraft:villager 245.71 9 -350.00 {Tags:["move1"], NoAI:1b}
Command for -X:
/execute at @e[type=minecraft:villager,tag=move1] if block ~ ~-3 ~ minecraft:oak_planks run execute as @e[type=minecraft:villager,tag=move1] run tp @e[type=minecraft:villager,tag=move1] ~-1 ~ ~ 90 0
Command for +Z:
/execute at @e[type=minecraft:villager,tag=move1] if block ~ ~-3 ~ minecraft:acacia_planks run execute as @e[type=minecraft:villager,tag=move1] run tp @e[type=minecraft:villager,tag=move1] ~ ~ ~1 -180 0
Command for +X:
/execute at @e[type=minecraft:villager,tag=move1] if block ~ ~-3 ~ minecraft:dark_oak_planks run execute as @e[type=minecraft:villager,tag=move1] run tp @e[type=minecraft:villager,tag=move1] ~1 ~ ~ -90 0
Command for -Z:
/execute at @e[type=minecraft:villager,tag=move1] if block ~ ~-3 ~ minecraft:birch_planks run execute as @e[type=minecraft:villager,tag=move1] run tp @e[type=minecraft:villager,tag=move1] ~ ~ ~-1 180 0
Command to go up
/execute at @e[type=minecraft:villager,tag=move1] if block ~ ~-4 ~ minecraft:slime_block run execute as @e[type=minecraft:villager,tag=move1] run tp @e[type=minecraft:villager,tag=move1] ~ ~1 ~ 90 0
Command to go down:
/execute at @e[type=minecraft:villager,tag=move1] if block ~ ~-5 ~ minecraft:honey_block run execute as @e[type=minecraft:villager,tag=move1] run tp @e[type=minecraft:villager,tag=move1] ~ ~-1 ~ 90 0
The best videos ! Keep going !