promotional bannermobile promotional banner

MekaJade Upgrades Fixed

Shows installed Mekanism machine upgrades in the Jade tooltip. Fixed fork of MekaJadeUpgrades.

MekaJade Upgrades Fixed

Shows the upgrades installed in a Mekanism machine in the Jade tooltip. Unofficial fork of MekaJadeUpgrades by DevDyna - not affiliated with or endorsed by the original author.

What's different

- The tooltip no longer overflows. The original placed every icon at a fixed horizontal offset, but Jade measures a line only by element sizes, so that offset was not counted in the width and icons were drawn past the panel edge as soon as several upgrade types were installed. Icons are now wrapped by measured width with no horizontal offset, so nothing spills out at any resolution or GUI scale.
- Icon and count stay on the same line.
- Works with Mekanism: Empowered Unleashed out of the box (mod id mekanism_empowered_unleashed); the old mekanism_empowered id is still accepted.
- If the original MekaJadeUpgrades is installed as well, this mod turns it off so the upgrade row is never shown twice. The switch is disableMekaJadeUpgrades in config/mekajadeupgrades_fixed-common.toml (on by default); the original's tooltip and data entry points are the only things it cancels.
- The original's datagen classes are not included. Everything else is the original tooltip code plus the fixes above.

Good to know

- Needs Minecraft 1.21.1, NeoForge 21.1.x, Jade and Mekanism 1.21.1 (10.7.15 or newer).
- Mekanism Extras and Mekanism: Empowered Unleashed are optional - their upgrade icons show up too.
- Install it on the client; the server side is optional, and is only needed to cancel the original's data entry point as well.

Credits

Based on MekaJadeUpgrades by DevDyna (MIT). Forked and maintained by zaixiayesheng, released under MIT.
Source: https://github.com/zaixiayesheng/MekaJadeUpgradesFixed


MekaJade Upgrades Fixed(中文)

在 Jade 提示框里显示通用机械机器已安装的升级图标与数量。这是 MekaJadeUpgrades(作者 DevDyna)的非官方修复分支,与原作者无关,也未获其背书。

改了什么

- 提示框不再溢出。原版把每个图标放在固定的横向偏移上,而 Jade 计算行宽时只统计元素尺寸、偏移不计入,升级种类一多就会画到面板外面;现在按实测宽度自动换行、横向不加偏移,任何分辨率和 GUI 缩放下都超不出去。
- 图标和数量文字在同一行。
- 直接支持「通用机械:增强·解放」(id mekanism_empowered_unleashed),旧 id mekanism_empowered 也照认。
- 同时装了原版 MekaJadeUpgrades 时,本模组会把原版关掉,避免同一行升级显示两遍;开关是 config/mekajadeupgrades_fixed-common.toml 里的 disableMekaJadeUpgrades(默认开),只取消原版的提示框与数据入口。
- 没有包含原版的数据生成(datagen)部分;其余提示框代码就是原版代码加上上述修复。

注意

- 前置:Minecraft 1.21.1、NeoForge 21.1.x、Jade、Mekanism 1.21.1(10.7.15 或更新)。
- 「通用机械:扩展」和「通用机械:增强·解放」都是可选,装了它们的升级图标也会一起显示。
- 装在客户端;服务端可选,服务端装了才会把原版的数据入口也一起掐掉。

署名

基于 DevDyna 的 MekaJadeUpgrades(MIT)二次开发,由 zaixiayesheng 维护,MIT 协议。
源码:https://github.com/zaixiayesheng/MekaJadeUpgradesFixed

The MekaJade Upgrades Fixed Team

profile avatar
  • 1
    Followers
  • 3
    Projects
  • 1.1K
    Downloads

咸鱼梦想家,不会作诗也不会吟诗 for A laid-back dreamer, can't write or recite poetry

More from zaixiayesheng