promotional bannermobile promotional banner

Illagers vs Undead - Factions Feud

This is a faction mod. By default, Illagers vs Undead.

Illagers vs Undead

1. Overview

This is a faction mod.
By default, it is set up for Illagers and Undead to fight each other.
Faction relationships can be configured in the config json.

2. Description

2-1. When loading the world

  • Create a cache that assigns factions to all mobs.
  • The following log is output.
    FactionMap loaded: FACTION_TO_ENTITYTYPES:

2-2. When mobs spawn

  • Inject hostility toward hostile mobs into spawned mobs.
  • This can be turned on or off in the settings. (Default: On)

2-3. When the mob is attacked

  • Nearby allied mobs fight the attacker.
  • This range is 16 blocks. (Note: Currently, there is no functionality to change this.)

3. Config Json

Json File Name

config/illagers_vs_undead-factions.json

Key Description

Key Name Smaple Value Description
id "illagers", "undead", "vampires", "vampire_hunters" Faction Id (Free Name)
include - Set the mob information you want to include in the faction.
exclude - Set the mob information you want to exclude from the faction.
entity_types ["minecraft:ravager", "companions:illager_golem"] Set the entity_type for the mob you want to target.
interfaces ["net.minecraft.world.entity.monster.AbstractIllager"] Set the class of the mob you want to target and its parent class (FQCN).
namespaces ["hunters_return", "illagerinvasion"] Set the namespaces for the target mod.
tags ["vampirism:vampire", "#vampirism:hunter"] Set the tag for the mob you want to target. (The “#” is optional.)
relation - Set relationships with other factions.
enemy_factions ["undead", "vampires", "vampire_hunters", "werewolves"] Set the Faction ID you want to make hostile.
ally_factions ["illagers", "undead"] Set the Faction ID you want to form an alliance with.

Default Json

{
    "factions": [
        {
            "id": "illagers",
            "include": {
                "entity_types": [
                    "minecraft:ravager",
                    "companions:illager_golem"
                ],
                "interfaces": [
                    "net.minecraft.world.entity.monster.AbstractIllager"
                ],
                "namespaces": [
                    "hunters_return",
                    "illagerinvasion",
                    "takesapillage",
                    "raided"
                ],
                "tags": [
                    "minecraft:illager"
                ]
            },
            "exclude": {
                "entity_types": [],
                "interfaces": [],
                "namespaces": [
                    "born_in_chaos_v1"
                ],
                "tags": []
            },
            "relation": {
                "enemy_factions": [
                    "undead",
                    "vampires",
                    "vampire_hunters",
                    "werewolves"
                ],
                "ally_factions": []
            }
        },
        {
            "id": "undead",
            "include": {
                "entity_types": [],
                "interfaces": [
                    "net.minecraft.world.entity.monster.AbstractSkeleton",
                    "net.minecraft.world.entity.monster.Zombie"
                ],
                "namespaces": [
                    "born_in_chaos_v1",
                    "rottencreatures",
                    "undead_revamp2"
                ],
                "tags": [
                    "minecraft:undead"
                ]
            },
            "exclude": {
                "entity_types": [],
                "interfaces": [],
                "namespaces": [],
                "tags": []
            },
            "relation": {
                "enemy_factions": [
                    "illagers",
                    "vampire_hunters",
                    "werewolves"
                ],
                "ally_factions": []
            }
        },
        {
            "id": "vampires",
            "include": {
                "entity_types": [],
                "interfaces": [],
                "namespaces": [],
                "tags": [
                    "vampirism:vampire"
                ]
            },
            "exclude": {
                "entity_types": [],
                "interfaces": [],
                "namespaces": [],
                "tags": []
            },
            "relation": {
                "enemy_factions": [
                    "illagers"
                ],
                "ally_factions": [
                    "undead"
                ]
            }
        },
        {
            "id": "vampire_hunters",
            "include": {
                "entity_types": [],
                "interfaces": [],
                "namespaces": [],
                "tags": [
                    "vampirism:hunter"
                ]
            },
            "exclude": {
                "entity_types": [],
                "interfaces": [],
                "namespaces": [],
                "tags": []
            },
            "relation": {
                "enemy_factions": [
                    "illagers",
                    "undead"
                ],
                "ally_factions": []
            }
        },
        {
            "id": "werewolves",
            "include": {
                "entity_types": [],
                "interfaces": [],
                "namespaces": [
                    "werewolves"
                ],
                "tags": []
            },
            "exclude": {
                "entity_types": [],
                "interfaces": [],
                "namespaces": [],
                "tags": []
            },
            "relation": {
                "enemy_factions": [
                    "illagers",
                    "undead"
                ],
                "ally_factions": []
            }
        }
    ]
}

4. License

MIT

The Illagers vs Undead - Factions Feud Team

profile avatar
Owner
  • 1
    Projects
  • 547
    Downloads