IFC-Integration Fix

A quick and dirty fix to allow IFC Integrations to run on recent versions

IFC Integrations / MCA Compatibility Patch

A small NeoForge compatibility patch that fixes crashes caused by IFC Integrations calling outdated APIs from Minecraft Comes Alive (MCA) and Ice and Fire: Community Edition. No gameplay changes — this mod exists purely to stop crashes on modern versions of MCA and IaF:CE.

What it fixes

IFC Integrations v4.0.x was compiled against older versions of MCA's trait system and Ice and Fire's particle registry. Since then, both mods have changed their internal APIs:

  • MCA's Traits system moved from a Java enum to a registry-based system, breaking IFC Integrations' old Traits.registerTrait(...) and Traits.Trait.valueOf(...) calls.
  • Ice and Fire: Community Edition migrated its particle registry from Architectury's RegistrySupplier to NeoForge's native DeferredHolder, breaking IFC Integrations' reference to the Hamadryad's pixie dust particle.

Without this patch, affected worlds crash on:

  • IFC Integrations mod construction (NoSuchMethodError: Traits.registerTrait)
  • Goblin, Beast Man, and other IFC Integrations entities spawning or ticking (NoSuchMethodError: Traits.Trait.valueOf)
  • Hamadryad entities ticking (NoSuchFieldError: IafParticles.PIXIE_DUST)

This patch uses Mixin to bridge the old calls onto the current MCA/Ice and Fire APIs, restoring the intended behavior (traits register correctly, pixie dust particles render correctly) rather than just suppressing the crash.

Requirements

Installation

Drop the jar in your mods folder alongside MCA, Ice and Fire: Community Edition, and IFC Integrations. No configuration needed.

Compatibility notes

This is a narrowly-targeted patch — it only intercepts the specific stale API calls listed above. It doesn't modify MCA, Ice and Fire, or IFC Integrations in any other way, and shouldn't conflict with other mods.

If IFC Integrations is updated with an official fix for these issues in the future, this patch becomes unnecessary and can be safely removed.

Known limitations

This patch was built by identifying crashes as they occurred during normal play rather than a full static analysis of IFC Integrations' code, so it's possible (though unlikely at this point) that other entities or code paths in IFC Integrations still call the same outdated APIs in places not yet encountered. If you hit a similar crash (NoSuchMethodError involving Traits, or NoSuchFieldError involving IafParticles) with this patch installed, please report it with the full crash log.

Credits

Built as a personal compatibility fix; not affiliated with the MCA, Ice and Fire, or IFC Integrations teams.

The IFC-Integration Fix Team

profile avatar
  • 4
    Projects
  • 926
    Downloads

More from Phatdog731