nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft.
[CMT] Custom Mob Targets (Muddy Port)

[CMT] Custom Mob Targets (Muddy Port)

Mod

Configure any mob to attack any other mob.

Server Management MobsUtility

16 downloads
0 followers
Created25 days ago
Updated25 days ago

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


Project members

MuddyMonkey

Owner


Technical information

License
MIT
Client side
optional
Server side
required
Project ID
Expand Down