
Mob Factions
This mod provides an advanced system for managing relationships between different creature groups in the Minecraft world. Instead of standard mob behavior where creatures only attack the player and certain enemies, you can now create full classifications with special inter-group relationships.
Main System Components
The modification operates on four key elements:
- Factions - names of creature groups
- Entities - mob types belonging to a specific faction
- Enemies - factions that are automatically attacked by members of this group
- Allies - factions whose members are never attacked
System Implementation
All parameters are uniquely saved for each world and can be edited using the /Faction command. Initial settings are taken from the mod's common configuration file when the world is first created or when the /Faction reset command is executed.
When an entity joins a faction, it automatically attacks all representatives of hostile factions, completely ignoring allied groups. When a faction member is attacked, they immediately notify their allies about the aggressor, and those allies, in turn, can come to their aid in battle.
Preconfigured Settings
For convenient initial use, the mod includes a basic set of settings demonstrating the system's operating principles:
Factions and Their Composition
- zombie: zombie, zombie_villager, husk, drowned, zombified_piglin, zoglin
- skeleton: skeleton, stray, wither_skeleton
- illager: pillager, vindicator, ravager, evoker, vex
- piglin: piglin, piglin_brute, zombified_piglin
Relationship System
- zombie → enemies: illager, piglin; allies: skeleton
- skeleton → enemies: illager, piglin; allies: zombie
- illager → enemies: zombie, skeleton, piglin; allies: none
- piglin → enemies: zombie, skeleton, illager; allies: none
Command Interface
/Faction provides complete control over the system:
- reset - reset to factory settings
- get - general information about factions
- get [Faction] - details of specific grouping
- create [Name] - create a new faction
- remove [Faction] - delete existing faction
- modify [Faction] add/remove entities [EntityType] - edit faction composition
- modify [Faction] add/remove allies [Faction] - change friendly relations
- modify [Faction] add/remove enemies [Faction] - configure hostile relationships
The system automatically suggests all created factions when entering parameters, and entity types are selected as conveniently as in the /summon command.