跳到正文

TIAB GTM Compat

作者:Akoto090

Makes the Time in a Bottle tick-acceleration work correctly with GregTech (CEu) Modern machines.

收藏

截图

介绍

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

About

A mc20.1 Forge mod that makes the Time in a Bottle tick-acceleration work correctly with GregTech Community Edition Modern machines.

The problem

Time in a Bottle accelerates blocks by calling serverTick() N times per game tick. GT machines consume EU on each tick call, but power cables only deliver EU once per real game tick. Machines stall after the first sub-tick even when you have plenty of power generation.

The fix

  1. Single-block GT machines running inside a TIAB field process recipes at the accelerated rate without starving for EU.
  2. Multiblocks and Cleanrooms (CleanroomLogic) bypasses the normal recipe tick path. This just patches it separately so multiblocks also benefit correctly.

How the magic works

A Mixin on RecipeLogic.handleRecipeWorking() (and a separate one on CleanroomLogic.serverTick()) tracks level.gameTime. On the first call per game tick the normal EU consumption happens. On any subsequent calls within the same tick (TIAB extra ticks), EU draw is skipped but recipe progress still advances if and only if the natural tick had enough power.

Dependencies

Dependency Version
GregTech (CEu) Modern 1.6.4 or 7.4.0+
Time in a Bottle 4.0.4+
Kotlin for Forge 4.12.0+

Credits

License

This mod is licensed under MIT


image

常见问题

TIAB GTM Compat 支持哪些 Minecraft 版本?

TIAB GTM Compat 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

TIAB GTM Compat 怎么安装?

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

评论

登录后评论和评分

Akoto090 的其他作品

查看全部 →