跳到正文

MekaLivingExtension

作者:Richie_liu111

A lightweight Minecraft mod that extends Mekanism's MekaSuit damage absorption to all living entities, not just players.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

[MekaLivingExtension] – MekaSuit Protection for All Entities

🌟 Description

MekaLivingExtension is a lightweight Minecraft mod that extends Mekanism’s MekaSuit damage absorption to all living entities, not just players.

⚙️ How It Works

This mod uses Mixin to intercept Mekanism’s damage handling logic:

  1. CommonPlayerTickHandlerMixin – Intercepts LivingAttackEvent and LivingHurtEvent (1.20.1) or LivingIncomingDamageEvent (1.21.1).
  2. ItemMekaSuitArmorMixin – Accesses private absorption values via @Accessor.
  3. MekaSuitDamageHelper – Replicates Mekanism’s core damage calculation, traverses worn armor, calculates module absorption, and deducts energy accordingly.

For v1.21.1, the event system has been unified, energy types migrated from FloatingLong to long, and damage type lookup now uses the Data Map system.

🔧 Requirements

Version Minecraft Loader Mekanism Java
1.20.1 1.20.1 Forge (≥ 47) ≥ 10.4 17
1.21.1 1.21.1 NeoForge (≥ 21.1.231) ≥ 10.7 21

📜 License

MIT License

🔗 Links

常见问题

MekaLivingExtension 支持哪些 Minecraft 版本?

MekaLivingExtension 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

MekaLivingExtension 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分