Skip to main content

Events

All on NeoForge.EVENT_BUS unless noted.

PlayerFactionEvent

SubclassCancellableWhen
FactionLevelChangePreyesbefore a faction/level change; cancel to veto it
FactionLevelChangednoafter a faction/level change
LevelChangednoafter any FactionUpdate is applied
CanJoinFactionnojoin check – set Behavior (DENY / ONLY_WHEN_NO_FACTION / ALLOW)

SkillEvents

SubclassWhen
SkillUnlockCheckEventbefore the unlock check; set a ISkillHandler.Result to short-circuit
SkillEnableEventa skill was enabled (has isFromLoading() and the ISkillTree)
SkillDisableEventa skill was disabled

ActionEvent

SubclassCancellableWhen
ActionActivatedEventyesbefore an action fires; adjust cooldown/duration/cancel message
ActionDeactivatedEventnoa lasting action ends; adjust cooldown handling
ActionUpdateEventnoper-tick tick for a lasting action; can force deactivation

Others

  • FactionVillageEvent.* – village capture lifecycle (SpawnNewVillager, MakeAggressive, InitiateCapture, DefineRaidStrength, AreaChangedEvent, …).
  • AddFactionTagEventmod bus – register faction-specific tags (see Utilities).