Simple Voice Chat
voicechat/voice_range
SVC Voice Range
Calculates the effective voice hearing range in blocks based on the current audio level. Louder voices carry further.
Note: Formula: multiplier = clamp(1.0 + (dB − threshold) / 25, 0.5, 2.5)
Examples with base range 30 blocks and threshold -40 dB:
• -40 dB (at threshold) → 30 blocks (1.0×)
• -15 dB (+25 dB) → 60 blocks (2.0×)
• 0 dB (maximum) → 75 blocks (2.5×)
• -65 dB (very quiet) → 15 blocks (0.5× minimum)
Pair with **SVC Detection Chance** to compute a probability from the effective range.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
decibels |
number | Audio level in dB. Connect from SVC Is Speaking or SVC Speaking Trigger. | |
baseRange |
number | Base voice range in blocks (e.g. the value configured in the SVC server settings, typically 30–48). |
Outputs
| Name | Type | Description |
|---|---|---|
effectiveRange |
number | Effective hearing range in blocks after volume scaling. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
threshold |
number | -40 |
Audio at or below this level is treated as the baseline (1× range). Default: -40 dB. |
Examples
Alert mobs in effective range
When a player speaks, alert nearby mobs scaled to how loud they were.
- SVC Speaking Trigger → decibels → SVC Voice Range (decibels)
- Constant (30) → SVC Voice Range (baseRange)
- SVC Voice Range → effectiveRange → Get Nearby Entities (radius)
- Get Nearby Entities → entities → For Each Entity → <trigger aggro>