Mob AI Commands

Mob AI Commands

A standalone version of the commands added by Mob AI Tweaks mod

by
4.3K Downloads
fabricmanagementmobsutility
Rent Server with this Mod

About this Mod

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

Available Versions

Mob AI Commands 1.1.0release
MC 1.21, 1.21.1fabric
September 23, 2025
Mob AI Commands 1.0.0 for 1.21release
MC 1.21, 1.21.1fabric
August 27, 2025

How to Install Mob AI Commands on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Mob AI Commands". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21.1, 1.21

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Mob AI Commands server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.

Is Mob AI Commands compatible with fabric?

Mob AI Commands officially supports fabric for Minecraft 1.21.1, 1.21. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Mob AI Commands – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Mob AI Commands consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Mob AI Commands with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.11.21