
Modrinth · Minecraft mod
Mob AI Commands
A standalone version of the commands added by Mob AI Tweaks mod
Quick answer
Which Mob AI Commands release matches 1.21?
Mob AI Commands 1.1.0 targets 1.21, 1.21.1 with Fabric. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.
Where it goes
Is Mob AI Commands required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does Mob AI Commands 1.1.0 need?
1.1.0 on 1.21. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Mob AI Commands without breaking your instance.
Built for Mob AI Commands 1.1.0 on 1.21. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.1.0. It targets 1.21, 1.21.1 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.1.0. It opens that exact file at the source.
About this project
What does Mob AI Commands add?
This mod is simply a standalone port of the commands added by the Mob AI Tweaks mod, as datapack creators are requesting me a separate, server-side only port of them.
Adds the following commands:
/attack - makes one mob attack another, recommended to be used in conjunction with /execute for full control
Examples:
/attack @n[type=husk] fake_melee (make husk use swing animation but not deal any damage)
/attack @n[type=drowned] @n[type=bogged] with_melee (make drowned use melee attack on bogged)
/attack @n[type=skeleton] @p from_range (make skeleton use their default ranged attack, in this case, shooting an arrow, on the nearest player to it)
/attack @n[type=zombie] @r custom_projectile minecraft:arrow 1 20 {crit:1b} (make zombie shoot an arrow at a random entity with speed of 1, inaccuracy of 20 and nbt data of {crit:1b})
/motion - self explanatory, lets you apply velocity to mobs
Examples:
/motion @p 0 1 0 add (adds 1 to y velocity)
/motion @p 0 1 0 set (sets velocity to 0x, 1y, and 0z)
/motion @p ~ 1 ~ set (set y velocity to 1 but keep x and z motion)
/motion @p 0 ~ 1 set true (set x velocity to 0, keep y velocity, set z velocity to 1 and rotate according to yaw)
/motion @p 0.5 ~ 0.5 multiply (multiply x and z velocities with 0.5)
/pathto - forces mobs to pathfind to a given coordinate or another entity
Examples:
/pathto @n[type=zombie] 0 0 0 (makes zombie pathfind to world spawn)
/pathto @n[type=zombie] ~10 ~ ~ 2.0 (makes zombie pathfind 10 blocks forward in x axis with a speed multiplier of 2.0)
/pathto @n[type=zombie] 0 0 0 2.0 10 (makes zombie pathfind to world spawn with a speed multiplier of 2.0 keeping a minimum distance of 10 blocks away from the destination)
/pathto @n[type=zombie] @p (makes zombies pathfind to the nearest player)
/pathto @n[type=zombie] @p 0.5 (makes zombies pathfind to the nearest player with a speed multiplier of 0.5)
/pathto @n[type=zombie] @p 0.5 4 (makes zombies pathfind to the nearest player with a speed multiplier of 0.5 while keeping a minimum distance of 4 blocks away from them)
/target - makes mobs target each other
Examples:
/target @n[type=blaze] @n[type=breeze] (makes blaze target breeze)
Additionally, this mod backports /rotate from 1.21.2
Project description from Modrinth.
Pick your setup
Mob AI Commands by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Mob AI Commands versions and loaders
1.1.0
mob-ai-commands-1.1.0.jar
23 Sept 2025
1.0.0
mob-ai-commands-1.0.0.jar
27 Aug 2025
Looking for an older file? The official Modrinth project page is in Resources.