Iron's Spellbooks Tweaks
为 Iron's Spells 'n Spellbooks 提供的配置调整。添加了 Iron's 未暴露的 TOML 配置选项。
功能说明
Iron's Spellbooks 在其 serverconfig 中仅提供少量配置选项(法力回复倍率、生成百分比、剑类切换开关)。在 iron431 的 GitHub 上,有多个开放议题请求对法力回复速率、初始法力和冷却时间提供更直接的控制(#161, #162, #391),但这些问题尚未得到解决。
本插件在不修改 Iron's serverconfig 的情况下填补了这些空白(根据 #1033,该配置文件存在已知的多人游戏同步错误)。它使用位于 config/irons_spellbooks_tweaks-server.toml 的独立 TOML 文件,并通过属性修饰符和挂钩到 Iron's 公开事件来应用设置。
配置选项
Mana(法力)
baseManaRegenPercent: 登录时添加到 MANA_REGEN 属性的额外值
startingMaxMana: 登录时添加到 MAX_MANA 属性的额外值
disableManaRegen: 完全禁用被动法力回复
Spell timing(施法计时)
cooldownReductionBonus: COOLDOWN_REDUCTION 属性的额外值
castTimeReductionBonus: CAST_TIME_REDUCTION 属性的额外值
Spell scaling(法术缩放)
spellPowerMultiplier: 缩放所有玩家的 SPELL_POWER 属性,范围 0.0 到 10.0。伤害提示将反映缩放后的数值。
buffDurationMultiplier: 缩放来自 Iron's Spellbooks 及其附加模组的效果持续时间,范围 0.0 到 10.0。原版药水、食物效果和信标效果不受影响。物品栏中的激活效果倒计时显示实际时间,而法术提示显示未经修改的基础值。
buffDurationNamespaces: 受 buffDurationMultiplier 缩放效果的模组命名空间列表。默认覆盖 Iron's Spellbooks 以及 Cataclysm Spellbooks、dacxirons、GameTechBC's Spellbooks、GTBC's Geomancy Plus、Hazen 'n Stuff、Illage and Spell-age 和 Traveloptics。
Restrictions(限制)
spellCastingDisabledDimensions: 禁止施法的维度 ID 列表
maxSpellRarity: 限制玩家可施放的最高法术稀有度(怪物施放者不受此限制)
inscriptionBlacklist: 无法被铭刻的法术 ID 列表
Black hole(黑洞)
blackholeImmunity: 针对每种实体类型的抗拉扯值,范围 0.0 到 1.0
Summon scaling(召唤缩放)
summonVexHpMultiplier, summonVexDamageMultiplier: 缩放 summoned vexes(小恶魂)的生命值和伤害
raiseDeadHpMultiplier, raiseDeadDamageMultiplier: 缩放通过 Raise Dead(起死回生)召唤的骷髅和僵尸的生命值和伤害
summonPolarBearHpMultiplier, summonPolarBearDamageMultiplier: 缩放 summoned polar bears(北极熊)的生命值和伤害
summonHorseHpMultiplier: 缩放 summoned horses(马)的生命值
summonSwordsDamageMultiplier: 缩放 Summon Swords(召唤利剑)的伤害
这些倍率与其他模组施加的生命值/伤害缩放呈乘法叠加。
每世界配置覆盖 (v1.5+)
config/ 目录下的全局配置文件是真理来源。若要自定义特定世界,请将全局文件的副本放入该世界的 serverconfig/ 文件夹并进行编辑。缺失的键将回退到全局配置。
/isstweaks copyconfig 命令(仅限 OP)可将全局配置复制到当前世界的 serverconfig/ 文件夹中,以便在游戏中设置覆盖配置。如果存在现有的每世界配置文件,则不会覆盖它。
每玩家进度解锁
基于数据包的解锁系统允许整合包开发者将法术、维度和加成绑定到成就或击杀 Boss 的条件上。JSON 文件位于 data/<namespace>/isstweaks/unlocks/<id>.json。支持 advancement(成就)和 entity_kill(实体击杀)触发器。
可用的授予项:
rarity_cap: 提高玩家允许的最高稀有度上限,超越全局 maxSpellRarity 的限制
cooldown_reduction_bonus: 向玩家的 cooldown reduction(冷却缩减)属性添加固定值
cast_time_reduction_bonus: 向玩家的 cast time reduction(施法时间缩减)属性添加固定值
max_mana_bonus: 向玩家的 MAX_MANA 属性添加固定整数
mana_regen_bonus: 向玩家的 MANA_REGEN 属性添加固定值
remove_dimensions: 使玩家免于受到这些维度的施法黑名单限制
remove_inscriptions: 使玩家免于受到这些法术的铭刻黑名单限制
如果玩家获得多个授予相同数值加成的解锁,它们会累加。如果需要减法,也可以使用负值。每个解锁 JSON 都有一个可选的 requirement_text 字段作为提示字符串,requirements 命令会在聊天中显示该信息。
命令
仅限 OP:
- /isstweaks grant <player> <unlock_id>: 手动授予一个解锁
- /isstweaks revoke <player> <unlock_id>: 从已授予集合中撤销
- /isstweaks status <player>: 显示当前进度
- /isstweaks reset <player>: 清除所有进度数据
- /isstweaks copyconfig: 将全局配置复制到当前世界的 serverconfig 文件夹
对所有玩家开放:
- /isstweaks requirements spell <spell_id>: 显示特定法术的解锁要求。如果玩家已满足条件,则前缀为 [Unlocked]。
- /isstweaks requirements rarity <rarity>: 显示特定稀有度等级的解锁要求。当玩家的上限达到或高于查询等级时,同样显示 [Unlocked] 指示器。
关于与 Iron's 每法术配置的重叠说明
Iron's Spellbooks 在 config/irons_spellbooks_spell_config/ 处提供每法术 JSON 配置文件,用于调整单个法术(最高等级、法力消耗倍率、冷却时间)。本模组不触及这些配置。maxSpellRarity 选项只是一个应用于每次施法时所有法术的单一稀有度门控,无需进行每法术编辑。它设置起来更快,但不如每法术调整精确。选择适合你的方式,或者两者结合使用。
面向整合包制作者
将 jar 文件放入整合包的 mods 文件夹,编辑 config/irons_spellbooks_tweaks-server.toml,并将配置文件随整合包一起分发。所有选项均为服务器端,因此客户端不需要匹配的配置。
兼容性
Minecraft 1.20.1 Forge 和 Minecraft 1.21.1 NeoForge
Iron's Spells 'n Spellbooks 3.0.0+ (1.20.1) 或 1.21.1-3.15.0+ (1.21.1)
软依赖,即使没有 Iron's Spellbooks,模组也能正常加载
预计与其他 Iron's 附加模组无冲突
许可证
MIT
Iron's Spellbooks Tweaks
Config tweaks for Iron's Spells 'n Spellbooks. Adds TOML config options that Iron's doesn't expose.
What it does
Iron's Spellbooks has a small set of config options in its serverconfig (mana regen multiplier, spawn percent, sword toggles). Several open issues on iron431's GitHub ask for more direct control over mana regen rate, starting mana, and cooldowns (#161, #162, #391) that haven't been addressed.
This addon fills those gaps without touching Iron's serverconfig (which has known multiplayer sync bugs per #1033). It uses its own TOML at config/irons_spellbooks_tweaks-server.toml and applies settings via attribute modifiers and hooks on Iron's public events.
Config options
Mana
baseManaRegenPercent: bonus added to MANA_REGEN attribute on login
startingMaxMana: bonus added to MAX_MANA attribute on login
disableManaRegen: fully disables passive mana regen
Spell timing
cooldownReductionBonus: bonus to COOLDOWN_REDUCTION attribute
castTimeReductionBonus: bonus to CAST_TIME_REDUCTION attribute
Spell scaling
spellPowerMultiplier: scales the SPELL_POWER attribute on every player, range 0.0 to 10.0. Damage tooltips reflect the scaled value.
buffDurationMultiplier: scales buff and debuff durations from Iron's Spellbooks and its addons, range 0.0 to 10.0. Vanilla potions, food effects, and beacon effects are not touched. The active effect countdown in inventory shows the actual time, the spell tooltip shows the unmodified base.
buffDurationNamespaces: list of mod namespaces whose effects get scaled by buffDurationMultiplier. Defaults cover Iron's Spellbooks plus Cataclysm Spellbooks, dacxirons, GameTechBC's Spellbooks, GTBC's Geomancy Plus, Hazen 'n Stuff, Illage and Spell-age, and Traveloptics.
Restrictions
spellCastingDisabledDimensions: list of dimension IDs where casting is blocked
maxSpellRarity: caps the highest spell rarity players can cast (mob casters bypass)
inscriptionBlacklist: list of spell IDs that cannot be inscribed
Black hole
blackholeImmunity: per-entity-type pull resistance values from 0.0 to 1.0
Summon scaling
summonVexHpMultiplier, summonVexDamageMultiplier: scale HP and damage of summoned vexes
raiseDeadHpMultiplier, raiseDeadDamageMultiplier: scale HP and damage of summoned skeletons and zombies from Raise Dead
summonPolarBearHpMultiplier, summonPolarBearDamageMultiplier: scale HP and damage of summoned polar bears
summonHorseHpMultiplier: scale HP of summoned horses
summonSwordsDamageMultiplier: scale damage of Summon Swords
Multipliers stack multiplicatively with any HP/damage scaling other mods apply.
Per-world config overrides (v1.5+)
The global config in config/ is the source of truth. To customize a specific world, drop a copy of the global file into that world's serverconfig/ folder and edit it. Missing keys fall back to global.
The /isstweaks copyconfig command (op-only) copies the global config into the current world's serverconfig/ folder so you can set up overrides in-game. It won't overwrite an existing per-world file.
Per-player progression unlocks
A datapack-driven unlock system lets pack devs gate spells, dimensions, and bonuses behind advancements or boss kills. JSONs go at data/<namespace>/isstweaks/unlocks/<id>.json. Supports advancement and entity_kill triggers.
Available grants:
rarity_cap: raise the player's allowed rarity ceiling above the global maxSpellRarity gate
cooldown_reduction_bonus: flat addition to the player's cooldown reduction attribute
cast_time_reduction_bonus: flat addition to the player's cast time reduction attribute
max_mana_bonus: flat int addition to the player's MAX_MANA attribute
mana_regen_bonus: flat addition to the player's MANA_REGEN attribute
remove_dimensions: exempt the player from the casting dimension blacklist for these dimensions
remove_inscriptions: exempt the player from the inscription blacklist for these spells
If a player gets multiple unlocks that grant the same number bonus, they all add up. Negative values work too if you want to subtract. There's an optional requirement_text field on each unlock JSON for a hint string, which the requirements command shows in chat.
Commands
OP only:
- /isstweaks grant <player> <unlock_id>: manually grant an unlock
- /isstweaks revoke <player> <unlock_id>: revoke from the granted set
- /isstweaks status <player>: show current progress
- /isstweaks reset <player>: wipe all progression data
- /isstweaks copyconfig: copy the global config into the current world's serverconfig folder
Open to all players:
- /isstweaks requirements spell <spell_id>: shows the unlock requirement for a specific spell. Prefixed with [Unlocked] if the player has already met it.
- /isstweaks requirements rarity <rarity>: shows the unlock requirement for a rarity tier. Same [Unlocked] indicator when the player's cap is at or above the queried tier.
Note on overlap with Iron's per-spell configs
Iron's Spellbooks has per-spell JSON configs at config/irons_spellbooks_spell_config/ for tweaking individual spells (max level, mana cost multiplier, cooldown). This mod doesn't touch those. The maxSpellRarity option is just one rarity gate that applies to every spell at cast time, no per-spell editing needed. It's faster to set up but less precise than per-spell tweaking. Pick whichever fits, or use both together.
For modpack makers
Drop the jar in your pack's mods folder, edit config/irons_spellbooks_tweaks-server.toml, ship the config alongside the pack. All options are server-side so clients don't need matching configs.
##Compatibility
Minecraft 1.20.1 Forge and Minecraft 1.21.1 NeoForge
Iron's Spells 'n Spellbooks 3.0.0+ (1.20.1) or 1.21.1-3.15.0+ (1.21.1)
Soft dependency, mod loads cleanly without Iron's Spellbooks present
No conflicts expected with other Iron's addons
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧