WitchMoArsenal
WitchMoArsenal 使女巫更加灵活、危险且可配置。女巫不再局限于原版药水列表,而是可以使用你在 JSON 配置中定义的药水和效果。
该模组在本质上服务于服务端:它改变女巫的行为,且不添加新的方块、物品或界面。
功能
- 替换或扩展原版女巫药水列表。
- 配置女巫向敌人投掷的溅射药水。
- 配置女巫自行饮用的药水。
- 允许女巫饮用牛奶以清除效果。
- 可选的支持行为:女巫可以向附近的生物投掷药水。
- 支持药水 ID 和效果 ID。
- 自定义效果的药水会染上效果颜色,而不是使用默认的紫色。
- 当世界/服务器启动时重新加载配置。
示例
让女巫投掷漂浮药水:
{
"potion": "minecraft:levitation",
"weight": 1,
"condition": "always",
"duration": 200,
"amplifier": 0
}
让女巫为苦力怕提供持续 20 秒的速度增益:
{
"potion": "minecraft:swiftness",
"weight": 2,
"condition": "ally_type:minecraft:creeper",
"duration": 400
}
让女巫在亡灵盟友生命值较低时使用伤害药水为其治疗(利用亡灵对伤害药水的特性):
{
"potion": "minecraft:harming",
"weight": 4,
"condition": "ally_undead_health_below_half"
}
配置
配置文件在首次启动后生成:
config/witchmoarsenal.json
主要部分:
replaceVanilla:仅使用配置的药水,或与原版行为混合。
splashPotions:向敌方目标投掷的药水。
drinkPotions:女巫自行饮用的药水。
milk:喝牛奶的行为。
supportThrows:向其他生物投掷的可选药水。
药水条目
药水条目用于 splashPotions、drinkPotions 和 supportThrows.potions。
字段:
potion:药水 ID 或效果 ID,例如 minecraft:harming 或 minecraft:levitation。
weight:随机选择权重。数值越高表示越常见。
condition:何时可以使用该条目。
duration:可选的持续时间覆盖(以刻为单位)。20 刻 = 1 秒。
amplifier:可选的等级覆盖。0 = I 级,1 = II 级。
ambient:可选的效果标志。
showParticles:可选的效果标志。
showIcon:可选的效果标志。
如果 potion 是普通药水 ID,则使用原版药水数据。如果设置了持续时间或放大器,WitchMoArsenal 会将其转换为具有配置值的自定义药水效果。
如果 potion 是效果 ID,WitchMoArsenal 会创建自定义药水效果,并根据效果颜色为药水着色。
条件
通用目标条件:
always
target_far
target_close
target_health_above_half
target_health_below_half
target_missing_effect
自用条件:
self_health_below_half
self_on_fire
self_underwater
self_missing_effect
支援条件:
ally_health_below_half
ally_health_above_half
ally_missing_effect
ally_undead_health_below_half
ally_type:<实体ID>
示例:
ally_type:minecraft:creeper
ally_type:minecraft:skeleton
ally_type:minecraft:zombie
女巫不会向已经拥有该效果的目標投掷效果。
支援投掷
支援投掷默认处于禁用状态。请在配置中启用它们:
"supportThrows": {
"enabled": true,
"cooldownTicks": 80,
"range": 12.0,
"throwRange": 8.0,
"approachSpeed": 1.0,
"requireLineOfSight": true,
"onlyHostileMobs": true,
"potions": []
}
行为说明:
- 当女巫当前未攻击目标时,才会支援其他生物。
- 如果支援目标太远,女巫会先走向目标。
- 如果启用了
requireLineOfSight,女巫将不会穿过方块投掷。
- 在投掷之前,女巫会停下并转向目标。
- 其他女巫会被忽略,不作为支援目标。
牛奶
牛奶行为默认启用:
"milk": {
"enabled": true,
"cooldownTicks": 200,
"drinkingTicks": 32,
"condition": "self_has_effects"
}
牛奶条件:
always
self_has_effects
self_has_harmful_effects
要求
- Minecraft 1.20.1
- Fabric Loader
- Fabric API
许可证
MIT
WitchMoArsenal
WitchMoArsenal makes witches more flexible, dangerous, and configurable. Instead of being locked to the vanilla potion set, witches can use the potions and effects you define in a JSON config.
The mod is server-side in spirit: it changes witch behavior and does not add new blocks, items, or screens.
Features
- Replace or extend the vanilla witch potion list.
- Configure splash potions thrown at enemies.
- Configure potions witches drink on themselves.
- Let witches drink milk to clear effects.
- Optional support behavior: witches can throw potions at nearby mobs.
- Supports both potion ids and effect ids.
- Custom effect potions are tinted with the effect color instead of using the default purple color.
- Config reloads when a world/server starts.
Examples
Make witches throw levitation:
{
"potion": "minecraft:levitation",
"weight": 1,
"condition": "always",
"duration": 200,
"amplifier": 0
}
Make witches buff creepers with speed for 20 seconds:
{
"potion": "minecraft:swiftness",
"weight": 2,
"condition": "ally_type:minecraft:creeper",
"duration": 400
}
Make witches heal undead allies with harming when they are low:
{
"potion": "minecraft:harming",
"weight": 4,
"condition": "ally_undead_health_below_half"
}
Config
The config file is created after the first launch:
config/witchmoarsenal.json
Main sections:
replaceVanilla: use only configured potions or mix them with vanilla behavior.
splashPotions: potions thrown at enemy targets.
drinkPotions: potions witches drink on themselves.
milk: milk-drinking behavior.
supportThrows: optional potions thrown at other mobs.
Potion Entries
Potion entries are used in splashPotions, drinkPotions, and supportThrows.potions.
Fields:
potion: potion id or effect id, for example minecraft:harming or minecraft:levitation.
weight: random selection weight. Higher means more common.
condition: when the entry can be used.
duration: optional duration override in ticks. 20 ticks = 1 second.
amplifier: optional amplifier override. 0 = level I, 1 = level II.
ambient: optional effect flag.
showParticles: optional effect flag.
showIcon: optional effect flag.
If potion is a normal potion id, the vanilla potion data is used. If duration or amplifier is set, WitchMoArsenal converts it into a custom potion effect with the configured values.
If potion is an effect id, WitchMoArsenal creates a custom potion effect and colors the potion from the effect color.
Conditions
General target conditions:
always
target_far
target_close
target_health_above_half
target_health_below_half
target_missing_effect
Self-use conditions:
self_health_below_half
self_on_fire
self_underwater
self_missing_effect
Support conditions:
ally_health_below_half
ally_health_above_half
ally_missing_effect
ally_undead_health_below_half
ally_type:<entity_id>
Examples:
ally_type:minecraft:creeper
ally_type:minecraft:skeleton
ally_type:minecraft:zombie
Witches will not throw an effect at a target that already has that effect.
Support Throws
Support throws are disabled by default. Enable them in the config:
"supportThrows": {
"enabled": true,
"cooldownTicks": 80,
"range": 12.0,
"throwRange": 8.0,
"approachSpeed": 1.0,
"requireLineOfSight": true,
"onlyHostileMobs": true,
"potions": []
}
Behavior notes:
- Witches only support other mobs when they are not currently attacking a target.
- If the support target is too far away, the witch walks toward it first.
- If
requireLineOfSight is enabled, witches will not throw through blocks.
- Before throwing, the witch stops and turns toward the target.
- Other witches are ignored as support targets.
Milk
Milk behavior is enabled by default:
"milk": {
"enabled": true,
"cooldownTicks": 200,
"drinkingTicks": 32,
"condition": "self_has_effects"
}
Milk conditions:
always
self_has_effects
self_has_harmful_effects
Requirements
- Minecraft 1.20.1
- Fabric Loader
- Fabric API
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧