TriggerMobs 将敌对生物转变为 NukaTeamGunLib 枪手:具备侧移、保持间距、换弹和可配置的散布。 可选 Create:Gunsmithing 添加了特定武器的 AI(燧发枪、霰弹枪、加特林、发射器等)。 可选 Guard Villagers 允许村庄守卫在安装该模组时使用相同的 NTGL/CGS 行为。 内置 CGS 生成 在加入时武装生物和守卫(池、双持、配件,掉落见 config/triggermobs-common.toml)。配合 Loot Integrations 和附加包,CGS 枪械、配件和弹药可以出现在战斗和冒险宝箱中(includeLootGuns、includeLootAttachments、includeLootAmmo)。
本项目包含两个加载器版本 —— 请根据您的 Minecraft 版本选择 Files 中的下载项:
|
NeoForge |
Forge |
| Minecraft |
1.21.1 |
1.20.1 |
| Loader |
NeoForge 21.1.228+ |
Forge 47.4.0+ |
| Typical NTGL |
例如 ntgl-1.21.1-3.x |
例如 ntgl-1.20.1-3.0.4 |
| Recruits crossbowmen |
不在 NeoForge jar 中 |
可选,需安装 Recruits (v1.5.0+) |
始终必需: NukaTeamGunLib 和一个 枪械包(例如 Create:Gunsmithing)—— NTGL 本身不附带武器。
最新 NeoForge 分支: 1.5.5 — 本地开发/构建会从 common/libs/ 拾取名为 create-gunsmithing-*.jar 的 Create:Gunsmithing jars(以及现有的 cgs-*.jar 模式)。随附的 minecraft:is_projectile 标签扩展包含了 ntgl:energy。默认的 gradle.properties 回退值与 NTGL 1.21.1-3.1.3 / CGS 1.4.5 对齐,当 jars 被省略时生效。 neoforge.mods.toml 仍将 Guard Villagers 和 Create:Gunsmithing (cgs) 标记为 type = "optional";核心依赖仍为 type = "required"。
NeoForge — Minecraft 1.21.1
要求: Minecraft 1.21.1,NeoForge 21.1.228+,适用于 1.21.1 的 NTGL,以及使用 NTGL 的 枪械包。
行为与修复(NeoForge 构建)
- Mob-shot aggro mixin — NTGL 的服务器代码可以在未静音的射击上运行敌对扫描(在声音范围内的
setLastHurtByMob)。TriggerMobs 跳过对非玩家射手的扫描,因此一个生物的射击不会让附近的所有敌对生物都归咎于射手,同时 投射物仍然会生成且玩家仍可被击中。
- Mob gun targeting — 枪械 AI 跟随生物的 攻击目标,无需在那些错误导致“追逐你但从不开火”的情况下使用
LivingEntity.canAttack。
- Single gun pipeline — NTGL 的生物
GunAttackGoal 被移除(针对敌对生物,以及存在 Guard Villagers 时的守卫),以便仅运行 TriggerMobs 的 MobGunAttackGoal + 策略。
- No monster-on-monster gunfire —
Monster 不会对 另一个 Monster 使用枪械 AI;玩家、村民、铁傀儡和其他非怪物目标不受影响。
- Piglins — 尊重原版
AbstractPiglin 的攻击性(无脱离状态下的连射)。
版本说明(NeoForge,简略版)
- 1.5.5 —
create-gunsmithing-*.jar 本地检测;is_projectile 合并标签中包含 ntgl:energy;依赖回退版本已刷新(NTGL 3.1.3 / CGS 1.4.5)。
- 1.5.4 — 依赖元数据:
guardvillagers / cgs 为 type = "optional";核心依赖为 type = "required"(见上文)。
- 1.5.3 —
MobGunAttackGoal 中的怪物对怪物枪械抑制;NeoForge 移植(mixins、配置加载顺序、仇恨 mixin、目标剥离)。
测试环境(示例): Minecraft 1.21.1,NeoForge 21.1.228+,NTGL 1.21.1-3.x,可选 Create:Gunsmithing、Guard Villagers、Loot Integrations。其他组合可能也能工作;如有 bug 请使用 issue tracker。
Forge — Minecraft 1.20.1
要求: Minecraft 1.20.1,Forge 47.4.0+,NukaTeamGunLib(必需),以及一个 枪械包(例如 Create:Gunsmithing)。
可选 Recruits (v1.5.0+) — 当安装 Recruits 时,recruits:crossbowman 可以将 NTGL/CGS 枪械作为 附加组件 使用(无需修改 Recruits 源码):枪械在 副手,弩在 主手,遵循 ranged 和 strategic-fire 指令。没有无限弹药 — 请提供 CGS/NTGL 弹药(背包、宝箱或靠近招募兵的地上拾取)。换弹使用招募兵的 背包;当空仓时,他们会回退到弩的行为。Recruits 在运行时仍然是 可选 的。
测试环境(示例): Minecraft 1.20.1,Forge 47.4.0 / 47.4.10,NTGL ntgl-1.20.1-3.0.4;Create:Gunsmithing、Guard Villagers,以及可选的 Recruits (1.20.1)。其他 NTGL 包和版本可能也能工作,但不保证兼容。
共享功能(两个版本均适用)
武装且危险 — 僵尸、掠夺者、卫道士和其他敌对生物可以拾起并使用 NTGL 枪械:侧移、保持距离并在交火中给你施加压力。
内置 CGS 枪械生成 — 使用 Create:Gunsmithing 时,生物和守卫可以以全副武装的状态生成;此路径不需要 InControl。
Loot Integrations 宝箱战利品 — 当安装 Loot Integrations 及兼容附加包时,将 CGS 枪械、配件和弹药注入战斗/冒险结构宝箱(地牢、前哨站、要塞、堡垒遗迹、远古城市、Integrated Villages、Underground Villages 等)。可通过 includeLootGuns、includeLootAttachments、includeLootAmmo 进行切换。
⚠️ 警告
- 不要将装有子弹的枪械留在地上供生物拾取。
- 除非你想体验突如其来的爆炸,否则不要将手榴弹留在地上。
智能物品拾取 — 生物优先拾取武器和工具,并从手中丢弃杂物。单手 NTGL 武器在拾起第二把兼容枪械时可以 双持。
平衡的战斗体验 —— 散布与射击节奏均可调节(aiAccuracyNerf、guardAccuracyNerf、fireRateDelayMultiplier、反应延迟、攻击间隔)。在 Forge 1.20.1 上,大多数由 CGS 生成的敌对生物会获得慷慨的 NTGL 弹药行为;Recruits crossbowmen 是例外——它们拥有有限的弹匣容量,你必须为其补充弹药。
兼容任何 NTGL 枪械资源包 —— 不仅限于 Create:Gunsmithing;任何通过 NTGL 注册武器的资源包都能从通用 AI 路径中受益,当存在 CGS 时还会提供额外的策略。
配置
(config/triggermobs-common.toml)
- CGS 枪械生成:
cgsSpawningEnabled、weaponChance、dualWieldChance、mobWeaponOverrides(每个生物的武器池,例如 minecraft:zombie=cgs:flintlock)、maxAttachmentSlots、allowAdvancedWeapons、dropChanceOverride
- 守卫 CGS 生成:
guardCgsSpawningEnabled、guardWeaponChance;当安装了 Guard Villagers 时,守卫会在 mobWeaponOverrides 中使用 guardvillagers:guard 作为其武器池
- 精准度:
aiAccuracyNerf、guardAccuracyNerf
- AI 计时:
aiReactionDelayTicks、fireRateDelayMultiplier、outOfAmmoFallbackTicks、baseAttackIntervalTicks、attackIntervalVariance
- 仅限 Forge 1.20.1(当存在 Recruits 时):
recruitsTinkersReplaceWithCgs、recruitsTinkersReplaceChance、recruitsCgsSpawnAmmoAmount 等——请参阅对应 jar 版本的游戏中配置文件注释
可选 CGS 武器 AI
- 火绳枪 & 左轮手枪 —— 中等射程,单手使用时可双持
- 霰弹枪 —— 近距离压制
- 钉枪 —— 持续火力
- 加特林 —— 压制式射击
- 烈焰枪 —— 近中程射击(Forge:从 v1.3.5 版本起已从自动生物/守卫生成池中移除;你仍可通过手动方式给予)
- 发射器 —— 远程火箭
- 气动锤 —— 近战为主
- 破片手榴弹 —— 投掷行为
非 CGS 的 NTGL 武器使用通用策略,并支持可配置的间隔时间。
Forge 1.20.1 — 功能时间线(简要)
并非每一行都适用于所有旧版 jar;请使用 Files 标签页中的更新日志查看确切下载内容。
- v1.5.x —— Recruits 弩手集成、Recruits 替换为 CGS 的选项、Recruits 有限弹药
- v1.5.2 —— 战利品整合 JSON 修复(制服提供者、附件/弹药条目校正)
- v1.4.x —— 战利品整合箱子注入;扩展 CGS 弹药战利品(v1.4.1)
- v1.3.x —— 内置 CGS 生成与守卫重构;射速倍数;TC-E / Tinkers 兼容性调整;烈焰枪从池中移除
NeoForge 1.21.1 —— 当前发布版本为 Files 标签页上的 1.5.5+;完整说明见匹配标签的 GitHub README。
个人爱好项目 —— GitHub。请根据模组许可证使用和修改。
TriggerMobs turns hostile mobs into NukaTeamGunLib gunners: strafe, spacing, reload, and configurable spread. Optional Create:Gunsmithing adds weapon-specific AI (flintlocks, shotguns, gatlings, launchers, and more). Optional Guard Villagers lets village guards use the same NTGL/CGS behavior when that mod is installed. Built-in CGS spawning arms mobs and guards on join (pools, dual wield, attachments, drops in config/triggermobs-common.toml). With Loot Integrations and addon packs, CGS guns, attachments, and ammo can appear in combat and adventure chests (includeLootGuns, includeLootAttachments, includeLootAmmo).
Two loaders on this project — pick the Files download for your Minecraft version:
|
NeoForge |
Forge |
| Minecraft |
1.21.1 |
1.20.1 |
| Loader |
NeoForge 21.1.228+ |
Forge 47.4.0+ |
| Typical NTGL |
e.g. ntgl-1.21.1-3.x |
e.g. ntgl-1.20.1-3.0.4 |
| Recruits crossbowmen |
Not in the NeoForge jar |
Optional with Recruits (v1.5.0+) |
Always required: NukaTeamGunLib and a gun pack (e.g. Create:Gunsmithing) — NTGL does not ship weapons by itself.
Latest NeoForge line: 1.5.5 — Local dev/build picks up Create:Gunsmithing jars named create-gunsmithing-*.jar from common/libs/ (plus existing cgs-*.jar patterns). Shipped minecraft:is_projectile tag extension includes ntgl:energy. Default gradle.properties fallbacks align with NTGL 1.21.1-3.1.3 / CGS 1.4.5 when jars are omitted. neoforge.mods.toml still marks Guard Villagers and Create:Gunsmithing (cgs) as type = "optional"; core deps remain type = "required".
NeoForge — Minecraft 1.21.1
Requirements: Minecraft 1.21.1, NeoForge 21.1.228+, NTGL for 1.21.1, and a gun pack using NTGL.
Behavior & fixes (NeoForge builds)
- Mob-shot aggro mixin — NTGL’s server code can run a hostile sweep on unsilenced shots (
setLastHurtByMob in sound range). TriggerMobs skips that sweep for non-player shooters so one mob’s shot does not make every nearby hostile blame the shooter, while projectiles still spawn and players can still be shot.
- Mob gun targeting — Gun AI follows the mob’s attack target without requiring
LivingEntity.canAttack in cases where that wrongly caused “chases you, never fires.”
- Single gun pipeline — NTGL’s mob
GunAttackGoal is removed for hostiles (and guards when Guard Villagers is present) so only TriggerMobs’ MobGunAttackGoal + strategies run.
- No monster-on-monster gunfire — A
Monster does not use gun AI against another Monster; players, villagers, iron golems, and other non-monster targets are unaffected.
- Piglins — Respects vanilla
AbstractPiglin aggression (no off-state mag dumps).
Version notes (NeoForge, short)
- 1.5.5 —
create-gunsmithing-*.jar local detection; ntgl:energy in is_projectile merge tag; dependency fallback versions refreshed (NTGL 3.1.3 / CGS 1.4.5).
- 1.5.4 — Dependency metadata:
type = "optional" for guardvillagers / cgs; type = "required" for core deps (see above).
- 1.5.3 — Monster-vs-monster gun suppression in
MobGunAttackGoal; NeoForge port (mixins, config load order, aggro mixin, goal strip).
Tested with (examples): Minecraft 1.21.1, NeoForge 21.1.228+, NTGL 1.21.1-3.x, optional Create:Gunsmithing, Guard Villagers, Loot Integrations. Other sets may work; use the issue tracker for bugs.
Forge — Minecraft 1.20.1
Requirements: Minecraft 1.20.1, Forge 47.4.0+, NukaTeamGunLib (required), and a gun pack (e.g. Create:Gunsmithing).
Optional Recruits (v1.5.0+) — When Recruits is installed, recruits:crossbowman can use NTGL/CGS guns as an addon (no Recruits source patch): gun in the off hand, crossbow in the main hand, ranged and strategic-fire commands respected. There is no infinite ammo — supply CGS/NTGL ammo (inventory, chests, or ground pickup near the recruit). Reload uses the recruit’s inventory; when empty they fall back to crossbow behavior. Recruits remains optional at runtime.
Tested with (examples): Minecraft 1.20.1, Forge 47.4.0 / 47.4.10, NTGL ntgl-1.20.1-3.0.4; Create:Gunsmithing, Guard Villagers, and optionally Recruits (1.20.1). Other NTGL packs and versions may work but are not guaranteed.
Shared features (both versions)
Armed and dangerous — Zombies, pillagers, vindicators, and other hostiles can pick up and use NTGL guns: strafe, keep distance, and pressure you in firefights.
Built-in CGS gun spawning — With Create:Gunsmithing, mobs and guards can spawn already armed; no InControl required for that path.
Loot Integrations chest loot — Inject CGS guns, attachments, and ammo into combat/adventure structure chests (dungeons, outposts, strongholds, bastions, ancient cities, Integrated Villages, Underground Villages, etc.) when Loot Integrations + compatible addons are installed. Toggle with includeLootGuns, includeLootAttachments, includeLootAmmo.
⚠️ Warnings
- Do not leave loaded guns on the ground where mobs can grab them.
- Do not leave grenades on the ground unless you want surprise frags.
Smart item pickup — Mobs favor weapons and tools and drop junk from hands. One-handed NTGL weapons can be dual-wielded when they pick up a second compatible gun.
Balanced combat — Spread and cadence are tunable (aiAccuracyNerf, guardAccuracyNerf, fireRateDelayMultiplier, reaction delay, attack intervals). On Forge 1.20.1, most CGS-spawned hostiles get generous NTGL mob ammo behavior; Recruits crossbowmen are the exception — finite magazine, you must supply ammo.
Works with any NTGL gun pack — Not only Create:Gunsmithing; any pack that registers weapons through NTGL benefits from the generic AI path, with extra strategies when CGS is present.
Configuration
(config/triggermobs-common.toml)
- CGS gun spawning:
cgsSpawningEnabled, weaponChance, dualWieldChance, mobWeaponOverrides (per-mob pools, e.g. minecraft:zombie=cgs:flintlock), maxAttachmentSlots, allowAdvancedWeapons, dropChanceOverride
- Guard CGS spawning:
guardCgsSpawningEnabled, guardWeaponChance; guards use guardvillagers:guard in mobWeaponOverrides for their pool when Guard Villagers is installed
- Accuracy:
aiAccuracyNerf, guardAccuracyNerf
- AI timing:
aiReactionDelayTicks, fireRateDelayMultiplier, outOfAmmoFallbackTicks, baseAttackIntervalTicks, attackIntervalVariance
- Forge 1.20.1 only (when Recruits is present):
recruitsTinkersReplaceWithCgs, recruitsTinkersReplaceChance, recruitsCgsSpawnAmmoAmount, etc. — see in-game config comments for your jar version
Optional CGS weapon AI
- Flintlock & revolver — Medium range, dual-wield capable when one-handed
- Shotgun — Close-range pressure
- Nailgun — Sustained fire
- Gatling — Suppression-style fire
- Blazegun — Close-medium fire (Forge: removed from automatic mob/guard spawn pools from v1.3.5 onward; you can still give one manually)
- Launcher — Long-range rockets
- Pneumatic hammer — Melee-heavy
- Frag grenade — Throwing behavior
Non-CGS NTGL weapons use the generic strategy with configurable intervals.
Forge 1.20.1 — feature timeline (short)
Not every line applies to every old jar; use the Files changelog for the exact download.
- v1.5.x — Recruits crossbowman integration, recruit CGS replace options, finite ammo for recruits
- v1.5.2 — Loot Integrations JSON fixes (uniform providers, attachment/ammo entry corrections)
- v1.4.x — Loot Integrations chest injection; expanded CGS ammo loot (v1.4.1)
- v1.3.x — Built-in CGS spawn & guard overhaul; fire-rate multiplier; TC-E / Tinkers compatibility tweaks; blazegun removed from pools
NeoForge 1.21.1 — Current releases are 1.5.5+ on the Files tab; full notes live in the GitHub README for the matching tag.
Hobby project — GitHub. Use and modify under the mod license.
评论 0
登录后参与评分
还没有评论,来抢沙发吧