Last One Core

Makes Confluence prefixes configurable: editable prefix pools, compatible attributes, item eligibility, prefix selection, and rarity/crit behavior.
Back to Files

last_one_core-1.6.1

File namelast_one_core-1.6.1.jar
Uploader
DxEVILDxEVIL
Uploaded
Nov 10, 2026
Downloads
22
Size
271.4 KB
Mod Loaders
Forge
File ID
9543056
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:last-one-core-1742488:9543056")

Learn more about Curse Maven

What's new

1.6.1

  • Fix every KubeJS script and mod that changes damage through LivingHurtEvent.amount silently doing nothing while Confluence is installed. PortLib - mandatory for Confluence 1.2.5 and newer - ports NeoForge 1.21's damage pipeline onto 1.20.1: LivingEntity#hurt pushes a PortDamageContainer and fires PortLivingIncomingDamageEvent, and LivingEntity#actuallyHurt wraps the getDamageAfterArmorAbsorb call so its result is replaced with container.getNewDamage(). ForgeHooks#onLivingHurt still runs right before that wrap, so the event fires, event.getAmount() reads back exactly what a listener wrote, and logging, particles and every other side effect still happen - but the value itself is discarded one line later, which is why a crit script can print its new number and the mob still loses the same health. Confluence itself never touches LivingHurtEvent (its damage logic sits on PortLivingIncomingDamageEvent, PortLivingDamageEvent and ProcessCriticalDamageEvent); the overwrite belongs to PortLib's container. [portLibDamageBridge] enabled (default on) records the amount the event starts with at HIGHEST priority and, at LOWEST, applies that ratio to the container's current damage, so scaling keeps whatever PortLib listeners already did to the container (boss damage multipliers and the like) instead of replacing it, and the armor step that follows reduces the corrected value as usual. Cancelled events and events nobody changed are skipped, a NaN sentinel keeps capture and apply paired when the toggle is edited at runtime, nested damage is tracked on a per-thread stack with the event reference as a pairing check, and the bridge no-ops when PortLib is absent or the damage path carries no container. The cost is one field read and one float write per damage event, with no reflection and no allocation. Disabling the toggle restores PortLib's original behaviour, where LivingHurtEvent changes have no effect.

This mod has no additional files