Configuration
Everything is in plugins/Thunderstruck/config.yml, with a comment over every setting. After a change, run /thunderstruck reload. If the file has a mistake that YAML cannot read, the reload says so and the settings in use stay until you fix it.
Who sees it and who hears it #
lightning.audience decides who sees the bolt and sound.audience who hears the sounds:
| Value | Who |
|---|---|
ALL | every player on the server |
WORLD | the players in the world where it happened |
RADIUS | the players within radius blocks of where the player died |
PLAYER | only the player who died |
NONE | nobody: that part is off |
Each part has its own radius, in blocks (64 by default).
Two things come from the game itself. A bolt is shown only to players near enough to see it: the server's entity tracking range, 64 blocks by default, whatever the audience says. And whoever sees the bolt also hears its thunder, played by their own game. The sounds of the sound part have no distance limit: each listener hears them where they stand.
On servers older than 1.18 the bolt cannot be hidden from some players: with RADIUS or PLAYER, every player near enough sees it, and the console says so. The sounds still follow the audience.
Sounds #
sound:
audience: ALL
radius: 64
sounds:
- sound: entity.lightning_bolt.thunder
volume: 1.0
pitch: 1.0
category: MASTER
delay: 0
| Setting | What it does |
|---|---|
sound | A Minecraft sound (entity.wither.death, block.bell.use), its Bukkit name (ENTITY_WITHER_DEATH) or a sound from your resource pack (myserver:death). |
volume | 1.0 is full volume. |
pitch | From 0.5 to 2.0; 1.0 is normal. |
category | MASTER, WEATHER, PLAYERS, AMBIENT, HOSTILE, NEUTRAL, BLOCKS, RECORDS, MUSIC or VOICE. Each player's volume slider for that category applies. |
delay | Ticks to wait before this sound; 20 ticks are a second. |
Free plays the first sound of the list. Pro plays them all, each at its own delay, for example a thunder and then a bell:
sounds:
- sound: entity.lightning_bolt.thunder
- sound: block.bell.use
pitch: 0.8
delay: 20
A sound of a resource pack plays only for players who have that pack.
Ranks (Pro) #
Under ranks, each LuckPerms group can change what it needs; the rest comes from the settings above it.
ranks:
vip:
sound:
sounds:
- sound: ui.toast.challenge_complete
default:
lightning:
audience: RADIUS
radius: 30
The highest rank wins. Among the groups the player has, their own and the ones they inherit from a parent group, Thunderstruck takes the one listed under ranks with the highest weight in LuckPerms. On the same weight, or when the groups have no weight, the one listed first wins, so list them from the highest to the lowest. The primary group does not count. A mod who inherits admin and vip, with vip and admin in the list, gets admin.
The weight only orders the groups: what a group inherits comes from its parents (lp group mod parent add admin), and the weight is set with lp group admin setweight 100. The rank is read at each death, so a change in LuckPerms counts at once.
Without LuckPerms, a player gets a rank with the permission thunderstruck.rank.<rank>, given on purpose: operators do not get every rank. With several, the first one of the list wins. On Free, every death uses the general settings.
/thunderstruck test <player> <rank> tries a rank's settings on any player.
Worlds #
worlds:
mode: except
list: [arena_*, lobby]
With mode: except the bolt strikes in every world except the ones in list; with mode: only, only in the worlds of list. Upper and lower case don't matter, and a * stands for any text: arena_* is arena_1, arena_red and the rest. Worlds go by name, so a world that a reset makes anew keeps its setting.
A config.yml of Thunderstruck 1.0 had disabled-worlds: at the first start of 1.1 it becomes worlds, with mode: except and the same worlds, and the console says so.
Other settings #
| Setting | What it does |
|---|---|
language | en or es: the language of the plugin's messages. They live in messages_en.yml and messages_es.yml, yours to edit. |
banner | true draws the lightning bolt in the console at start; false prints one line. |
updates.check | Once a day, asks Modrinth for a new version and tells the console and admins. |
updates.download | Also downloads it into the server's update folder; the server puts it in place at its next restart. |
license.key | Your Pro key. /thunderstruck license activate <key> writes it here for you. |
telemetry.enabled | The anonymous usage report; false turns it off. /thunderstruck telemetry shows what it sends. |