Перейти к основному содержимому

Combat Events

Trigger actions during combat scenarios.

Event Library

Configuration

shield_block_event

Triggers when a player successfully blocks damage with a shield. minDamageDouble

Minimum damage required to trigger event. damageTypeDamageCause

Source of damage (e.g. ENTITY_ATTACK, PROJECTILE).

trident_throw_event

Triggers when a player throws a trident. hasRiptideBoolean

If true, only triggers for Riptide tridents. hasLoyaltyBoolean

If true, only triggers for Loyalty tridents.

trident_recall_event

Triggers when a Loyalty trident returns to the thrower.

к сведению

No additional configuration.

crossbow_reload_event

Triggers when a projectile is loaded into a crossbow. projectileTypeMaterial

Material of projectile loaded (ARROW, FIREWORK_ROCKET).

Examples

shield_block_event:
minDamage: 5.0
damageType: PROJECTILE
actions:
- sound_action:
sound: ITEM_SHIELD_BLOCK
pitch: 0.5
crossbow_reload_event:
projectileType: FIREWORK_ROCKET
actions:
- message_action:
message: "<yellow>Rocket loaded! Ready to blast."