Skip to main content

Common Raid

A common raid (htlib:common) is similar to vanilla raids, composed of multiple fixed waves. When all waves are defeated or time out, the raid ends and triggers the corresponding rewards or penalties.

Raid Timeline​

A complete raid follows this timeline:

Phase Details​

PhaseDurationDescription
Raid TriggerInstantPlayer uses a raid item to trigger the raid. System initializes, plays raid_start_sound, and shows the progress bar
Wave Preparationprepare_duration ticks (default 100)Shows wave title (if show_wave_title is true), plays wave_start_sound, giving players time to prepare
Wave Activewave_duration ticks (0 = unlimited)Each spawn group activates at its start_tick, spawning raiders. Players must defeat all raiders during this phase
Wave SkipInstantWhen can_skip_wave is true and all raiders are killed, immediately jumps to the next wave's preparation phase
Victoryvictory_duration ticks (default 100)Triggered when all waves are completed. Plays victory_sound, executes victory_results in order
Lossloss_duration ticks (default 100)Triggered when the raid fails. Plays loss_sound, executes loss_results in order

Tip: If wave_duration is set to 0, the wave has no time limit and players must defeat all raiders to proceed to the next wave (provided can_skip_wave is true).

Fields​

FieldTypeDescription
typeStringRaid type, fixed as htlib:common
settingRaid SettingsGlobal settings for the raid
wavesString ListWaves included in the raid, referencing wave components by registered name in order

Full Example​

Below is a JSON configuration for a common raid with three waves:

{
"type": "htlib:common",
"setting": {
"bar_setting": {
"raid_bar_color": "red"
},
"border_setting": {
"block_inside": true,
"block_outside": true,
"raid_range": 40.0,
"render_border": true
},
"sound_setting": {
"raid_start_sound": "htlib:prepare",
"wave_start_sound": "htlib:huge_wave",
"victory_sound": "htlib:victory",
"loss_sound": "htlib:loss"
},
"victory_results": [
"htlib:common_function",
"htlib:command_function"
],
"loss_results": [
"htlib:clear_raiders"
]
},
"waves": [
"htlib:common_wave_1",
"htlib:common_wave_2",
"htlib:common_wave_3"
]
}

Raid Settings​

FieldTypeDefaultDescription
bar_settingBar Settings—Raid progress bar settings
border_settingBorder Settings—Raid border settings
sound_settingSound Settings—Raid sound settings
victory_resultsString List[]Result components executed on victory
loss_resultsString List[]Result components executed on loss
victory_durationInteger100Duration of the victory state (ticks)
loss_durationInteger100Duration of the loss state (ticks)
show_wave_titleBooleantrueWhether to show the wave title at the start of each wave

Border Settings​

FieldTypeDefaultDescription
raid_rangeFloat40.0Radius of the raid border
block_insideBooleanfalseWhether to block entities from entering the border
block_outsideBooleanfalseWhether to block entities from leaving the border
render_borderBooleanfalseWhether to render border particles
border_colorIntegerVanilla defaultBorder color (ARGB format)

Sound Settings​

FieldTypeDefaultDescription
raid_start_soundStringEmptySound ID played when the raid starts
wave_start_soundStringEmptySound ID played at the start of each wave
victory_soundStringEmptySound ID played on raid victory
loss_soundStringEmptySound ID played on raid loss

Bar Settings​

FieldTypeDefaultDescription
raid_titleStringAuto-generatedTitle displayed on the raid progress bar
raid_bar_colorStringredProgress bar color. Options: red, blue, green, yellow, purple, white
victory_titleStringAuto-generatedTitle displayed on raid victory
loss_titleStringAuto-generatedTitle displayed on raid loss