Winefox's Spellbooks
中文说明 · Minecraft 1.21.1 · NeoForge · MIT
连接 Touhou Little Maid 与 Iron's Spells 'n Spellbooks:女仆阅读法术书、管理法力值并选择自己的法术,玩家则可召唤女仆投入战场。
模组概览
Winefox's Spellbooks 将 Touhou Little Maid 中的女仆变成了真正的施法者:在她的饰品栏放入一本法术书后,她会根据局势挑选法术,管理法力值,尊重冷却时间,进行侧向移动和重新定位——如果使用了 GeckoLib 模型,还会播放施法动画。
除此之外,该模组还提供:
- Winefox Hex —— 一个独立的学派,拥有专属的伤害类型和属性,围绕玩家与女仆的团队协作构建:玩家开启攻势,女仆跟进,并肩作战的收益远高于各自为战;
- 插件兼容性 —— 为 15 个 Iron's Spells 插件中的数百个法术提供了行为分类。已安装的插件会自动生效;缺失的插件不会导致错误。
关于名称的由来:施法动画仅在 GeckoLib 女仆模型上播放,而 "Winefox" 就是其中之一。
快速入门
- 安装依赖项:Touhou Little Maid 和 Iron's Spells 'n Spellbooks,以及它们各自的依赖项(Curios、GeckoLib)。
- 安装本模组。
- 给女仆一本刻有法术的法术书并放入她的饰品栏,或者给她一件附魔武器/护甲。
- 打开女仆 GUI 并将其任务切换为魔法攻击或魔法辅助。
- 启用“在法术战斗中显示法术名称”(默认开启)时,她正在施放的法术会显示在她头顶上方。
女仆施法
施法媒介
她的主手、护甲栏位、女仆饰品栏位和 Curios 栏位都会被扫描;任何“法术容器”(法术书、附魔武器、附魔护甲)中的法术都会进入她的法术列表。
- 同一时间只有一本法术书生效,这与玩家相同;附魔装备不受此限制且可叠加。
- 法术等级 = 法术自身的等级 + 装备提供的亲和加成。
- 不属于任何行为类别的法术会被忽略——这是导致“她不释放该法术”的最常见原因。请参阅七大行为类别。
- 装备的任何变化都会立即重新计算法术列表;执行
/reload 更新法术标签后,已加载的女仆也会重新扫描。
两种任务
| 任务 |
使用的类别 |
目标 |
| 魔法攻击 |
攻击 / 防御 / 移动 / 自我治疗 / 负面效果 |
她自己的敌对目标 |
| 魔法辅助 |
防御 / 自我治疗 / 盟友增益 / 负面效果 / 盟友治疗 |
她的主人及盟友正在战斗的目标 |
魔法攻击是常规的战斗角色:寻找目标、重新定位、施法,并可选择使用近战武器终结敌人。
魔法辅助从不主动发起战斗。它为主人和同队生物(包括其他属于同一主人的女仆)提供治疗、增益和净化,并在过程中对敌人施加负面效果。
两种任务的解锁条件相同:主手或护甲栏位持有附魔武器,或饰品栏位持有刻有法术的法术书。
七大行为类别
女仆的法术列表被划分为七个行为类别;游戏内配置屏幕使用相同的名称。每个类别在法术标签和加载包数据集中也有对应的英文字段名:
| 类别 |
法术标签 |
配置选项 (键) |
加载包 spells 字段 |
| 攻击 |
attack_spells |
额外攻击法术 ID (extraAttackSpells) |
attack |
| 防御 |
defense_spells |
额外防御法术 ID (extraDefenseSpells) |
defense |
| 移动 |
movement_spells |
额外移动法术 ID (extraMovementSpells) |
movement |
| 自我治疗 |
support_spells |
额外自我治疗法术 ID (extraSupportSpells) |
support |
| 盟友增益 |
positive_effect_spells |
额外盟友增益法术 ID (extraPositiveEffectSpells) |
positive_effect |
| 负面效果 |
negative_effect_spells |
额外负面效果法术 ID (extraNegativeEffectSpells) |
negative_effect |
| 盟友治疗 |
support_effect_spells |
额外盟友治疗法术 ID (extraSupportEffectSpells) |
support_other |
另外两个标记标签不参与分类:summon_spells(召唤类)和 maid_should_recast_spells(需多次施放类)。它们仅用于标记法术;并不决定女仆是否可以施放该法术。
法力值
- 女仆拥有独立的法力条,与玩家无关;使用 Jade 指向她即可查看。
- 上限使用与玩家相同的公式:法杖和法师装备上的“最大法力”词缀生效,且“最大法力倍率”选项会对整体进行缩放。
- 自然恢复默认约为每秒 2%,受法力恢复词缀影响。
- 被闪电击中是一个永久标记,保存在女仆身上——一旦被击中便永不消退。启用“被闪电击中的女仆法力恢复速度加快 100 倍”后,此类女仆每 0.5 秒即可回满整个法力条,这实际上等同于无限法力。该选项默认关闭。
女仆如何选择法术
她在每个短间隔做出一次决策(上限由“最大连击延迟刻度”设定,默认为 10 刻度):
- 排除当前无法施放的法术:任何法力不足或仍在冷却中的法术都会被丢弃。如果未完成多重施放法术,她会优先完成它。
- 对每个行为类别加权,通过加权随机选择一个类别,然后在该类别中以相等概率选择其中一个法术。
权重的经验法则如下:
- 友方生命值越低,友方治疗权重越高;濒死的友方优先级高于一切;
- 当附近有友方时,支援类法术占据主导,战斗类法术则被搁置;
- 自身生命值越低,防御和移动权重越高;
- 如果无法直视目标,她很少选择攻击法术,而是重新调整位置;
- 如果友方缺少增益效果,或携带可驱散的减益效果,相应法术的权重会急剧上升;
- 如果上一轮选择了防御/负面效果,这两项权重都会下降,以避免重复使用同类法术。
搜索半径源自 最大法术攻击搜索范围(默认 64 格),并且优先选择持有 新月烙印 的敌人。在开始施法前,她必须接近至 开始施法距离(默认 15 格)或法术自身的施法距离。
其他战斗行为:
- 站位:在射程一半以内后退,在射程内且可视时原地环绕,施法时移动速度变慢,并会在被命令停止移动时停止重新定位。
- 近战终结技:由 允许女仆在法术攻击期间使用近战武器 控制,默认开启。
施法动画
该模组将 Iron's Spells 的施法动画接入 Touhou Little Maid 的动画系统;使用 GeckoLib 模型的maid 在施放时会播放匹配的动画。
模型包作者可以在自己的动画文件中定义以 iss: 为前缀的动画片段;键名请参阅 Touhou Little Maid 的 iss.animation.json。
动画资源是从 Iron's Spells 的原版转换而来的。部分姿势可能存在骨骼错位问题;这些将在后续版本中持续修复。
Winefox Hex School
Winefox Hex 是本模组添加的独立学派,拥有独立的伤害类型以及两个属性(Winefox Hex Spell Power / Winefox Hex Magic Resist),可与 Iron's Spells 本身的法师装备词缀叠加。
该学派专为 “玩家 + 女仆” 设计:其法术在两者之间传递价值——玩家进行烙印,女仆跟进引爆,而玩家施展的护盾和净化也能覆盖附近的女仆。单人游玩可行,但一支女仆小队才是其完整形态。
该学派仍在发展中;后续版本将继续拓展新的方向。
学派物品
| 物品 |
备注 |
获取来源 |
| Vulpine Anima |
学派的焦点:在 Scroll Forge 中制作卷轴的合成材料,也是高阶法术的施法媒介 |
来自好感度满级女仆(95%)的晨间礼物;由女仆击杀妖精掉落(驯服女仆 25% / 召唤女仆 35%,每点抢夺加成 5%);宝箱:林地府邸 25%,下界要塞 20%, stronghold 图书馆 15%,以及 Iron's Spells 的 Pyromancer Tower、Catacombs 和 Citadel 图书馆 |
| Crescent Blood Vintage |
可饮用。女仆饮用后必定获得 Foxfire Boost 持续 10 秒:新冷却时间视为正常的 10%,现有冷却时间在她饮用的瞬间减少 90%。其他任何人有 60% 的概率分别获得反胃、中毒和法力中断效果 |
村庄房屋/神庙,掠夺者前哨站,林地府邸,以及 Iron's Spells 的各种木桶、宝库和食物桶 |
学派的卷轴也有几率出现在 stronghold 图书馆、下界要塞和 Iron's Spells 的 Pyromancer Tower、Catacombs 和 Citadel 图书馆的宝箱中。该模组提供了一个创造模式标签页,包含这两种物品以及每个学派卷轴的所有等级。
法术列表
| 法术 |
等级 |
稀有度 |
冷却时间 |
女仆类别 |
备注 |
| Crescent Brand |
1–8 |
普通 |
10s |
负面效果 |
对单个目标施加一条 16 格射线;基础持续时间 12 秒,每级增加 1 秒。烙印本身不造成伤害——它是一根等待点燃的导火索 |
| Foxshade Wisps |
3–8 |
罕见 |
15s |
攻击 |
多重施法:每次施放释放一个追踪狐影,最多 3 个,在 4 秒窗口内从两侧包抄;每个狐影的伤害 = 法术强度 × 2 |
| Foxshade Ambush |
1–4 |
普通 |
8s |
防御 |
标记自己 10 秒;下次击中敌对生物时,一个狐影落下并咬击(伤害 = 法术强度)。最好在战斗前施放 |
| Crescent Mantle |
3–8 |
罕见 |
30s |
防御 |
为自己和 6 格内的己方女仆提供伤害吸收(Absorption II,基础 4 秒,6 级以上升级为 Absorption III)和 真实隐形(基础 3 秒,装备也隐藏,降低仇恨);每种持续时间每级增加 0.5 秒 |
| Decant the Bind |
2–5 |
普通 |
20s |
自我治疗 |
将自己或视线内 16 格内一名己方女仆身上的减益效果持续时间减半;在最高等级(5)时直接移除它们 |
| Tipsy Mist |
1–8 |
普通 |
12s |
负面效果 |
经过 1 秒施法后,在落点扩散半径 5 格的迷雾,持续基础 6 秒,每级增加 0.5 秒;5 级及以上施加 Tipsy II。己方女仆免疫 |
| Vintner's Bomb |
1–8 |
普通 |
8s |
攻击 |
投掷一瓶造成学派伤害的直接命中;碎片留下酒池,使敌人保持 Tipsy 状态,同时己方女仆在其中恢复法力 |
| Mana Transfer |
1–10 |
普通 |
15s |
友方增益 |
引导最多 5 秒,将你的法力转移给准星下的玩家或女仆;消耗的法力比交付的多约 20%。在 Magic Support 任务中,女仆会对法力低下的友方施放此法术 |
| Summon Maid |
1–6 |
罕见 |
150s |
—— |
召唤一支临时女仆小队,持续 10 分钟。女仆永远不会自行施放此法术 |
烙印引爆与 Brewsurge
目前该学派中“玩家 + 女仆”协作最清晰的体现:
- 使用 Crescent Brand(新月烙印)标记敌人(基础持续 12 秒,每级增加 1 秒)。
- 对其造成任何 Winefox Hex 伤害——Foxshade Wisps、Foxshade Ambush 的咬击以及 Vintner's Bomb 的直接命中均符合条件。
- 烙印立即引爆:伤害 = 10 基础值 + 施加该烙印时的法术强度。
- 由玩家引爆:3 格半径,不连锁;
- 由你自己的女仆引爆:伤害 ×1.5,4 格半径(在玩家 Brewsurge 满层时为 5 格),并且可以 连锁引爆 下一个被标记的目标。
- 每次引爆为玩家提供一层 Brewsurge:刷新周期为 10 秒,最多叠加 3 层,每层提供 +10% 学派法术强度。女仆的引爆同样为玩家计入层数。
如果烙印自然过期,会在 2 格范围内进行一次小规模的自爆(造成 3 点原版魔法伤害,不提供 Brewsurge 层数,也不连锁)。
简而言之:玩家负责标记,女仆负责引爆——保持引爆不断,确保 Brewsurge 永不中断。
Tipsy(微醺)
Tipsy 是一种中立效果。它不造成伤害,但处于其影响下的生物:
- 移动速度降低 30%(随效果等级缩放);
- 行走时会摇晃,且朝向会随机抖动(玩家不受抖动影响,因为其视角位于客户端侧);
- 发射箭矢和其他投射物时严重偏离目标。
你自己的女仆对 Tipsy Mist 和酒池免疫。
Summon Maid(召唤女仆)
这是该学派的一个法术:召唤一支临时女仆小队来协助完成当前战斗。
- 数量随等级增长(1 级时为 2 名,6 级时为 7 名,装备提升法术强度后还会更多),持续时间为 10 分钟。在此期间再次施放法术不会增加另一支小队——而是提前解散现有小队。
- 每名女仆随机生成模型,并根据召唤等级随机分配装备和法术;部分女仆骑着 扫帚 升空,并在召唤者上方盘旋施法。
- 她们 无法交互、不接受指令且从不坐下;只是单纯地与召唤者并肩作战。她们死亡时 不掉落任何装备,时间结束后消失。默认情况下,苦力怕也会主动避开她们。
三种内置配置方案(可通过数据包替换或扩展):
| Loadout |
Weight |
Broom |
Role |
| warrior |
40 |
Never |
主要攻击法术,护甲最重 |
| mage |
35 |
Allowed |
攻击 + 负面效果 + 部分防御 / 移动 |
| support |
25 |
Allowed |
友军治疗 + 友军增益 + 部分攻击 |
每个配置方案根据召唤等级分为三个层级——1–2 级、3–4 级和 5–6 级。更高层级意味着更完整的护甲、更多的法术以及更高的法术等级上限。
目前召唤的女仆强度偏高,后续版本将持续添加平衡限制(数量、持续时间、允许的法术等均可能调整)。
若要现在加以限制,请在配置文件中的 Summoned Maid 下调整上限——默认设置已将其限制为 3 级、史诗稀有度且不学习仅限特定学派的法术(即 Eldritch)。你也可以通过数据包替换这些配置方案。
Addon Support
模组自带以下 Iron's Spells 附加组件的行为分类。已安装的附加组件自动生效;缺失的不会报错(第一行为 Iron's Spells 本体):
| Mod |
Spells classified |
| Monsters & Spellbooks |
107 |
| Iron's Spells 'n Spellbooks (base) |
101 |
| Somake Spells |
66 |
| Apprentice's Codex |
53 |
| Ender's Spells and Stuff: Requiem |
46 |
| Hazen 'N Stuff |
38 |
| Cataclysm: Spellbooks |
34 |
| Magic From The East |
22 |
| Discerning The Eldritch |
21 |
| GTBC's Spellbooks |
16 |
| Peyro's Scythes & Spells |
16 |
| GTBC's Geomancy Plus |
12 |
| Fire's Ender Expansion |
11 |
| SnackPirate's Aeromancy Additions |
10 |
| Dreamless Spells and Spellbooks |
4 |
| Snow Waifu Spell |
1 |
需要多次施放的法术(如 Cataclysm、Requiem、Fire's Ender Expansion 及其他类似情况)有专门的处理逻辑,因此女仆会像玩家一样完成剩余的施法次数。
未被覆盖的法术不会导致错误;女仆只会直接忽略它们。你可以在配置文件中的 Spell Compatibles 下添加分类,或使用数据包标签自行分类。
Configuration
所有内容均为 服务器配置(在多人游戏中以服务器设置为准)。可以从模组列表的配置界面进行编辑,或直接修改 <world>/serverconfig/winefoxs_spellbooks-server.toml 文件。下表第二列为该文件中的键名。
Combat & AI
| Screen name |
Key |
Default |
Notes |
| Maximum spell attack search range |
maxSpellRange |
64 |
目标搜索半径(8–192)。数值越大,扫描开销越高 |
| Start spell casting range |
startSpellRange |
15 |
开始施法的距离(2–64);法术自身的范围会覆盖此值 |
| Maximum mana multiplier |
maxManaMultiplier |
1.0 |
女仆法力上限的整体倍率 |
| Lightning-struck maids regenerate mana 100x faster |
lightningManaRegen |
off |
此类女仆每 0.5 秒回复全部法力条 |
| Walk speed in spell battle |
spellBattleWalkSpeed |
1.0 |
战斗中重新定位时的速度倍率 |
| Max combo delay tick |
maxComboDelayTick |
10 |
两次施法之间的最大等待帧数;数值越低,连招越紧密 |
| Show spell names in spell battle |
showChatBubblesInSpellBattle |
on |
在聊天气泡中显示当前使用的法术 |
| Allow maids to use melee weapons during spell attacks |
meleeAttackInMagicTask |
on |
关闭时,女仆仅施法而不进行近战攻击 |
Flying Maids
| Screen name |
Key |
Default |
| Base chance for air force maid |
airForceBaseChance |
0.1 |
| Air force chance per level |
airForceChancePerLevel |
0.1 |
| Air force follow height |
airForceFollowHeight |
4.0 |
| Air force follow radius |
airForceFollowRadius |
6.0 |
| Air force fly speed |
airForceFlySpeed |
0.4 |
| Minimum air casting distance |
airForceMinAttackRange |
5.0 |
Summoned Maid
| 屏幕名称 |
键值 |
默认值 |
备注 |
| 召唤女仆可携带的最高法术等级 |
summonedMaidMaxSpellLevel |
3 |
取此值与装备配置中的层级上限中较低的一个;仅降低,不提高。10 = 无限制 |
| 召唤女仆可携带的最高法术稀有度 |
summonedMaidMaxSpellRarity |
EPIC |
高于此稀有度的法术将完全离开池子。LEGENDARY = 无限制 |
| 允许召唤女仆携带仅限学习的学派法术(即神秘学) |
summonedMaidAllowEldritch |
off |
这些法术通常需要先由玩家学习才能使用 |
| 苦力怕会逃离召唤女仆 |
creeperAvoidSummonedMaid |
on |
|
Vulpine Anima 晨间礼物
| 屏幕名称 |
键值 |
默认值 |
备注 |
| 启用最大好感度女仆晨间礼物 |
vulpineGiftEnabled |
on |
主开关;其他来源不受影响 |
| 晨间礼物搜索半径 |
vulpineGiftRadius |
8.0 |
在床铺周围搜索符合条件的女仆 |
| 需要正常的完整睡眠周期 |
vulpineGiftRequireFullSleep |
on |
关闭时,因怪物或雷暴而提前醒来也算作有效睡眠 |
法术兼容项
用于将来自附加模组或数据包的法术添加到行为类别中。七个类别各自拥有一个“Extra … spell ids”列表;屏幕名称和键值请参阅 Seven Behaviour Categories。另有四项在此处:
| 屏幕名称 |
键值 |
备注 |
| 额外召唤法术 ID |
extraSummonSpells |
将某个法术标记为召唤类;不影响可用性 |
| 女仆应重新施放的法术 ID |
maidShouldRecastSpells |
女仆会继续完成此处列出的法术剩余施法次数 |
| 女仆开始施放的每种法术范围 |
extra_spell_casting_range |
按法术 ID 覆盖施法起始距离 |
| 额外法术效果注册表 |
extra_spell_caused_effects |
声明某法术施加哪种生物效果 |
⚠️ 本部分只能添加,不能移除,且更改需要重启游戏。若要阻止女仆施放某法术,请参阅下一节。
数据包自定义
排除法术
女仆可施放哪些法术由法术标签决定。若要禁用某一个(例如高友军伤害的 AoE),请通过数据包将其从对应标签中移除。
创建 <world>/datapacks/<your-pack>/pack.mcmeta:
{ "pack": { "pack_format": 48, "description": "Maid spell blacklist" } }
然后创建 <your-pack>/data/winefoxs_spellbooks/tags/irons_spellbooks/spells/attack_spells.json:
{
"values": [],
"remove": [
{ "id": "irons_spellbooks:fireball" }
]
}
运行 /reload 即可生效:法术目录会立即重建,已加载的女仆也会重新扫描其法术列表。
行为标签(每个法术仅属于一个标签;只需将其从该标签中移除即可 —— 各标签名称见 Seven Behaviour Categories)。
要找出某个法术所属的标签,请使用任意归档工具打开此模组的 jar 文件,并查看 data/winefoxs_spellbooks/tags/irons_spellbooks/spells/ 目录 —— 其中包含七个行为标签和两个标记标签,均以 JSON 格式保存了模组默认的归类信息。复制其中一个作为你自定义数据包的起点。
标记标签 —— 从 summon_spells 或 maid_should_recast_spells 中移除条目,只会移除召唤 / 多重施法的标记;女仆仍会施放该法术。
⚠️ 配置文件的额外项会在标签之后合并,因此不要在 extraAttackSpells 等配置项中列出相同的法术 ID —— 否则它会被直接重新添加回来。
施法范围与施加效果
位于 data/<namespace>/magic_maid_spell_data/ 下:
default_casting_range.json —— 女仆开始施放每个法术的距离;
default_caused_effect.json —— 声明某法术施加哪种生物效果,以便女仆判断是否应对目标重新施加增益或清除减益。
两者均在执行 /reload 后生效;配置文件中的匹配条目优先级高于数据包。
召唤女仆装备配置
位于 data/<namespace>/summoned_maid_loadouts/<name>.json;最小骨架如下:
{
"weight": 40,
"broom_mode": "default",
"tiers": [
{
"conditions": [
{ "condition": "winefoxs_spellbooks:summon_level", "min": 1, "max": 2 }
],
"spell_level_cap": 3,
"weapon": {
"rolls": 1,
"entries": [ { "type": "tag", "expand": true, "name": "modid:weapon_tag" } ]
},
"armor": {
"helmet": {
"chance": 0.3,
"pools": [ { "rolls": 1, "entries": [ { "type": "tag", "expand": true, "name": "modid:helmet_tag" } ] } ]
}
},
"spells": {
"attack": {
"rolls": { "min": 1, "max": 2 },
"entries": [ { "type": "tag", "expand": true, "name": "modid:attack_spells" } ]
}
}
}
]
}
字段说明:
weight —— 选择权重;设为 0 则禁用该装备配置;
broom_mode —— always / never / default(按概率随机);
model_filter(可选)—— { "mode": "all" | "allowlist" | "denylist", "models": [...] };
tiers[].conditions —— 目前支持 winefoxs_spellbooks:summon_level 的 min / max 范围条件;
tiers[].spell_level_cap —— 该层级的法术等级上限,与配置选项结合时取较低值;
tiers[].weapon / armor / spells —— 物品与法术池;rolls 接受整数或 { "min": n, "max": m },条目引用物品标签 / 法术标签;
spells 下的键名为七个行为类别:attack、defense、movement、support、positive_effect、negative_effect、support_other(见 Seven Behaviour Categories)。
内置的 warrior.json、mage.json 和 support.json 可作为模板使用。
晨间礼物掉落
晨间礼物的内容来自战利品表 winefoxs_spellbooks:gameplay/maid_morning_gift(默认情况下有 95% 的概率获得一个 Vulpine Anima);整合包可以覆盖它以发放其他物品。
命令
两者均需权限等级 2:
/wsb cast <targets> <spell> [level]
/wsb summon [target] [count] [summonLevel] [loadout] [duration] [airForce]
/wsb cast — 让指定实体施放法术,等级为 1–10。它仅跳过施法前的可用性检查,但仍会消耗法力值,因此请在测试前提升目标的法力上限。
/wsb summon — 若无参数,则为自身召唤。count(数量)范围 1–10,summonLevel(召唤等级)范围 1–10,loadout(装备配置)接受一个装备配置 ID(若留空则随机),duration(持续时间)单位为秒(-1 表示永久),airForce 强制开启或关闭骑扫帚功能。
兼容性与集成
- Curios — 法术书占用 Iron's Spells 定义的“法术书”槽位;女仆最多佩戴一件。也支持作为替代方案的 Accessories 模组。
- Jade — 指向一名女仆可查看其法力值;指向一名被召唤的女仆还可查看其法术数量,按住 Shift 键可显示完整列表。
- JEI — 本模组中的每个物品都有信息页面(右上角的“i”图标)。
- Advanced Loot Info — 本模组注入宝箱的战利品以及女仆的晨礼,均会在 JEI / EMI / REI 中显示其掉落概率。
- Patchouli — 在 Touhou Little Maid 的 Memorizable Gensokyo 指南中,“Winefox's Spellbooks”分类下共有 12 个引导条目,涵盖法力、施法媒介、任务、动画、模组集成、故障排除、学校及其物品与法术(包括被召唤的女仆)、数据包、命令和配置。
常见问题
她完全不施放法术。 请按顺序检查:
- 她的任务是否设置为“魔法攻击”或“魔法辅助”?
- 法术书是否在配饰槽位中,且其法术槽位是否已刻印?
- 该法术是否属于某个行为标签?不属于任何行为类别的法术将被忽略。
- 是否有足够的法力值,且冷却时间是否已结束?出现“法术充能中”气泡意味着上述两者之一未满足。
- 敌人是否超出了“最大法术攻击搜索范围”,或者她尚未接近到“开始施法范围”?
她的范围伤害(AoE)法术持续击中友军。 请使用数据包从对应行为标签中移除该法术,并运行 /reload。
我的配置更改没有生效。 “法术兼容性”下的更改需要重启游戏;数据包侧的更改只需运行 /reload 即可。
为什么女仆不施放“召唤女仆”法术? 这是设计如此——该法术专为玩家保留(以及 /wsb summon 命令);女仆不会使用它来召唤另一队女仆。
我的辅助女仆从不治疗任何人。 “魔法辅助”仅对同队目标生效,并且她还需要拥有匹配类别的法术(盟友治疗 / 盟友增益),才会切换到辅助行为模式。
依赖与版本要求
施法动画仅在使用了 GeckoLib 模型的女仆上生效;其他模型正常施法但不会播放动画。
许可证
依据 MIT License 发布。您可以自由使用、修改和分发本资源,前提是保留原始版权声明。
Winefox's Spellbooks
中文说明 · Minecraft 1.21.1 · NeoForge · MIT
Bridges Touhou Little Maid and Iron's Spells 'n Spellbooks: maids read spellbooks, manage mana and pick their own spells, and players can summon maids onto the battlefield in return.
Mod Overview
Winefox's Spellbooks turns the maids of Touhou Little Maid into real spellcasters: put a spellbook in her accessory slot and she picks spells to suit the situation, budgets her mana, respects cooldowns, strafes and repositions — and plays a casting animation if she uses a GeckoLib model.
Beyond that main line, the mod also provides:
- Winefox Hex — a standalone school with its own damage type and attributes, built around player–maid teamwork: the player opens, the maid follows up, and fighting together pays far better than fighting apart;
- Addon compatibility — behaviour classifications for several hundred spells across 15 Iron's Spells addons. Installed addons take effect automatically; missing ones cause no errors.
About the name: casting animations only play on GeckoLib maid models, and "Winefox" is one such model.
Quick Start
- Install the dependencies: Touhou Little Maid and Iron's Spells 'n Spellbooks, plus their own dependencies (Curios, GeckoLib).
- Install this mod.
- Give the maid a spellbook with spells inscribed and put it in her accessory slot, or give her an imbued weapon / armour piece.
- Open the maid GUI and switch her task to Magic Attack or Magic Support.
- With Show spell names in spell battle enabled (the default), the spell she is casting appears above her head.
Maid Spellcasting
Casting Media
Her main hand, armour slots, maid accessory slots and Curios slots are all scanned; spells in any "spell container" (spellbook, imbued weapon, imbued armour) enter her spell list.
- Only one spellbook takes effect at a time, same as for players; imbued gear is not subject to that limit and stacks.
- Spell level = the spell's own level + the Affinity bonus from gear.
- A spell that belongs to no behaviour category is ignored — the most common reason for "she just won't cast that spell". See Seven Behaviour Categories.
- Any change of equipment recalculates the spell list immediately; after
/reload updates the spell tags, loaded maids rescan as well.
The Two Tasks
| Task |
Categories used |
Target |
| Magic Attack |
Attack / Defense / Movement / Self-heal / Negative Effect |
Her own hostile targets |
| Magic Support |
Defense / Self-heal / Ally Buff / Negative Effect / Ally Heal |
Whatever her owner and allies are fighting |
Magic Attack is the regular combat role: seek targets, reposition, cast, and optionally finish with a melee weapon.
Magic Support never starts a fight. It heals, buffs and cleanses the owner and same-team creatures (including other maids of the same owner), and debuffs enemies along the way.
Both tasks share the same unlock condition: an imbued weapon in the main hand or armour slots, or a spellbook with inscribed spells in an accessory slot.
Seven Behaviour Categories
A maid's spell list is split into seven behaviour categories; the in-game config screen uses these same names. Each category also has an English field name in the spell tags and the loadout datapack:
| Category |
Spell tag |
Config option (key) |
Loadout spells field |
| Attack |
attack_spells |
Extra attack spell ids (extraAttackSpells) |
attack |
| Defense |
defense_spells |
Extra defense spell ids (extraDefenseSpells) |
defense |
| Movement |
movement_spells |
Extra movement spell ids (extraMovementSpells) |
movement |
| Self-heal |
support_spells |
Extra self-heal spell ids (extraSupportSpells) |
support |
| Ally Buff |
positive_effect_spells |
Extra ally buff spell ids (extraPositiveEffectSpells) |
positive_effect |
| Negative Effect |
negative_effect_spells |
Extra negative effect spell ids (extraNegativeEffectSpells) |
negative_effect |
| Ally Heal |
support_effect_spells |
Extra ally heal spell ids (extraSupportEffectSpells) |
support_other |
Two further marker tags take no part in classification: summon_spells (summons) and maid_should_recast_spells (needs several casts). They only mark a spell; they do not decide whether a maid may cast it.
Mana
- A maid has her own mana bar, independent of the player's; point at her with Jade to see it.
- The cap uses the same formula as for players: "Max Mana" affixes on staves and mage gear apply, and the Maximum mana multiplier option scales the whole thing.
- Natural regeneration defaults to roughly 2% per second, modified by mana regen affixes.
- Having been struck by lightning is a permanent flag saved on the maid — one strike and it never wears off. With Lightning-struck maids regenerate mana 100x faster enabled, such maids refill the entire bar every 0.5 seconds, which is effectively unlimited mana. That option is off by default.
How a Maid Picks a Spell
She makes a decision every short interval (upper bound set by Max combo delay tick, 10 ticks by default):
- Drop what cannot be cast right now: anything short on mana or still on cooldown. If a multi-cast spell is unfinished, she finishes it first.
- Weight every behaviour category, pick one category by weighted random, then pick a spell within it with equal probability.
Rules of thumb for the weights:
- The lower an ally's health, the higher the Ally Heal weight; a dying ally outranks everything else;
- With allies nearby, support categories dominate the round and combat categories sit it out;
- The lower her own health, the higher the Defense and Movement weights;
- With no line of sight to the target she rarely picks attack spells, and repositions instead;
- If an ally lacks a buff, or carries a debuff that can be cleansed, the matching spell's weight rises sharply;
- If Defense / Negative Effect was picked last round, both weights drop, so she does not spam the same category.
The search radius comes from Maximum spell attack search range (64 blocks by default), and enemies carrying a Crescent Brand are preferred. She has to close to Start spell casting range (15 blocks by default), or the spell's own casting distance, before she starts.
Other combat behaviour:
- Positioning: backs off inside half her range, circles in place while in range and in sight, moves slower while casting, and stops repositioning when told to sit.
- Melee finisher: controlled by Allow maids to use melee weapons during spell attacks, on by default.
Casting Animations
The mod wires Iron's Spells' casting animations into Touhou Little Maid's animation system; maids on GeckoLib models play the matching animation when they cast.
Model pack authors can define animation clips prefixed with iss: in their own animation files; for the key names see Touhou Little Maid's iss.animation.json.
The animation assets are converted from Iron's Spells' originals. A few poses may have bone misalignment; these will keep being fixed in later versions.
Winefox Hex School
Winefox Hex is the standalone school added by this mod, with its own damage type and two attributes (Winefox Hex Spell Power / Winefox Hex Magic Resist), stackable with mage gear affixes from Iron's Spells itself.
It is designed for "player + maid": its spells pass value back and forth between the two — the player brands, the maid follows up and detonates, and the mantle and cleanse the player casts also cover nearby maids. Solo play works, but a squad of maids is its complete form.
The school is still growing; later versions will keep adding new directions.
School Items
| Item |
Notes |
Obtained from |
| Vulpine Anima |
The school's Focus: the crafting ingredient for its scrolls at the Scroll Forge, and a casting implement for higher-tier spells |
Morning gift from a max-favorability maid (95%); dropped by fairies killed by maids (tamed maid 25% / summoned maid 35%, +5% per level of Looting); chests: woodland mansion 25%, nether fortress 20%, stronghold library 15%, plus Iron's Spells' Pyromancer Tower, Catacombs and Citadel library |
| Crescent Blood Vintage |
Drinkable. A maid always gains Foxfire Boost for 10 seconds: new cooldowns count as 10% of normal, and existing cooldowns are cut by 90% the moment she drinks. Anyone else has a 60% chance of Nausea, Poison and Mana Disruption respectively |
Village houses / temples, pillager outposts, woodland mansions, plus Iron's Spells' various casks, troves and food barrels |
The school's scrolls also appear by chance in stronghold libraries, nether fortresses and Iron's Spells' Pyromancer Tower, Catacombs and Citadel library chests. The mod ships a creative tab holding both items and every level of every school scroll.
Spell List
| Spell |
Level |
Rarity |
Cooldown |
Maid category |
Notes |
| Crescent Brand |
1–8 |
Common |
10s |
Negative Effect |
Brands a single target with a 16-block ray; 12s base, +1s per level. The brand deals no damage itself — it is a fuse waiting to be lit |
| Foxshade Wisps |
3–8 |
Uncommon |
15s |
Attack |
Multi-cast: each cast releases one homing foxshade, up to 3 within a 4-second window, flanking from both sides; damage per wisp = spell power × 2 |
| Foxshade Ambush |
1–4 |
Common |
8s |
Defense |
Marks yourself for 10 seconds; the next time you hit a hostile creature, a foxshade lands and bites (damage = spell power). Best cast before a fight |
| Crescent Mantle |
3–8 |
Uncommon |
30s |
Defense |
Grants yourself and your own maids within 6 blocks both damage absorption (Absorption II, 4s base, upgraded to Absorption III from level 6) and true invisibility (3s base, gear hidden as well, drops aggro); both durations +0.5s per level |
| Decant the Bind |
2–5 |
Common |
20s |
Self-heal |
Halves the duration of debuffs on yourself, or on one of your maids within 16 blocks in your line of sight; at max level (5) removes them outright |
| Tipsy Mist |
1–8 |
Common |
12s |
Negative Effect |
After a 1-second cast, spreads a 5-block-radius mist at the impact point (up to 24 blocks away) for 6s base, +0.5s per level; from level 5 it applies Tipsy II. Your own maids are immune |
| Vintner's Bomb |
1–8 |
Common |
8s |
Attack |
Throws a bottle dealing school damage on a direct hit; the shards leave a wine pool that keeps enemies Tipsy while your own maids regain mana in it |
| Mana Transfer |
1–10 |
Common |
15s |
Ally Buff |
Channels for up to 5 seconds, transferring your mana to the player or maid under your crosshair; it costs about 20% more mana than it delivers. On the Magic Support task, maids cast it on allies who are low on mana |
| Summon Maid |
1–6 |
Uncommon |
150s |
—— |
Summons a squad of temporary maids for 10 minutes. Maids never cast this spell themselves |
Brand Detonation and Brewsurge
Currently the clearest expression of "player + maid" teamwork in the school:
- Brand an enemy with Crescent Brand (12s base, +1s per level).
- Deal any Winefox Hex damage to it — Foxshade Wisps, the Foxshade Ambush bite and a direct Vintner's Bomb hit all qualify.
- The brand detonates at once: damage = 10 base + the spell power at the time it was applied.
- Detonated by the player: 3-block radius, no chaining;
- Detonated by your own maid: ×1.5 damage, 4-block radius (5 blocks at full player Brewsurge), and it can chain-detonate the next branded target.
- Every detonation gives the player one stack of Brewsurge: rolling 10-second refresh, up to 3 stacks, each granting +10% school spell power. Maid detonations count for the player as well.
A brand that simply expires does a small self-detonation within 2 blocks (3 points of vanilla magic damage, no Brewsurge stack, no chaining).
In short: the player brands, the maid detonates — keep the detonations flowing and Brewsurge never lapses.
Tipsy
Tipsy is a neutral effect. It deals no damage, but a creature under it:
- moves 30% slower (scaled by effect level);
- staggers while walking and has its facing jitter randomly (players are exempt from the jitter, since their view is client-side);
- fires arrows and other projectiles far off target.
Your own maids are immune to Tipsy Mist and wine pools.
Summon Maid
One of the school's spells: summons a squad of temporary maids to help finish the current fight.
- The count grows with level (2 at level 1, 7 at level 6, and higher still with spell power gear) and they last 10 minutes. Casting the spell again during that time does not add another squad — it dismisses the existing one early.
- Each maid rolls a model at random and rolls gear and spells by summon level; some ride a broom into the air and cast while circling above the summoner.
- They cannot be interacted with, take no orders and never sit; they simply fight alongside the summoner. They drop no gear on death and vanish when their time runs out. By default creepers also actively avoid them.
Three built-in loadouts (replaceable or extendable by datapack):
| Loadout |
Weight |
Broom |
Role |
| warrior |
40 |
Never |
Mostly attack spells, heaviest armour |
| mage |
35 |
Allowed |
Attack + negative effect + some defense / movement |
| support |
25 |
Allowed |
Ally heal + ally buff + some attack |
Each loadout has three tiers by summon level — 1–2, 3–4 and 5–6. Higher tiers mean more complete armour, more spells and a higher spell level cap.
Summoned maids are currently on the strong side, and later versions will keep adding balance limits (count, duration, permitted spells may all change).
To rein them in now, adjust the caps under Summoned Maid in the config — the defaults already limit them to level 3, Epic rarity and no learned-only school (i.e. Eldritch) spells. You can also swap the loadouts out with a datapack.
Addon Support
The mod ships behaviour classifications for the Iron's Spells addons below. Installed addons take effect automatically; missing ones cause no errors (the first row is Iron's Spells itself):
| Mod |
Spells classified |
| Monsters & Spellbooks |
107 |
| Iron's Spells 'n Spellbooks (base) |
101 |
| Somake Spells |
66 |
| Apprentice's Codex |
53 |
| Ender's Spells and Stuff: Requiem |
46 |
| Hazen 'N Stuff |
38 |
| Cataclysm: Spellbooks |
34 |
| Magic From The East |
22 |
| Discerning The Eldritch |
21 |
| GTBC's Spellbooks |
16 |
| Peyro's Scythes & Spells |
16 |
| GTBC's Geomancy Plus |
12 |
| Fire's Ender Expansion |
11 |
| SnackPirate's Aeromancy Additions |
10 |
| Dreamless Spells and Spellbooks |
4 |
| Snow Waifu Spell |
1 |
Spells that need several casts (Cataclysm, Requiem, Fire's Ender Expansion and others) have dedicated handling, so maids finish the remaining casts just like players do.
Spells that are not covered cause no errors; maids simply never pick them. Add a classification under Spell Compatibles in the config, or classify them yourself with datapack tags.
Configuration
Everything is server config (in multiplayer the server's settings win). Edit it from the config screen in the mod list, or in <world>/serverconfig/winefoxs_spellbooks-server.toml. The second column below is the key in that file.
Combat & AI
| Screen name |
Key |
Default |
Notes |
| Maximum spell attack search range |
maxSpellRange |
64 |
Target search radius (8–192). Larger values cost more scanning |
| Start spell casting range |
startSpellRange |
15 |
Distance at which casting starts (2–64); a spell's own range overrides it |
| Maximum mana multiplier |
maxManaMultiplier |
1.0 |
Overall multiplier on the maid's mana cap |
| Lightning-struck maids regenerate mana 100x faster |
lightningManaRegen |
off |
Such maids refill their whole bar every 0.5 seconds |
| Walk speed in spell battle |
spellBattleWalkSpeed |
1.0 |
Speed multiplier while repositioning in combat |
| Max combo delay tick |
maxComboDelayTick |
10 |
Longest wait between two casts; lower chains spells more tightly |
| Show spell names in spell battle |
showChatBubblesInSpellBattle |
on |
Shows the current spell in a chat bubble |
| Allow maids to use melee weapons during spell attacks |
meleeAttackInMagicTask |
on |
When off, maids only cast and never melee |
Flying Maids
| Screen name |
Key |
Default |
| Base chance for air force maid |
airForceBaseChance |
0.1 |
| Air force chance per level |
airForceChancePerLevel |
0.1 |
| Air force follow height |
airForceFollowHeight |
4.0 |
| Air force follow radius |
airForceFollowRadius |
6.0 |
| Air force fly speed |
airForceFlySpeed |
0.4 |
| Minimum air casting distance |
airForceMinAttackRange |
5.0 |
Summoned Maid
| Screen name |
Key |
Default |
Notes |
| Highest spell level a summoned maid may carry |
summonedMaidMaxSpellLevel |
3 |
Takes the lower of this and the loadout's tier cap; only reduces, never raises. 10 = unlimited |
| Highest spell rarity a summoned maid may carry |
summonedMaidMaxSpellRarity |
EPIC |
Spells above this rarity leave the pools entirely. LEGENDARY = unlimited |
| Allow summoned maids to carry learned-only school spells, i.e. Eldritch |
summonedMaidAllowEldritch |
off |
These normally require a player to learn them first |
| Creepers flee from summoned maids |
creeperAvoidSummonedMaid |
on |
|
Vulpine Anima Morning Gift
| Screen name |
Key |
Default |
Notes |
| Enable max-favorability maid morning gift |
vulpineGiftEnabled |
on |
Master switch; other sources are unaffected |
| Morning gift search radius |
vulpineGiftRadius |
8.0 |
Searched around the bed for an eligible maid |
| Require a normal full sleep cycle |
vulpineGiftRequireFullSleep |
on |
When off, waking early to monsters or thunder also counts |
Spell Compatibles
Used to add spells from addons or datapacks to the behaviour categories. Each of the seven categories has an "Extra … spell ids" list; for the screen names and keys see Seven Behaviour Categories. Four more entries live here:
| Screen name |
Key |
Notes |
| Extra summon spell ids |
extraSummonSpells |
Marks a spell as a summon; does not affect availability |
| Maid should recast spell ids |
maidShouldRecastSpells |
Maids finish the remaining casts of the spells listed here |
| Maid start casting range every spell id |
extra_spell_casting_range |
Overrides the casting start distance per spell id |
| Extra spell cause effect registry |
extra_spell_caused_effects |
Declares which mob effect a spell applies |
⚠️ This section can only add, never remove, and changes need a game restart. To stop a maid casting a spell, see the next section.
Datapack Customisation
Excluding Spells
Which spells a maid may cast is decided by spell tags. To ban one (a friendly-fire heavy AoE, say), remove it from its tag with a datapack.
Create <world>/datapacks/<your-pack>/pack.mcmeta:
{ "pack": { "pack_format": 48, "description": "Maid spell blacklist" } }
Then <your-pack>/data/winefoxs_spellbooks/tags/irons_spellbooks/spells/attack_spells.json:
{
"values": [],
"remove": [
{ "id": "irons_spellbooks:fireball" }
]
}
Run /reload and it takes effect: the spell catalog rebuilds at once and loaded maids rescan their spell lists.
Behaviour tags (a spell belongs to exactly one; removing it from that one is enough — see Seven Behaviour Categories for the tag name of each category).
To find out which tag holds a given spell, open this mod's jar with any archiver and look in data/winefoxs_spellbooks/tags/irons_spellbooks/spells/ — the seven behaviour tags and the two marker tags are all there as json, holding the mod's default classification. Copy one as the starting point for your own pack.
Marker tags — removing an entry from summon_spells or maid_should_recast_spells only drops the summon / multi-cast marker; the maid still casts the spell.
⚠️ Config extras are merged after tags, so do not list the same spell id in extraAttackSpells and friends — it would be added straight back.
Casting Range and Applied Effects
Under data/<namespace>/magic_maid_spell_data/:
default_casting_range.json — the distance at which a maid starts casting each spell;
default_caused_effect.json — declares which mob effect a spell applies, so a maid can tell whether to re-apply a buff or cleanse a debuff on a target.
Both take effect on /reload; matching entries in the config file take priority over the datapack.
Summoned Maid Loadouts
Under data/<namespace>/summoned_maid_loadouts/<name>.json; minimal skeleton:
{
"weight": 40,
"broom_mode": "default",
"tiers": [
{
"conditions": [
{ "condition": "winefoxs_spellbooks:summon_level", "min": 1, "max": 2 }
],
"spell_level_cap": 3,
"weapon": {
"rolls": 1,
"entries": [ { "type": "tag", "expand": true, "name": "modid:weapon_tag" } ]
},
"armor": {
"helmet": {
"chance": 0.3,
"pools": [ { "rolls": 1, "entries": [ { "type": "tag", "expand": true, "name": "modid:helmet_tag" } ] } ]
}
},
"spells": {
"attack": {
"rolls": { "min": 1, "max": 2 },
"entries": [ { "type": "tag", "expand": true, "name": "modid:attack_spells" } ]
}
}
}
]
}
Fields:
weight — selection weight; 0 disables the loadout;
broom_mode — always / never / default (roll the chance);
model_filter (optional) — { "mode": "all" | "allowlist" | "denylist", "models": [...] };
tiers[].conditions — currently supports the min / max range of winefoxs_spellbooks:summon_level;
tiers[].spell_level_cap — the tier's spell level cap, combined with the config option by taking the lower;
tiers[].weapon / armor / spells — item and spell pools; rolls accepts an integer or { "min": n, "max": m }, and entries reference item tags / spell tags;
- the keys under
spells are the seven behaviour categories: attack, defense, movement, support, positive_effect, negative_effect, support_other (see Seven Behaviour Categories).
The built-in warrior.json, mage.json and support.json work as templates.
Morning Gift Drops
The morning gift's contents come from the loot table winefoxs_spellbooks:gameplay/maid_morning_gift (95% for one Vulpine Anima by default); modpacks can override it to hand out something else.
Commands
Both require permission level 2:
/wsb cast <targets> <spell> [level]
/wsb summon [target] [count] [summonLevel] [loadout] [duration] [airForce]
/wsb cast — makes the given entities cast a spell, level 1–10. It only skips the pre-cast availability checks and still consumes mana, so raise the target's mana cap before testing.
/wsb summon — with no arguments, summons for yourself. count 1–10, summonLevel 1–10, loadout takes a loadout id (random if left out), duration is in seconds (-1 for permanent), and airForce forces broom riding on or off.
Compatibility & Integration
- Curios — spellbooks occupy the spellbook slot defined by Iron's Spells; a maid wears at most one. Accessories is supported as an alternative.
- Jade — point at a maid to see her mana; point at a summoned maid to also see her spell count, and hold Shift for the full list.
- JEI — every item from this mod has an info page (the "i" in the top right).
- Advanced Loot Info — the loot this mod injects into chests, and the maid morning gift, both show their odds in JEI / EMI / REI.
- Patchouli — 12 guide entries under the "Winefox's Spellbooks" category of Touhou Little Maid's Memorizable Gensokyo, covering mana, casting media, tasks, animations, mod integration, troubleshooting, the school with its items and spells (summoned maids included), datapacks, commands and config.
FAQ
She does not cast at all. Check in order:
- Is her task set to Magic Attack / Magic Support?
- Is the spellbook in an accessory slot, and are its spell slots inscribed?
- Does the spell belong to a behaviour tag? Spells outside every behaviour category are ignored.
- Is there enough mana, and is the cooldown over? A "Spell reloading" bubble means one of the two.
- Is the enemy beyond Maximum spell attack search range, or has she not yet closed to Start spell casting range?
Her AoE spells keep hitting allies. Remove that spell from its behaviour tag with a datapack and run /reload.
My config change did nothing. Changes under Spell Compatibles need a game restart; datapack-side changes only need /reload.
Why won't maids cast Summon Maid? By design — that spell is reserved for players (and /wsb summon); a maid will not use it to summon another squad of maids.
My support maid never heals anyone. Magic Support only acts on same-team targets, and she also needs spells in the matching categories (Ally Heal / Ally Buff) before she switches to support behaviour.
Requirements & Versions
Casting animations only work on maids using a GeckoLib model; other models cast normally but play no animation.
License
Released under the MIT License. You are free to use, modify and distribute it, provided you retain the original copyright notice.
评论 0
登录后参与评分
还没有评论,来抢沙发吧