Skip to content
Patrigan edited this page Jan 29, 2022 · 2 revisions

For modders (and streamers using CCI), several events are added that allow them to interact with raids.

Calculate Strength Event

CalculateStrengthEvent is posted whenever the strength is calculated for a raid target. It contains the following values.

  • type: Raid Target Type (Village or Player)
  • blockPos: BlockPosition the raid is focused on.
  • level: The level in which the raid happens.
  • originalStrength: The original strength as calculated before the event was thrown
  • strength: The current new strength, only this value can be updated.

Calculate Player Strength Event

CalculateStrengthEvent.Player is a subclass that also contains the Player Information.

Calculate Player Strength Event

CalculateStrengthEvent.Battle is a subclass that also contains the 2 factions that will go do battle with eachother.

Faction Raid Event

FactionRaidEventis an event posted during a faction raid. The base event is never thrown directly, three sub events exist. All events contain the raid itself as the sole parameter.

Wave Raid Event

FactionRaidEvent.Wave is posted when a new wave is spawned.

Victory Raid Event

FactionRaidEvent.Victory is posted when the wave resulted in a victory for the players.

Defeat Raid Event

FactionRaidEvent.Defeat is posted when the wave resulted in a defeat for the players.

Clone this wiki locally