TIAB GTM Compat

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

Time In a Bottle usage on a EBF

Description

image

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

The TIAB GTM Compat Team

profile avatar
  • 3
    Followers
  • 10
    Projects
  • 24.9K
    Downloads

Inactive bad modder and curseforge moderator. Feel free to dm me on discord, when you need help with mods / modpacks.

Donate

More from Akoto090View all