打开控制器
只有操作权限等级为 2 或更高的玩家才能打开或编辑阵营控制器。
- 默认按 O 键。该按键可在 Minecraft 的“控制”菜单中更改。
- 或者运行命令
/ytffm open。
在多人游戏中,所有阵营数据均由服务器存储。更改会保存至世界并同步回编辑器。
创建阵营
- 在 New Faction(新阵营)中输入阵营名称。
- 按 + 以创建它。
- 从左侧列表中选择该阵营。
- 使用名称字段和 Rename(重命名)来稍后更改其显示名称。
使用 Add Defaults(添加默认值)来创建包含的起始阵营:
- People(人类)
- Undead(亡灵)
- Monsters(怪物)
- Animals(动物)
- Custom Red(自定义红方)
- Custom Blue(自定义蓝方)
默认模板还会分配常见的原版实体类型,并创建一些合理的初始关系。它不会移除你自行创建的阵营或分配。
分配实体类型
打开所选阵营的 Members(成员)选项卡。
- 点击实体行以将该实体类型添加到所选阵营。
- 点击已勾选的行以从所选阵营中移除该实体类型。
- 当 Minecraft 拥有翻译名称时,实体行会显示翻译后的实体名称。否则,它们会显示注册表名称。
- 悬停在实体行上可查看其完整的注册表名称及当前所属阵营。
搜索字段可同时匹配翻译名称和注册表名称,因此可以通过类似 modid:entity_name 的名称找到模组实体类型。
过滤按钮可循环切换以下视图:
- All(全部):所有符合条件的活体实体类型。
- Current(当前):已分配给所选阵营的实体类型。
- Free(空闲):未分配给所选阵营的实体类型。这包括未分配的实体类型以及当前分配给其他阵营的实体类型,便于转移。
玩家可作为实体类型使用。非生命实用型实体(如投射物和物品实体)不包含在列表中。
阵营关系
打开 Relations(关系)选项卡,然后点击阵营行以循环切换其与所选阵营的关系。关系是双向应用的。
| 关系 | 行为 |
|---|---|
| Friendly(友好) | 成员之间不会互相瞄准或造成伤害。 |
| Neutral(中立) | 成员不会主动寻找彼此,但如果一只怪物被中立阵营的成员攻击,它可以进行反击。 |
| Hostile(敌对) | 附近的成员会主动将彼此视为目标并进行战斗。 |
同一阵营的成员始终处于友好状态。
注意事项
- 未分配任何阵营的实体类型保持其正常的原版或模组行为。
- 本模组通过管理目标和防止友军伤害来工作。它不会替换实体的 AI。
- 敌对目标的获取仅限于附近实体,因此分配大量实体类型无需每刻扫描整个世界的实体。
- 现有怪物会根据当前的阵营规则做出反应;更改关系后无需生成新的怪物。
快速示例
- 创建名为
Red和Blue的阵营。 - 将僵尸和骷髅分配给 Red。
- 将村民和铁傀儡分配给 Blue。
- 在 Relations(关系)选项卡中,将 Red 和 Blue 设置为 Hostile(敌对)。
- 将两个阵营的成员放置在一起,他们将开始战斗。
Opening the Controller
Only players with operator permission level 2 or higher can open or edit the faction controller.
- Press O by default. The key can be changed in Minecraft's Controls menu.
- Or run
/ytffm open.
In multiplayer, all faction data is stored by the server. Changes are saved to the world and synchronized back to the editor.
Creating Factions
- Type a faction name in New Faction.
- Press + to create it.
- Select the faction from the list on the left.
- Use the name field and Rename to change its display name later.
Use Add Defaults to create the included starting factions:
- People
- Undead
- Monsters
- Animals
- Custom Red
- Custom Blue
The default template also assigns common vanilla entity types and creates a few sensible starting relationships. It does not remove factions or assignments you created yourself.
Assigning Entity Types
Open the Members tab for a selected faction.
- Click an entity row to add that entity type to the selected faction.
- Click a checked row to remove that entity type from the selected faction.
- Entity rows show a translated entity name when Minecraft has one. Otherwise, they show the registry name.
- Hover an entity row to see its full registry name and current faction.
The search field matches both translated names and registry names, so modded entity types can be found with names such as modid:entity_name.
The filter button cycles through these views:
- All: every eligible living entity type.
- Current: entity types assigned to the selected faction.
- Free: entity types not assigned to the selected faction. This includes unassigned types and types currently assigned to a different faction, making them easy to move.
Players are available as an entity type. Non-living utility entities, such as projectiles and item entities, are excluded from the list.
Faction Relations
Open the Relations tab and click a faction row to cycle its relation with the selected faction. Relations are applied both ways.
| Relation | Behavior |
|---|---|
| Friendly | Members do not target or damage each other. |
| Neutral | Members do not actively seek each other, but a mob attacked by a neutral-faction member can retaliate. |
| Hostile | Nearby members actively seek each other as targets and fight. |
Members of the same faction are always friendly.
Notes
- Entity types with no faction assignment keep their normal vanilla or mod behavior.
- The mod works by managing targets and preventing friendly damage. It does not replace an entity's AI.
- Hostile target acquisition is limited to nearby entities, so assigning large numbers of entity types does not require a full-world scan every tick.
- Existing mobs react to the current faction rules; you do not need to spawn new ones after changing a relation.
Quick Example
- Create factions named
RedandBlue. - Assign zombies and skeletons to Red.
- Assign villagers and iron golems to Blue.
- In the Relations tab, set Red and Blue to Hostile.
- Place members of both factions near each other and they will fight.
下载 You Two Fight For Me
下载 You Two Fight For Me
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 You Two Fight For Me
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 You Two Fight For Me
下载 You Two Fight For Me
下载 You Two Fight For Me
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧