错误报告请前往 Github
一个阵营(Faction)由 5 部分组成:
- Entities(实体):一组实体类型(阵营成员)
- AlliedEntities(盟友实体):一组实体类型(该阵营不会攻击的实体)
- HostileEntities(敌对实体):一组实体类型(该阵营看到就会攻击的实体)
- Enemies(敌人):一组阵营 UUID(该阵营不会攻击的阵营)
- Allies(盟友):一组阵营 UUID(该阵营看到就会攻击的阵营)
这些数据按世界保存。阵营的数量以及单个生物所属的阵营数量均无限制。本模组的所有内容均可通过游戏内的 /Faction 命令或对该世界存档文件使用 NBT 编辑器进行修改。如果在加载时未找到相关文件,系统将加载 4 个默认阵营:Zombie、Skeleton、Illager 和 Piglin。
对于属于某个阵营的任何实体(支持同时属于多个阵营),它们会无理由攻击属于敌人阵营的任何实体,但永远不会攻击属于盟友阵营的任何实体。
本模组不适用于拥有“大脑”的实体(即具有特定 AI 行为的实体)。这些实体会被敌人自动攻击,且盟友系统仍会阻止它们攻击盟友,但它们不会自动攻击敌人。以下是拥有“大脑”的实体列表(因为没有任何 Wiki 页面提供此信息):
- Allay
- Axolotl
- Camel
- Frog
- Tadpole
- Goat
- Sniffer
- Zoglin
- Hoglin
- Piglin
- Piglin Brute
- Warden
- Villager
Bugs can be Reported on the Github
There are 5 parts to a Faction
- Entities: a set of Entity Types (members of the faction)
- AlliedEntities: a set of Entity Types (entities that faction wont attack)
- HostileEntities: a set of Entity Types (entities that faction will attack on sight)
- Enemies: a set of Faction UUID (factions that faction wont attack)
- Allies: a set of Faction UUID (faction that faction will attack on sight)
This is saved per World, There is no limit to how many factions there is or how many a mob is in.. everything about this mod can be edited with /Faction in-game or using a NBT editor on the saved file for that world, if no file is found when loading it'll load 4 default factions, Zombie, Skeleton, Illager & Piglin.
For any Entity within a faction (supports multiple at the same time), it'll attack without reason any Entities within an Enemy Faction, however it will NEVER attack any Entities within an Allied Faction.
This mod doesn't work on Entities with Brains, they will be attacked automatically by enemies and the ally system still prevents them attacking allies, and they will not attack enemies automatically. a list of Entities with brains is below (since no Wiki pages does)
- Allay
- Axolotl
- Camel
- Frog
- Tadpole
- Goat
- Sniffer
- Zoglin
- Hoglin
- Piglin
- Piglin Brute
- Warden
- Villager
评论 0
登录后参与评分
还没有评论,来抢沙发吧