Configuration
Document every config key: search distance, CooldownMs, teleport sound, smooth movement, and SmoothingDurationMs.
Default config
json
{
"MaxSearchDistance": 320,
"CooldownMs": 500,
"EnableSound": false,
"EnableSmoothMovement": false,
"SmoothingDurationMs": 320
}
Config reference
| Key | Type | Default | Description | Gameplay effect | Recommended |
|---|---|---|---|---|---|
MaxSearchDistance | integer | 320 | Maximum vertical search range, in blocks. | Higher values allow taller shafts but cost more search work when no destination exists. | 160-320 |
CooldownMs | long | 500 | Delay between successful elevator uses. | Prevents accidental rapid re-use while jump or crouch is held. | 400-700 |
EnableSound | boolean | false | Enables the teleport sound event. | Plays SFX_Portal_Neutral_Teleport_Local after a successful teleport. | false for quiet servers |
EnableSmoothMovement | boolean | false | Uses short smooth movement instead of instant teleport. | Moves through the shaft with interpolation, then applies one final correction teleport. | true for visual polish |
SmoothingDurationMs | integer | 320 | Duration of smooth travel in milliseconds. | Clamped between 180 and 650 ms so smooth movement stays responsive. | 260-380 |
Smooth movement example
json
{
"MaxSearchDistance": 240,
"CooldownMs": 550,
"EnableSound": true,
"EnableSmoothMovement": true,
"SmoothingDurationMs": 320
}