Apothic Category Compat
一款面向 Forge 和 NeoForge 的服务器端模组,用于为那些未设置或错误设置了 Apotheosis 战利品类别的武器与护甲模组补全类别分配。在 Forge 上,它通过 Apotheosis 的 IMC 覆盖 API 发送类别;在 NeoForge 1.21.1 上,它通过 Apotheosis 的数据映射(data map)添加这些类别。
版本
1.20.1 和 1.19.2 (Forge):通用攻击速度和伤害规则,以及按模组划分的模块,通过 IMC 发送。1.19.2 涵盖的模组列表较短。
1.21.1 (NeoForge):数据映射。Apotheosis 8.x 自行对大部分装备进行排序并合并了其类别(一个近战武器类别,采矿工具使用 breaker),因此此构建旨在填补 Apotheosis 留下的空白。
功能说明 (Forge)
Apotheosis 使用战利品类别来决定物品可以随机生成的词缀和宝石插槽。许多模组武器要么没有类别,要么被赋予了错误的类别,导致词缀无法出现在它们身上。本模组会在加载时发送正确的类别。
通用规则根据攻击速度将近战武器划分为 sword 或 heavy_weapon(1.0 或更慢的速度视为 heavy,或者 10.0+ 的伤害使其升级为 heavy)。弓、弩、三叉戟、镐、铲、盾牌和护甲则源自原版类层次结构。属性是实时读取的,因此如果模组在运行时更改了它们,本模组依然能正常工作。读取逻辑也会回退到栈级属性,从而也能捕获类似 Epic Fight 风格的武器(例如 Weapons of Miracles 的战斧)。
在模组加载完成后会运行第二次扫描,以捕获那些在延迟初始化期间属性才最终确定的武器。
Apotheosis 硬编码了一些默认值,其优先级高于此处设置的类别(例如 minecraft:iron_sword 作为 sword,minecraft:shulker_shell 作为 none)。
按模组分类模块
将以下模组的物品路由到正确的类别(sword, heavy weapon, bow, crossbow, trident, shield, none,以及在存在 Fallen Gems & Affixes 时路由到 staffs 或 sword):L'Ender's Cataclysm, Twilight Forest, Epic Fight (base, Nightfall, Resurrection), Weapons of Miracles, Tetra, Marium's Soulslike Weaponry, Meet Your Fight, Dungeons and Combat, Alex's Caves, Alex's Mobs, Aquamirae, Born in Chaos, Forbidden and Arcanus, Traveloptics, Celestisynth, The Undergarden。
1.19.2 涵盖的列表较短,用 Epic Samurai 替换了部分仅在 1.20.1 中存在的模组。
由通用规则处理
这些模组继承了正确的原版类或拥有真实的攻击属性:Simply Swords, Integrated Simply Swords, Spartan Weaponry, Spartan Shields, Epic Knights, Samurai Dynasty, Dread Steel, Iron's Spellbooks, Mowzie's Mobs, Bosses of Mass Destruction, Deeper and Darker, Knight Quest, Enigmatic Legacy, Malum, RPG Style More Weapons, Cataclysm 自带的近战武器和盾牌,以及其他任何拥有原版类武器或攻击伤害属性的物品,以及护甲。
分类设置
apothic_category_compat-common.toml 中有两个开关。编辑后重启游戏即可生效。
name_based_heavy_override (自 v2.1.0 起默认开启):ID 中包含重型武器名称(greatsword, claymore, zweihander, warhammer, halberd, glaive, battleaxe, lance, scythe 等)的物品归入 heavy_weapon,ID 以 "sword" 结尾的物品归入 sword。现有配置保留其先前的值,因此请将其设置为 true 或删除配置文件以应用新默认值。
weapon_pickaxes_as_heavy (默认开启):Cataclysm Void Forge 和 Infernal Forge、Forbidden and Arcanus 所有等级的铁匠锤,以及 Twilight Forest 的湮灭立方体归入 heavy_weapon。禁用此项会将它们分类为 pickaxe。
配置
配置文件位于 config/apothic_category_compat-common.toml。在首次启动 v2.1.0 或更高版本时,它会从旧的 apothic_compat-common.toml 迁移过来,因此你的设置会被保留。支持按物品和按标签覆盖:
[item_overrides]
"ruins:greatsword" = "heavy_weapon"
[tag_overrides]
"simplyswords:greathammers" = "heavy_weapon"
有效类别:sword, heavy_weapon, trident, bow, crossbow, shield, helmet, chestplate, leggings, boots, pickaxe, shovel, none。将物品设置为 none 可防止其随机生成任何词缀。其他模组注册的类别(例如来自 Fallen Gems & Affixes 的 staffs)也会被接受。
1.21.1 NeoForge (Apotheosis 8.x)
通过 data/apotheosis/data_maps/item/loot_category_overrides.json 中的 NeoForge 数据映射进行覆盖。
将以下模组的物品路由到正确的类别(远程武器归入 bow,双头矛归入 trident,法杖和镰刀归入 Apothic Compats 的 staff 和 scythe 类别,最后两项仅在同时加载了 Apothic Compats 和 Malum 时生效):L'Ender's Cataclysm, Alex's Caves, Alex's Mobs, Born in Chaos, The Undergarden, Twilight Forest, Lands of Icaria, Iron's Spellbooks, Ice and Fire, Ice and Fire Spellbooks, Forbidden and Arcanus, Mahoutsukai, Deeper Darker, the Aether, 和 Traveloptics。
双用途镐(Cataclysm 熔炉和 Forbidden Arcanus 铁匠锤)通过 #apothic_category_compat:weapon_pickaxes 物品标签归入 melee weapon。config 开关 weapon_pickaxes_as_melee(默认开启)通过数据映射条件控制此行为;将其设置为 false 可让它们保持为 breaker。你可以从自己的数据包扩展该标签以覆盖更多物品。
词缀黑名单
阻止特定词缀在新生成的装备上随机生成。在 affix_blacklist 数组中列出词缀 ID:
affix_blacklist = ["apotheosis:sword/attribute/vampiric", "apotheosis:heavy_weapon/attribute/berserking"]
词缀 ID 对应 JSON 文件路径,例如 data/apotheosis/affixes/sword/attribute/vampiric.json 对应 apotheosis:sword/attribute/vampiric。在 1.21.1 上,路径顺序变为 attribute/<category>/<name>,因此同一个词缀在那里表示为 apotheosis:attribute/sword/vampiric。
仅阻止未来的随机生成;已经携带已列入黑名单词缀的物品会保留该词缀。在服务器启动、数据包重新加载和 /acc reload 时会重新应用。
重载命令
/apothiccategorycompat reload 或 /acc reload (需要 op 等级 2) 会在 Forge 上重新读取配置并重新应用。在 1.21.1 上,它会重新读取词缀黑名单;数据映射遵循正常的数据包 /reload。
依赖要求
1.20.1:Forge 47.x,Apotheosis 7.4.x。
1.19.2:Forge 43.x,Apotheosis 6.5.x。
1.21.1:NeoForge 21.1.x,Apotheosis 8.5 或更高版本。
在客户端和服务端均需安装,以便在 Forge 上正确显示词缀属性以及宝石插槽加成。在 1.21.1 中,数据映射和词缀黑名单在服务端运行,Apotheosis 会将分类同步至客户端。
许可证
MIT
Apothic Category Compat
A small server-side mod for Forge and NeoForge that fills in Apotheosis loot category assignments for weapon and armor mods that don't set them or set them wrong. On Forge it sends categories over Apotheosis's IMC override API; on NeoForge 1.21.1 it adds them through an Apotheosis data map.
Versions
1.20.1 and 1.19.2 (Forge): universal attack speed and damage rule plus per-mod modules, sent over IMC. 1.19.2 has a shorter mod list.
1.21.1 (NeoForge): data map. Apotheosis 8.x sorts most gear itself and merged its categories (one melee weapon category, breaker for mining tools), so this build fills the gaps Apotheosis leaves.
What it does (Forge)
Apotheosis uses loot categories to decide which affixes and gem sockets an item can roll. A lot of modded weapons either have no category or get the wrong one, so affixes never appear on them. It sends the right categories at load time.
The universal rule splits melee weapons into sword or heavy_weapon by attack speed (1.0 or slower reads heavy, or 10.0+ damage bumps to heavy). Bows, crossbows, tridents, pickaxes, shovels, shields, and armor come from the vanilla class hierarchy. Stats are read live, so if mods change them at runtime, it still works. The read also falls back to stack-level attributes, so Epic Fight style weapons (Weapons of Miracles greataxes) are caught too.
A second pass runs after mod loading to catch weapons whose stats settle during deferred init.
Apotheosis hardcodes a couple of defaults that take precedence over the categories set here (minecraft:iron_sword as sword, minecraft:shulker_shell as none).
Per-mod modules
Routes items in these mods to the correct categories (sword, heavy weapon, bow, crossbow, trident, shield, none, and staffs or sword via Fallen Gems & Affixes when present): L'Ender's Cataclysm, Twilight Forest, Epic Fight (base, Nightfall, Resurrection), Weapons of Miracles, Tetra, Marium's Soulslike Weaponry, Meet Your Fight, Dungeons and Combat, Alex's Caves, Alex's Mobs, Aquamirae, Born in Chaos, Forbidden and Arcanus, Traveloptics, Celestisynth, The Undergarden.
1.19.2 covers a shorter list, with Epic Samurai included instead of some 1.20.1-only mods.
Handled by the universal rule
These mods extend the right vanilla classes or carry real attack stats: Simply Swords, Integrated Simply Swords, Spartan Weaponry, Spartan Shields, Epic Knights, Samurai Dynasty, Dread Steel, Iron's Spellbooks, Mowzie's Mobs, Bosses of Mass Destruction, Deeper and Darker, Knight Quest, Enigmatic Legacy, Malum, RPG Style More Weapons, Cataclysm's own melee weapons and shields, and anything else with vanilla class weapons or an attack damage attribute, plus armor.
Categorization settings
Two toggles in apothic_category_compat-common.toml. Edit and restart to apply.
name_based_heavy_override (default on as of v2.1.0): ids containing a heavy weapon name (greatsword, claymore, zweihander, warhammer, halberd, glaive, battleaxe, lance, scythe, etc.) go to heavy_weapon, and ids ending in "sword" go to sword. Existing configs keep their prior value, so set it to true or delete the config to pick up the new default.
weapon_pickaxes_as_heavy (default on): Cataclysm Void Forge and Infernal Forge, the Forbidden and Arcanus blacksmith gavels of every tier, and Twilight Forest Cube of Annihilation go to heavy_weapon. Disable to categorize them as pickaxe.
Config
Config file at config/apothic_category_compat-common.toml. It moves over from the older apothic_compat-common.toml on first launch of v2.1.0 or later, so your settings carry over. Per-item and per-tag overrides:
[item_overrides]
"ruins:greatsword" = "heavy_weapon"
[tag_overrides]
"simplyswords:greathammers" = "heavy_weapon"
Valid categories: sword, heavy_weapon, trident, bow, crossbow, shield, helmet, chestplate, leggings, boots, pickaxe, shovel, none. Set an item to none to keep it from rolling any affixes. Categories registered by other mods (such as staffs from Fallen Gems & Affixes) are also accepted.
1.21.1 NeoForge (Apotheosis 8.x)
Overrides through a NeoForge data map at data/apotheosis/data_maps/item/loot_category_overrides.json.
Routes items in these mods to the correct categories (ranged weapons to bow, bidents to trident, and staffs and scythes to Apothic Compats' staff and scythe categories, the last two only when both Apothic Compats and Malum are loaded): L'Ender's Cataclysm, Alex's Caves, Alex's Mobs, Born in Chaos, The Undergarden, Twilight Forest, Lands of Icaria, Iron's Spellbooks, Ice and Fire, Ice and Fire Spellbooks, Forbidden and Arcanus, Mahoutsukai, Deeper Darker, the Aether, and Traveloptics.
Dual-purpose pickaxes (Cataclysm forges and Forbidden Arcanus blacksmith gavels) go to melee weapon through the #apothic_category_compat:weapon_pickaxes item tag. The weapon_pickaxes_as_melee config toggle (default on) gates this through a data map condition; set it false to leave them as breaker. Extend the tag from your own datapack to cover more.
Affix blacklist
Stops specific affixes from rolling on newly generated gear. List affix ids in the affix_blacklist array:
affix_blacklist = ["apotheosis:sword/attribute/vampiric", "apotheosis:heavy_weapon/attribute/berserking"]
Affix ids match the JSON file path, for example data/apotheosis/affixes/sword/attribute/vampiric.json is apotheosis:sword/attribute/vampiric. On 1.21.1 the path order is attribute/<category>/<name> instead, so the same affix is apotheosis:attribute/sword/vampiric there.
Blocks future rolls only; items already carrying a blacklisted affix keep it. Reapplies on server start, datapack reload, and /acc reload.
Reload command
/apothiccategorycompat reload or /acc reload (op level 2) rereads the config and reapplies it on Forge. On 1.21.1 it rereads the affix blacklist; the data map follows a normal datapack /reload.
Requirements
1.20.1: Forge 47.x, Apotheosis 7.4.x.
1.19.2: Forge 43.x, Apotheosis 6.5.x.
1.21.1: NeoForge 21.1.x, Apotheosis 8.5 or newer.
Install on both client and server for correct affix attribute display and gem socket bonuses on Forge. On 1.21.1 the data map and affix blacklist run server-side and Apotheosis syncs categories to clients.
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧