Mob AI Commands

Quick rating

Mob AI Commands

No reviews yet

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

QoL & Tweaks
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
mob-ai-commands-1.1.0.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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

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

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~6,000
Total Downloads
CurseForge
<1,000
Modrinth
~6,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works