Skip to content
Mob Relations

Quick rating

Community listing page, reviews may not be monitored by the author.

Mob Relations

No reviews yet

Configurable mob alliances and rivalries.

Mod Loaders
Minecraft

About

Description

Mob Relations

Mob Relations is a Minecraft mod that lets you fully customize the relationships between mobs, allowing you to define which mobs are allies and which are enemies.

Using a simple configuration file, you can establish mutual alliances or rivalries between any mobs, including modded entities. Friendly mobs will recognize each other as allies and won't intentionally attack one another, even if they accidentally get into a fight. Enemies, on the other hand, will treat each other as hostile targets.

All relations are symmetric, meaning that defining a relationship between two mobs automatically applies it in both directions.

Configuration

-Friends: Define which mobs consider each other allies.

-Enemies: Define which mobs consider each other enemies.

Config File Example

 

[relations]
# Friends are always symmetric.
friends = ["minecraft:zombie -> minecraft:iron_golem"]

 

# Exact entity rules are symmetric. Keywords: player, hostile, passive.
# Hostile = all monster-category mobs.
# Passive = peaceful creatures (animals, villagers, fish, bats, etc.).
# Keyword rules are one-way: the left side attacks the right side.
enemies = [
    "minecraft:zombie -> minecraft:skeleton",
    "minecraft:zombie -> hostile",
    "minecraft:zombie -> passive",
    "minecraft:zombie -> player"
]

 

# More specific rules override general rules.
# Exact entity rules take priority over hostile/passive rules.
# If two rules have equal priority, enemies override friends.
# Creative and spectator players are never targeted.
# Iron golems and other mobs outside these categories must be listed by ID.