Saltar al contenido principal

ambient_sound_zone

Play ambient sound in a region — misc entry.

Entry Information

PropertyValue
Entry IDambient_sound_zone
TypeMisc
ColorGreen
Iconmdi:weather-windy

Description

An ambient sound zone plays a looping sound when a player is inside a protection region or WorldGuard region. When the player enters the region, the sound fades in. When the player exits, the sound fades out. If multiple zones overlap, the one with the highest priority takes precedence.

Fields

FieldTypeDescription
protectionRegionIdStringThe protection region ID where the ambient sound plays (primary). Use the ID of a region_definition entry.
worldGuardRegionIdStringWorldGuard region name (optional fallback if protection region is not set)
soundVar<Sound>The sound to play in this zone
layerAudioLayerThe audio layer to use
zoneVolumeVar<Float>Volume multiplier for this zone (0.0 to 1.0)
fadeInDurationFade in duration when entering the zone
fadeOutDurationFade out duration when exiting the zone
loopingBooleanWhether the sound should loop while in the zone
priorityIntPriority when multiple zones overlap (higher wins)

Usage Example

- entry: ambient_sound_zone
name: "Play ambient sound in a region"
protectionRegionId: ""
worldGuardRegionId: ""
sound: ""
layer: ""
zoneVolume: 0
fadeIn: ""
fadeOut: ""
looping: false
priority: 0