last_one_core-1.6.0
Curse Maven Snippet
What's new
1.6.0
Add the reverse direction of the Confluence and Iron's Spells mana compatibility behind
[confluenceIronMana]. Confluence already ships a layer that lets its own mana power Iron's Spells; this feeds Iron's Spells from Confluence's mana economy instead. Confluence keeps its pool on theconfluence:manaattachment (ManaStorage), and every change funnels throughreceiveMana,extractManaandforceExtractMana, whilefreshMaxManarecomputesstars * 20 + additionalMana. A@Pseudomixin snapshotscurrentManabefore those three calls and mirrors the real delta onto Iron's Spells afterwards, soAccessoryItems.MANA$USE$REDUCE, the auto-get-mana accessory path, creative mode and every other Confluence-side filter keep working unchanged: spending N Confluence mana spends N Iron's Spells mana, and restoring N restores N.mirrorMaxMana(default on) forwards the cap as well - themax_manaattribute receives a transient ADDITION modifier ofstars * 20 + additionalMana - 20, re-applied every 10 ticks so a respawn or a dimension change cannot drop it and removed again when the toggle goes off.onlyUseIronMana(default off) replaces the Confluence pool outright:getCurrentMana,getMaxMana,canExtractandcanReceiveall read Iron's Spells, the mutators seed from it before running and write back after, so one bar drives both systems; Confluence's passive regeneration is skipped in that mode, because its formula scales with the maximum and would otherwise regenerate far faster than Iron's Spells does. Iron's Spells is reached purely through reflection (MagicData#getPlayerMagicData/getMana/setMana,AttributeRegistry.MAX_MANA,SyncManaPacket), so no compile dependency is added and everything no-ops when the mod is missing or its API moves. A mirrored change that lands exactly on Iron's Spells' maximum would never reach the client -MagicManager#regenPlayerManaonly sendsSyncManaPacketwhile mana is below the cap - so the value is pushed whenever it actually changed, at most every 10 ticks.Add
[confluenceManaHud] enabled(default on) to hide Confluence's mana HUD. Both styles are drawn by the singleTerraStyleManaHudlayer, which then dispatches toClientConfigs.manaStyle(LEGACYstar bar orOVERLAYTerra bar), so oneHEADcancel onrenderremoves either of them; because the whole layer is skipped, the Terra style also stops reserving its 10 pixels of right-side height. It is a client-side display switch only - mana values, costs and regeneration are untouched - and it pairs withconfluenceIronMana.onlyUseIronMana, where Iron's Spells' bar is the only mana that matters.
This mod has no additional files