Stronger Armored Mobs
Stronger Armored Mobs 使用基于 JSON 的设备系统替换了配置中指定生物的原版盔甲生成逻辑。该模组适用于 NeoForge 1.21.1,为资源包制作者提供了直接控制哪些生物可以生成穿戴盔甲、有哪些盔甲套装可用、完整套装的出现频率以及可以附加哪些额外战斗增益的能力。
功能
- 可配置的生物列表:仅在
applicableMobs 中列出的生物会使用模组化的盔甲逻辑。
- 自定义装备套装:通过 JSON 定义皮革、锁链、黄金、铁或任何基于物品的盔甲套装。
- 完整套装判定:使用
fullChance 生成完整的匹配套装,例如全套皮革盔甲。
- 独立槽位判定:使用
chance 对每个槽位的盔甲进行独立判定。
- 独立的附魔池:分别配置
equipment_enchantments(盔甲附魔)和 weapon_enchantments(武器附魔)。
- 武器生成:可选择添加配置的武器(如木剑、石剑、铁剑或金剑),并在未成功触发配置武器的生成判定时保留原版武器行为。
- 状态效果生成:使配置的生物有几率生成时带有抗性提升或速度等状态效果。
- 调试模式:将
debug 设置为 true 可在控制台打印详细的判定、物品、附魔和效果信息。
配置
所有内容均在一个文件中处理:
config/strongerarmoredmobs.json
生成的配置文件包含以下字段:
debug
equipment
weapons
equipment_enchantments
weapon_enchantments
statusEffects
applicableMobs
装备
equipment 类别控制盔甲套装。每个套装可以定义:
id
chance
fullChance
items 对应 head(头部)、chest(胸部)、legs(腿部)和 feet(脚部)
如果完整套装判定成功,生物将获得该完整套装,并跳过独立槽位的装备判定。
附魔
盔甲和武器使用独立的附魔池:
equipment_enchantments 应用于模组生成的盔甲。
weapon_enchantments 应用于模组生成的武器。
每个附魔条目都有各自的概率和等级范围。由于每个配置的附魔都会独立进行判定,因此多个附魔可以叠加。
状态效果
statusEffects 类别可以在生物生成时为配置的生物添加状态效果。每个条目支持:
id
chance
minLevel
maxLevel
durationSeconds
使用 -1 表示无限持续时间。
原版行为
对于 applicableMobs 中列出的生物,其原版盔甲生成逻辑将被此模组替换。未在列表中列出的生物保持原版行为不变。
原版武器行为得以保留。例如,骷髅仍然可以生成携带弓,而模组的配置武器生成仅在这些配置判定成功时才会添加或替换武器。
默认生物支持
默认配置针对常见的敌对生物:
minecraft:zombie
minecraft:husk
minecraft:drowned
minecraft:skeleton
minecraft:stray
注意事项
- 现有配置文件不会自动覆盖。请删除
config/strongerarmoredmobs.json 以重新生成最新的默认配置。
- 在测试生成平衡性或排查异常装备问题时,请启用
debug。
- 专为 NeoForge 1.21.1 服务器端的生成控制而设计。
Stronger Armored Mobs
Stronger Armored Mobs replaces vanilla armor spawning for configured mobs with a JSON-driven equipment system. It is built for NeoForge 1.21.1 and gives pack makers direct control over which mobs can spawn with armor, which armor sets are available, how often full sets appear, and which extra combat bonuses can roll.
Features
- Configurable mob list: only mobs listed in
applicableMobs use the modded armor logic.
- Custom equipment sets: define leather, chainmail, golden, iron, or any item-based armor set through JSON.
- Full-set rolls: use
fullChance to spawn a complete matching set, such as full leather armor.
- Per-slot rolls: use
chance to roll armor independently for each slot.
- Separate enchantment pools: configure
equipment_enchantments and weapon_enchantments independently.
- Weapon rolls: optionally add configured weapons such as wooden, stone, iron, or golden swords while preserving vanilla weapon behavior when no configured weapon roll succeeds.
- Status effect rolls: give configured mobs a chance to spawn with effects like Resistance or Speed.
- Debug mode: set
debug to true to print detailed roll, item, enchantment, and effect information to the console.
Configuration
Everything is handled in one file:
config/strongerarmoredmobs.json
The generated config includes:
debug
equipment
weapons
equipment_enchantments
weapon_enchantments
statusEffects
applicableMobs
Equipment
The equipment category controls armor sets. Each set can define:
id
chance
fullChance
items for head, chest, legs, and feet
If a full-set roll succeeds, the mob receives that complete set and per-slot equipment rolls are skipped.
Enchantments
Armor and weapons use separate enchantment pools:
equipment_enchantments applies to armor created by the mod.
weapon_enchantments applies to weapons created by the mod.
Each enchantment entry has its own chance and level range. Multiple enchantments can stack because every configured enchantment rolls independently.
Status Effects
The statusEffects category can add effects to configured mobs during spawn. Each entry supports:
id
chance
minLevel
maxLevel
durationSeconds
Use -1 for an infinite-duration effect.
Vanilla Behavior
For mobs in applicableMobs, vanilla armor spawning is replaced by this mod's armor logic. Mobs not listed keep vanilla behavior.
Vanilla weapon behavior is preserved. For example, skeletons can still spawn with bows, while the mod's configured weapon rolls can add or replace weapons only when those configured rolls succeed.
Default Mob Support
The default config targets common hostile mobs:
minecraft:zombie
minecraft:husk
minecraft:drowned
minecraft:skeleton
minecraft:stray
Notes
- Existing configs are not overwritten automatically. Delete
config/strongerarmoredmobs.json to regenerate the latest default config.
- Enable
debug when testing spawn balance or troubleshooting unexpected gear.
- Designed for server-side spawn control in NeoForge 1.21.1.
评论 0
登录后参与评分
还没有评论,来抢沙发吧