[CMT] Custom Mob Targets - Mob Targeting Personalization
Ever dreamed of making creepers attack your farm animals? Or turning zombies and skeletons into warring factions? Now you can!
The Custom Mob Targets modification provides data pack developers with a tool to configure hostile mob behavior toward any entities in Minecraft.
Core Features
Any hostile mobs can be configured to attack any entities from any modifications with minimal impact on game performance!
Behavior Configuration
To work with the mod, you need to create JSON files in the "CustomMobTargets" configuration folder.
Important: Files starting with a double underscore are ignored by the system (including examples). The mod does nothing without user-added JSON files.
Creating configuration files is extremely simple:
- Define the "entity" key (mod:entity)
- Add a "targets" array with attack objectives
There are no limitations on the number of targets or configuration files.
Configuration Parameters
- priority - determines the priority of the attack task in the AI system
- check_sight - handles direct visibility checking (whether the mob should see the target through obstacles)
Configuration Example
{
"entity": "minecraft:creeper",
"targets": [
{
"priority": 2,
"check_sight": true,
"entity": "minecraft:sheep"
}
]
}
This configuration makes creepers aggressive toward sheep.
Commands
Use the /cmt reload command for instant configuration reload during gameplay.