遭遇战
为 Minecraft 添加可配置的遭遇事件。每个事件都有独立的触发条件、行为逻辑和生物池,定义在 config/encounters.json5 中,或通过 YACL 配置界面在游戏内编辑。
更多事件正在规划中。
配置
- 游戏内 GUI 由 YACL 驱动(两个加载器均必需)
- 配置文件:
config/encounters.json5 - 每个事件提供独立的开关、概率以及带权重的生物池
- 池条目接受自定义 SNBT(语法与
/summon相同),可用于设置装备、属性和效果…… - 引用了缺失模组的条目会在加载时被跳过,因此单个配置文件即可兼容任何整合包
全局选项
mobsDropEquipment— 关闭时(默认值),由任何事件生成的生物在死亡时不会掉落其出生时携带的装备,而是保留它们
事件
闪电过载
雷暴期间的自然闪电可能在落点生成一组生物,并伴随一段简短的过场动画。
选项
- 启用开关
- 每次闪电的触发概率
- 群体大小(最小 / 最大)
- 群体凝聚力 — 第一个生成的生物作为首领,当追随者偏离太远时会重新聚集到它周围
- 生物池(带权重,支持单条目的 SNBT 和可选标签)
兼容性
- Iron's Spells 'n Spellbooks — 在落点增加冲击波效果
- Epic Fight — 遵循原版的
generic.scale属性,使缩放后的生物以正确的大小渲染 - 默认生物池包含引用 Iron's Spells、Epic Fight 和 Simply Swords 的条目。当对应模组缺失时,各条目会自动被忽略。
下界传送门入侵
主世界中的活跃下界传送门可能会突然涌出数波不断升级的下界生物,并伴随一段短暂的 buildup 过场动画。
触发
- 对每位主世界玩家周围进行周期性被动扫描(全局同时只能运行一次入侵;通过可配置的冷却时间来限制下一次入侵)
- 传送门框架分析会选择两个垂直生成面之一;所选的面必须在整个传送门宽度范围内提供可通行的站立行
过场动画
- 下一波攻击仅在当前波次被完全清除后才开始(设有短暂宽限期以吸收范围伤害清场)
- 在入侵运行期间,所有生物和玩家的传送门传送功能将被禁用,结束后也有短暂的宽限期
波次
- 随机波次数量,介于可配置的最小值和最大值之间
- 线性规模增长:
firstWaveSize + (n-1) * step - 稀有度偏差:后续波次会偏向稀有条目(上限为基础权重的 4 倍,确保极稀有生物永远不会占据主导地位)
生物
- 默认阵容:猪灵士兵 / 射手 / 持盾者、凋灵骷髅、烈焰人、猪灵蛮兵、疣猪兽 + 猪灵蛮兵(长牙先锋)、疣猪兽 + 弩猪灵(弩手斥候)以及极稀有的恶魂
- 由该事件生成的疣猪兽和猪灵免疫原版僵尸化,以免在战斗中途发生形态变化
- 遭遇战中的猪灵无视金甲安抚效果 — 无论玩家装备如何,它们都会继续战斗
军队特征
- 所有入侵生物共享盟友标签 — 基于目标驱动或大脑驱动的 AI 之间不会发生友军伤害
- 每波次的群体凝聚力:第一个幸存者作为首领,在非主动战斗状态下其他生物会重新聚集到它周围
- 每波次的传送门牵引:偏离传送门太远的生物会被拉回,除非它们正在追逐玩家
- 六种精心策划的旗帜主题(血旗、骷髅旗、硫磺旗、铁方阵、余烬旗、地狱疤痕)会在每次入侵时随机抽取一种;约 30% 符合条件的生物会成为旗帜持有者,并在其携带的任何原版盾牌上印有匹配的图案。两次平行的入侵看起来像是两支不同的军队。
选项
- 启用开关
- 每次扫描的触发概率
- 扫描间隔(刻)
- 入侵后的传送门冷却时间(刻)
- 波次数量(最小 / 最大)
- 首波规模及每波增量
- 群体凝聚力启用 + 半径
- 生物池(带权重,支持单条目的 SNBT 和可选标签)。
旗帜资格是按需启用的,通过在 SNBT 中使用
encounters_banner_eligible实体标签来配置。
Encounters
Adds configurable encounter events to Minecraft. Each event has its own
trigger, behavior and mob pool, defined in config/encounters.json5
or edited in-game through the YACL config screen.
More events are planned.
Configuration
- In-game GUI powered by YACL (required on both loaders)
- Config file:
config/encounters.json5 - Each event exposes its own toggles, chances and a weighted mob pool
- Pool entries accept custom SNBT (same syntax as
/summon) for gear, attributes, effects… - Entries referencing a missing mod are skipped at load, so a single config works across any modpack
Global options
mobsDropEquipment— when off (default), mobs spawned by any event keep the gear they spawned with instead of dropping it on death
Events
Lightning Overcharge
Natural lightning bolts during a thunderstorm may spawn a group of mobs at the impact point, preceded by a short cinematic.
Options
- Enable toggle
- Trigger chance per bolt
- Group size (min / max)
- Group cohesion — the first mob acts as leader, followers regroup around it when they stray too far
- Mob pool (weighted, with per-entry SNBT and optional label)
Compatibility
- Iron's Spells 'n Spellbooks — adds a shockwave at the impact point
- Epic Fight — honors the vanilla
generic.scaleattribute so scaled mobs render at the correct size - The default mob pool ships with entries referencing Iron's Spells, Epic Fight and Simply Swords. Each entry is ignored automatically when the corresponding mod is missing.
Nether Portal Invasion
Active nether portals in the overworld may suddenly disgorge several escalating waves of nether mobs, preceded by a short buildup cinematic.
Trigger
- Periodic passive scan around each overworld player (only one invasion may run at a time globally; a configurable cooldown gates the next one)
- Portal frame analysis picks one of the two perpendicular spawn faces; the chosen face must offer a walkable foot row across the full portal width
Cinematic
- The next wave starts only when the current one is fully wiped (with a short grace period to absorb AoE wipes)
- Portal teleportation is disabled for everyone (mobs and players) while an invasion runs, with a brief grace period after it ends
Waves
- Random wave count between configurable min/max
- Linear size progression:
firstWaveSize + (n-1) * step - Rarity bias: later waves shift toward rare entries (capped at 4× base weight, so very-rare mobs never become dominant)
Mobs
- Default roster: Piglin Soldier / Marksman / Shieldbearer, Wither Skeleton, Blaze, Piglin Brute, Hoglin + Piglin Brute (Tusked Vanguard), Hoglin + crossbow Piglin (Crossbow Outrider) and a very rare Ghast
- Hoglins and piglins spawned by the event are immune to vanilla zombification so they don't morph mid-fight
- Encounter piglins ignore gold-armor pacification — they keep fighting regardless of player gear
Army identity
- All invasion mobs share an allies tag — no friendly fire across goal-driven or brain-driven AI
- Per-wave group cohesion: the first survivor acts as leader, others regroup around it when not in active combat
- Per-wave portal leash: mobs straying too far from the portal are pulled back, unless they're chasing the player
- One of six curated banner themes (Bloodflag, Skullbearer, Brimstone, Iron Phalanx, Cinder Banner, Hellscar) is rolled per invasion; ~30 % of eligible mobs become banner bearers, with the matching pattern stamped on any vanilla shield they carry. Two parallel invasions look like distinct armies.
Options
- Enable toggle
- Trigger chance per scan
- Scan interval (ticks)
- Portal cooldown after an invasion (ticks)
- Wave count (min / max)
- First wave size and per-wave step
- Group cohesion enable + radius
- Mob pool (weighted, with per-entry SNBT and optional label).
Banner eligibility is opt-in per entry via the
encounters_banner_eligibleentity tag in SNBT.
下载 Encounters
下载 Encounters
下载 Encounters
下载 Encounters
下载 Encounters
下载 Encounters
下载 Encounters
下载 Encounters
- 修复(刷怪笼):在解除无 AI 锁定后重置 deltaMovement
- 功能(传送门):通过模组变体扩充入侵者名单
- 重构:将入侵逻辑与平台服务层模块化
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
评论 0
登录后参与评分
还没有评论,来抢沙发吧