Advanced Hostility
受够了千篇一律的怪物行为?Advanced Hostility 是一款强大的配置工具,让你完全掌控世界的生态系统。无论你是正在打造独特 PvE 体验的服务器管理员、编织复杂怪物互动的整合包制作者,还是寻求新鲜挑战的单人玩家,这款模组都能为你提供所需的工具。
核心特性
-
自定义阵营:将原版或其他模组中的任何怪物归类到如“亡灵军团”或“森林守护者”等阵营中。
-
复杂关系:设置阵营之间为友好、敌对或中立。可以建立全球联盟,也可以引发怪物间的末日战争。
-
AI 重做:赋予绵羊和村民等被动怪物具有攻击性的 AI,并自定义伤害和速度。或者,让苦力怕完全无视玩家!
-
高兼容性:旨在智能地补充而非简单替换原版 AI。这使得与其他模组的怪物能够产生动态且涌现式的互动。
-
对服务器友好:所有配置均可通过游戏内命令进行编辑,并在无需重启服务器的情况下重新加载,非常适合服务器管理员和整合包制作者。
配置指南
Advanced Hostility 通过 [advancedhostility-common.toml] 文件(用于全局设置)和 [advancedhostility-server.toml] 文件(用于特定于世界的覆盖设置)进行配置。
配置分为四种主要的规则类型,按以下优先级顺序处理:怪物规则 > 阵营规则 > 原版行为。
1. 集合 (Sets)
集合是可复用的实体组。它们是管理大量怪物的便捷方式。
格式:set_id;member1,member2,@another_set,!exclude_mob
@ 引用另一个集合。
! 排除某个实体或集合。
modid:* 包含来自特定模组的所有怪物。
示例:
toml sets = [ "undead;minecraft:zombie,minecraft:skeleton,minecraft:zombie_villager", "monsters;minecraft:*,!minecraft:creeper,!@undead" ]
2. 阵营 (Factions)
阵营是共享共同关系的实体组。
格式:faction_id;member_list;relationship1;relationship2
member_list 可以包含实体 ID 或集合引用(例如 @undead)。
示例:
toml factions = [ "illagers;minecraft:pillager,minecraft:vindicator;hostile=players,villagers", "players;player;friendly=wolf_pack" ]
3. 怪物规则 (Mob Rules)
怪物规则为单个实体类型定义特定行为,会覆盖任何阵营规则。
格式:mob_id;rule1;rule2
proactive=<target>:使怪物主动猎杀目标。
ignore=<target>:使怪物忽略目标。
示例:
toml mob_rules = [ "minecraft:creeper;ignore=player", "minecraft:wolf;proactive=@undead" ]
4. 侵略性规则 (Aggression Rules)
这个强大的功能为非敌对怪物提供完整的战斗 AI 重做。
格式:mob_id;damage=<value>;speed=<multiplier>
damage:最终造成的伤害值(1.0 = 半颗心)。
[speed]:追逐目标时的移动速度倍率。
示例:
toml aggression_rules = [ "minecraft:sheep;damage=8.0;speed=1.8", "minecraft:villager;damage=10.0" ]
游戏内命令
随时管理你的服务器配置,无需重启。基础命令为 /advancedhostility。
检查配置
/advancedhostility check sets:列出所有已定义的集合。
/advancedhostility check set <set_name>:显示特定集合的成员。
/advancedhostility check factions:列出所有已定义的阵营。
/advancedhostility check faction <faction_name>:显示特定阵营的详情。
/advancedhostility check mobrules:列出所有拥有特定规则的怪物。
/advancedhostility check mobrule <mob_id>:显示特定怪物的规则。
/advancedhostility check relation <mob1_id> <mob2_id>:检查两个特定怪物之间的最终关系。
/advancedhostility check relations <mob_id>:显示特定怪物定义的所有关系。
编辑服务器配置
这些命令会修改世界的 serverconfig/advancedhostility-server.toml 文件。
需要执行 /advancedhostility reload 才能使更改生效。
/advancedhostility mobrule set <mob_id> [proactive|ignore] <target>:为怪物设置主动或忽略规则。
/advancedhostility mobrule clear <mob_id>:清除怪物的所有特定规则。
/advancedhostility faction create <faction_name>:创建一个新的空阵营。
/advancedhostility faction addmember <faction_name> <member>:向阵营添加实体或集合。
/advancedhostility faction removemember <faction_name> <member>:从阵营移除实体或集合。
/advancedhostility faction setrelation <faction1> [friendly|hostile|neutral] <faction2>:设置两个阵营之间的关系。
Advanced Hostility
Tired of predictable mob behavior? Advanced Hostility is a powerful configuration tool that gives you total control over the world's ecosystem. Whether you are a server administrator creating a unique PvE experience, a modpack creator weaving intricate mob interactions, or a solo player looking for a fresh challenge, this mod provides the tools you need.
Core Features
-
Custom Factions: Group any mob from vanilla or other mods into factions like "The Undead Legion" or "Forest Guardians".
-
Complex Relationships: Set factions to be Friendly, Hostile, or Neutral towards each other. Create global alliances or spark world-ending wars between creatures.
-
AI Overhaul: Grant passive mobs like sheep and villagers aggressive AI with custom damage and speed. Or, make Creepers ignore players entirely!
-
High Compatibility: Designed to intelligently supplement, not just replace, vanilla AI. This allows for dynamic and emergent interactions with mobs from other mods.
-
Server-Friendly Management: All configurations can be edited in-game via commands and reloaded without a server restart, making it perfect for server administrators and modpack creators.
Configuration Guide
Advanced Hostility is configured through the [advancedhostility-common.toml] file (for global settings) and the [advancedhostility-server.toml] file (for world-specific overrides).
The configuration is broken down into four main rule types, which are processed in the following order of priority: Mob Rules > Faction Rules > Vanilla Behavior.
1. Sets
Sets are reusable groups of entities. They are a convenient way to manage large numbers of mobs.
Format: set_id;member1,member2,@another_set,!exclude_mob
@ references another set.
! excludes an entity or set.
modid:* includes all mobs from a specific mod.
Example:
toml sets = [ "undead;minecraft:zombie,minecraft:skeleton,minecraft:zombie_villager", "monsters;minecraft:*,!minecraft:creeper,!@undead" ]
2. Factions
Factions are groups of entities that share common relationships.
Format: faction_id;member_list;relationship1;relationship2
member_list can contain entity IDs or set references (e.g., @undead).
Example:
toml factions = [ "illagers;minecraft:pillager,minecraft:vindicator;hostile=players,villagers", "players;player;friendly=wolf_pack" ]
3. Mob Rules
Mob Rules define specific behaviors for individual entity types, overriding any faction rules.
Format: mob_id;rule1;rule2
proactive=<target>: Makes the mob actively hunt the target.
ignore=<target>: Makes the mob ignore the target.
Example:
toml mob_rules = [ "minecraft:creeper;ignore=player", "minecraft:wolf;proactive=@undead" ]
4. Aggression Rules
This powerful feature gives non-hostile mobs a complete combat AI overhaul.
Format: mob_id;damage=<value>;speed=<multiplier>
damage: The final damage dealt (1.0 = half a heart).
- [speed]: A multiplier for movement speed when chasing a target.
Example:
toml aggression_rules = [ "minecraft:sheep;damage=8.0;speed=1.8", "minecraft:villager;damage=10.0" ]
In-Game Commands
Manage your server's configuration on the fly without ever needing to restart. The base command is /advancedhostility.
Checking Configuration
/advancedhostility check sets: Lists all defined sets.
/advancedhostility check set <set_name>: Shows the members of a specific set.
/advancedhostility check factions: Lists all defined factions.
/advancedhostility check faction <faction_name>: Shows the details of a specific faction.
/advancedhostility check mobrules: Lists all mobs with specific rules.
/advancedhostility check mobrule <mob_id>: Shows the rules for a specific mob.
/advancedhostility check relation <mob1_id> <mob2_id>: Checks the final relationship between two specific mobs.
/advancedhostility check relations <mob_id>: Shows all defined relationships for a specific mob.
Editing Server Configuration
These commands modify the world's serverconfig/advancedhostility-server.toml file.
A /advancedhostility reload is required for changes to take effect.
/advancedhostility mobrule set <mob_id> [proactive|ignore] <target>: Sets a proactive or ignore rule for a mob.
/advancedhostility mobrule clear <mob_id>: Clears all specific rules for a mob.
/advancedhostility faction create <faction_name>: Creates a new, empty faction.
/advancedhostility faction addmember <faction_name> <member>: Adds an entity or set to a faction.
/advancedhostility faction removemember <faction_name> <member>: Removes an entity or set from a faction.
/advancedhostility faction setrelation <faction1> [friendly|hostile|neutral] <faction2>: Sets the relationship between two factions.
评论 0
登录后参与评分
还没有评论,来抢沙发吧