Skip to content

[1.21.1] Crash with MineColonies - Negative burn time on cgs:tank_empty / cgs:tank_water #17

@SergeantSapient

Description

@SergeantSapient

Description

Minecraft Version: 1.21.1
NeoForge Version: 21.1.228
Create: Gunsmithing Version: 1.4.3
MineColonies Version: 1.1.1307 (snapshot)

Crash Summary

The game crashes during MineColonies' compatibility discovery phase because fluid tanks from Create: Gunsmithing return a negative burn time.
Stack Trace (key part):

Javajava.lang.IllegalStateException: Stack of item cgs:tank_empty has a negative burn time
    at net.neoforged.neoforge.common.extensions.IItemStackExtension.getBurnTime(...)
    at net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity.isFuel(...)
    at com.minecolonies.api.compatibility.CompatibilityManager.discoverFuel(...)
    at com.minecolonies.api.compatibility.CompatibilityManager.discoverAllItems(...)

Affected items:

  • cgs:tank_empty
  • cgs:tank_water
  • (likely all other cgs:tank_* variants)

Steps to Reproduce

  1. Install MineColonies + Create: Gunsmithing.
  2. Launch the game / create or load a world.
  3. Crash occurs during server tick while MineColonies scans creative tab items for fuel compatibility.

What I Tried

  • Blacklisting the tanks with Item Obliterator (!cgs:tank_.*) — did not prevent the crash (MineColonies scans too early).
  • Removing other mods — issue only occurs with CGS present.

Expected Behavior

Fluid tanks should return 0 (not fuel) for getBurnTime() / Fuel checks, like most other Create addons do.

Actual Behavior

Tanks return a negative value → NeoForge throws IllegalStateException when MineColonies scans them.

Log files:

2026-05-08-7.log.gz
latest.log

Additional Information

  • This is a compatibility issue between Create: Gunsmithing and MineColonies.
  • Item Obliterator blacklisting doesn't help due to early scanning timing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions