Home›Java›Mods›Mob pathfind command
Mob pathfind command
ModsJava

Mob pathfind command

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by inuk · on Modrinth

Adds /mobpathfind command to make mobs pathfind to a location or entity. Useful for datapack and map creators.

⬇ Download on Modrinth

Mob Pathfind Command

Minecraft mod to add /mobpathfind command. Useful for datapacks and maps. I made this mod because I couldn't find one that does this and supports 26.2.

Features

Commands

Move to coordinates

/mobpathfind <mob> <x> <y> <z> [speed] [maxPathLength]

Supports relative (~) and local (^) coordinates.

Follow an entity

/mobpathfind <mob> <target> [speed] [maxPathLength]

Stop moving

/mobpathfind <mob> stop

[speed] is optional and multiplies the mob's walk speed, so 2 makes it twice as fast as it normally walks. Default is 1.
[maxPathLength] sets the maximum distance the mob's pathfinder can search when finding a route. Low values make it stand against a wall instead of searching for a way to get around it. Defaults to 64.

Examples

Move the nearest zombie to coordinates
/mobpathfind @e[type=zombie,limit=1] 100 64 100

Move all villagers at 1.2x their walk speed
/mobpathfind @e[type=villager] ~ ~ ~ 1.2

Make a wandering trader follow the nearest player
/mobpathfind @e[type=wandering_trader] entity @p

Move a zombie with a larger pathfinding length
/mobpathfind @e[type=zombie,limit=1] 100 64 100 1 256

Stop all zombies
/mobpathfind @e[type=zombie] stop

Compatibility

Installation

  1. Install Fabric Loader.
  2. Install Fabric API.
  3. Put the mod in your mods folder.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more