介绍
Kota Fix (Zenith x Create Compatibility)
Kota Fix is a lightweight Fabric 1.20.1 compatibility patch designed to restore the functionality of Zenith’s Knowledge Enchantment when the Create mod is present.
The Core Issue
Both Zenith and Create rely on a shared library called porting_lib. This library’s DROPS event system contains a critical design flaw: it stops processing handlers as soon as any handler returns true.
In many modpacks, Create’s event handlers (which manage things like Deployer kills or Crushing Wheel drops) are registered earlier or run first. Even if a regular player performs the kill, logic within these handlers or other mods using the same library can trigger an early return, preventing Zenith’s Knowledge handler from ever executing. This effectively "breaks" the Knowledge enchantment, making it impossible to gain the 25x XP bonus from Mob drops.
Technical Implementation (The "Area Scanner" Fix)
Instead of attempting a fragile Mixin patch on the embedded porting_lib code, Kota Fix implements a robust "post-processing" solution:
- Event Interception: The mod registers its own high-priority handler on the
DROPSevent. - Kill Detection: When a player with the Knowledge enchantment kills a mob, the mod identifies the event and calculates the expected XP multiplier based on the enchantment level.
- Buffered Conversion:
- The mod immediately clears items from the
dropscollection to prevent baseline looting. - It registers a 2-tick delayed Area Scan around the death location.
- The mod immediately clears items from the
- The Scan: After 2 ticks (ensuring all other mods have finished their loot-spawning logic), the mod scans a 1x1x1 radius for any orphaned
ItemEntityobjects. - XP Transformation: All found items are discarded and converted into
ExperienceOrbEntityobjects using the standard Zenith formula (totalItems * knowledge * 25).
Compatibility
- Minecraft: 1.20.1
- Mod Loader: Fabric
- Required Mods: Zenith (or Apotheosis), Create (specifically versions using
porting_lib). - Logic: This mod acts as a bridge and is safe to use in any modpack where Zenith Knowledge is failing to trigger.
常见问题
KOTA Fix 支持哪些 Minecraft 版本?
KOTA Fix 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
KOTA Fix 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
ImEden6 的其他作品
查看全部 →VitalityFix
修复 ZenithAttributes 中「生命迸发」药水效果的问题。
Icarus x Transmog compat
此项目为 Icarus Wings 和 Transmog 添加了兼容性。
Gun Scaling
本项目将 Ranged Weapon API 的远程伤害加成添加到了 Marium's Soulslike Weapon 的枪械上
TravellersBackpack-Transmog-Compat
这个项目为 Traveler's Backpack 和 Transmog 添加了兼容性。
评论
登录后评论和评分