
[CMT] Custom Mob Targets (Muddy Port)
Configure any mob to attack any other mob.
- Загрузки
- 229
- Подписчики
- 1
- Обновлён
- 9 марта 2026 г.
- Лицензия
- MIT
Опубликован 9 марта 2026 г.
This is a port of the original 1.12.2 CMT mod by ZeithComms (and me).
A lightweight, server-side mod that lets modpack makers and server owners configure any mob to target and attack any other living entity — including players, passive mobs, and modded entities.
Passive mobs can be given melee and ranged attacks to become able to attack.
Everything is controlled through simple JSON config files. No coding, no datapacks, no dependencies.
Features:
- Any mob can target any mob — creepers vs sheep, zombies vs skeletons, cows vs chickens — you name it
- Melee attacks for passive mobs — give sheep, cows, pigs, etc. a configurable melee attack
- Ranged attacks with 10 projectile types — arrows, fireballs, wither skulls, shulker bullets, and more
- Configurable damage for melee and ranged (arrow-type) attacks
- Works with modded mobs out of the box — just use their registry ID (e.g. "modid:entity_name")
- Multiple configs — use one file or split across many, single object or array format
- Hot-reload — use the "/cmt reload" command to apply config changes without restarting the server
- Zero dependencies — just drop it in and go (this mod does nothing without configuration, there is an example file included that will not do anything, but shows how to configure a target)
On first launch, the mod creates a config/CustomMobTargets/ folder containing:
targets.json — your config file (starts empty, add your entries here) __examples.json — example configs for reference (NOT loaded — files starting with __ are ignored) __README.txt — full documentation of every config field Open targets.json and add your entries. Use /cmt reload in-game to apply changes instantly.
FAQ Does this work with modded mobs? Yes. Use the mod's registry ID, e.g. "alexsmobs:grizzly_bear" or "twilightforest:naga".
Can I make mobs target players? Yes. Use "minecraft:player" as the target entity.
Can I use multiple config files? Yes. Any .json file in the CustomMobTargets folder is loaded (except files starting with __). Each file can contain a single entry or an array of entries.
Server-side only? Yes. Only needs to be installed on the server. Clients don't need it. You can also use it for singleplayer just fine.
Link to original
Ченджлог
20.1.0Релиз1.20.1 · 9 марта 2026 г.
Changelog v20.1.0 — Full rewrite for Minecraft 1.20.1 (Forge 47+)
Ported and updated by me. Credit to Zeitheron for the original 1.12.2 mod.
New Features:
Melee attacks for passive mobs — give any mob a configurable melee attack with custom damage Ranged attacks for passive mobs — give any mob a ranged attack with 10 projectile types: arrow, spectral_arrow, small_fireball, large_fireball, snowball, egg, wither_skull, dragon_fireball, shulker_bullet, llama_spit Array format — define multiple mob configs in a single JSON file Active toggle — enable/disable individual entries with "active": true/false Auto-generated docs — the mod creates __examples.json and __README.txt on first run with full documentation Hot-reload command — /cmt reload applies config changes without restarting
Technical Changes:
Replaced ASM coremod with Forge event system (EntityJoinLevelEvent) — cleaner and more compatible No dependencies required (HammerCore dependency removed) Uses official Mojang mappings Server-side only
Комментарии
Загружаем…