Mineuniverse
Log in Register
Mods

Mob AI Commands

A standalone version of the commands added by Mob AI Tweaks mod
by NotUnaNancyOwen
Download Claim this project
208 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Mobs Server Utility Utility & QoL

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

mob-ai-commands-1.1.0.jar
MC 1.21, Fabric, 1.21.1, Server
Release 2025-09-23 Get

More from NotUnaNancyOwen

Confluence Infernum Music
8,495
Backported Minecarts
7,005
Atlatls
689
Pierce Arrow: Refabricated
560
Sped Up Mobs
496
No Item Use Slow Down
261

You Might Also Like

APTweaks: Items (11.x Classic)
Item clustering (fallen blocks, experience orbs, ...) and garbage cleanup.
9,884,514
VanillaDeathChest (Fabric)
Places containers when players die that contain their items.
994,762
Styled Nicknames
Simple, but configurable nicknaming mod allowing your server's players (and admins) to change their nickname with full formatting support
989,499
Tiquality
Make server lag the problem of the source player.
99,489
Blame (Fabric)
Those gosh darn crashlogs not saying which worldgen feature is crashing!
99,012
Weathering with You
Forecast Minecraft weather with a radar or a hat!
98,579