Skip to content
NP Editor Docs

Weather, rain and lightning

Weather draws rain, thunderstorms, wind, wet ground, puddles, lens drops, and lightning in the viewport. The values you set in the Weather window on the viewport bar are saved in the world file as the world’s base weather, and you can change them over time with the Weather and Lightning row keys in the Sequencer. While a Sequencer weather key exists, that key takes priority over the world weather. Use it to set the mood of a cutscene or to render a rainy scene as video.

Rain streaks, splashes, lightning bolts, and flashes show in every view mode. Wet ground, puddles, puddle reflections, ripples, and lens drops show in the game view (F6) and path tracing (F7) (Game view and shader pack).

  1. Click the cloud button on the left bar of the viewport (tooltip “Weather: rain · storm · wind · wetness · puddles · lens drops · lightning (…)”). The window “Weather (world — sequencer weather keys take priority)” opens.

  2. Click Rain among the preset buttons at the top. Rain streaks fall in the viewport and the fields change to the rain preset values. Presets change only the weather and leave Sky time (-1 = view setting) as it is.

  3. Press F6 to switch to the game view. While it rains, the ground gets gradually wet and darker, and puddles form. The bottom line of the window shows the current values as “Now: … · wetness … · puddles …”. In views other than F6 and F7, the end of this line gets ” — wetness and puddles show in F6 game view · F7 path tracing”.

  4. Drag the Wind slider to the right. The rain streaks lean (1 = about 40°). Wind direction is the direction the wind blows toward (0 = +Z south · 90 = +X east).

  5. Click Strike lightning. One bolt strikes, the sky and scene flash, and thunder sounds. If a sequence is selected in the Sequencer, it adds a lightning key at that sequence’s playhead instead of flashing (undoable).

  6. To change it over time, select a sequence in the Sequencer and double-click the master track’s Weather row. A weather key appears at that time (initial values = the world weather), and the key row below shows the fields Presets… · Rain · Wind · Direction · Clouds · Darkness · Wetness · Puddles · Lens · Lightning and the interpolation. Between keys the values change according to the interpolation.

  7. Double-click the Lightning row to add a lightning key at that time. Set Shape (same value = same bolt), Strength (flash multiplier), Distance (blocks from the camera to the bolt, default 48), Direction (-1 = from the shape value), and Thunder.

  8. Play the sequence with ▶. Rain comes and goes along the weather key curve, and lightning strikes at the lightning key times. The same time always gives the same picture, so it carries over into video renders as is.

  • Undo the world weather: undo changes made in the window with Ctrl+Z. Continuing to drag the same slider counts as one step.
  • Automatic wetness and puddles: with Wetness (-1 auto) and Puddles (-1 auto) at -1, the ground gets wet for as long as it has rained (half-life about 15 seconds), and puddles fill up later, following the wetness. With 0 to 1, the value is fixed. In a sequence, automatic wetness starts as if the first key’s value had lasted a long time, so a scene that begins in rain is wet from the start.
  • Sky time: Sky time (-1 = view setting) is world data (0 to 24 hours). At -1 it follows the time-of-day slider in the sun window. Once set, F6, F7, the Sequencer preview, and video renders draw the sky at that time, and when you export to a Minecraft world it becomes the level.dat time.
  • Distant lightning: bolts are drawn only within about 96 blocks of the camera (same as the Minecraft default). A farther bolt gives only the flash and thunder, with no bolt. Thunder sounds at the same moment as the bolt (no distance delay, unlike vanilla).
  • Lens drops per cut: turn on Restart lens drops at every camera cut and drops form again on a clean lens each time the camera cut changes.
  • When it is heavy: reduce the number of rain streak and splash particles with the Particles: low · Particles: medium · Particles: high list.
  • Sound: turn on Preview rain · thunder sound to hear rain and thunder. Like vanilla, rain sounds only come from the ground around the camera, and you cannot hear them when you are more than 11 blocks above the ground. Rain sound radius (3 to 10 blocks) matches the game’s graphics setting (default 10 blocks · fast 5 blocks). With Thunder: installed Minecraft sound on, it only reads the thunder sound of the Minecraft installed on this PC and plays it (synthesized thunder if there is none). Both values are the same as the fields of the same name in Edit > Editor Preferences… > General. When you pause or stop the sequence, the weather sounds stop too.
  • Add a lightning key quickly: move the playhead in the Sequencer, then click Strike lightning in the Weather window to add a lightning key at that time.
FieldRangeMeaning
Preset buttonsClear · Overcast · Drizzle · Rain · Heavy rain · ThunderstormChange the weather values at once (the sky time stays).
Rain0 to 10 = none · 1 = downpour (streak count, sound, how fast it gets wet)
Wind0 to 1Rain streak slant (1 = about 40°)
Wind direction0 to 359The direction the wind blows toward (0 = +Z south · 90 = +X east)
Clouds0 to 1Cloud cover — dims the sky and sun
Darkness0 to 1The dark sky of a thunderstorm
Wetness (-1 auto)-1 · 0 to 1-1 = builds up with rain time · 0 to 1 = fixed
Puddles (-1 auto)-1 · 0 to 1-1 = fills up later, following wetness · 0 to 1 = fixed
Splashes · ripples0 to 1Raindrop splashes and puddle ripples
Lens drops0 to 1Drops that form on the screen (lens) (0 = off)
Sky time (-1 = view setting)-1 · 0 to 24The world’s sky time (hours)
Auto lightning /min0 to 30Bolts per minute (0 = lightning keys only)
Particles: low · Particles: medium · Particles: high—Rain particle budget (6 thousand · 16 thousand · 40 thousand streaks)
Puddle reflections0 to 1Puddle reflection strength (F6 · F7)
Restart lens drops at every camera cutOn/offWhen the cut changes, clear the lens drops and let them form again
Preview rain · thunder soundOn/offWeather sound
Rain sound radius3 to 10 blocksThe radius around you where rain sounds play
Thunder: installed Minecraft soundOn/offPreview with the installed thunder sound (video renders use only synthesized thunder)
Strike lightning—One flash now (if a sequence is selected in the Sequencer, a lightning key at the playhead)
RowFieldMeaning
WeatherPresets…Replace this key with the chosen preset’s values
Rain · Wind · Direction · Clouds · DarknessSame values as the window above
Wetness · Puddles-1 = auto · 0 to 1 = fixed
LensLens drop strength
LightningAutomatic lightning frequency (per minute)
InterpolationFrom this key to the next (linear · step · smooth …)
LightningShapeBolt shape and flicker seed (same value = same bolt)
StrengthFlash multiplier (0 to 3)
DistanceFrom the camera to the bolt (4 to 2000 blocks)
DirectionThe bolt’s side (0 = +Z south · 90 = +X east, -1 = from the shape value)
ThunderThunder sound (at the same moment as the bolt)

The world weather in the editor’s Weather window does not change the rain in the game world. In the game, match it as follows.

WhatIn the game
World weather (rain · thunderstorm)In the World logic action Set world, change the property weather to clear, rain, or thunder. The condition Weather checks the current weather (clear · rain · thunder).
Sequence weather keys · lightning keysWhile the server NPBridge 2.1.0 or later plays a cutscene (Play sequence), it sends the rain strength, sky darkness, and lightning at the same times to the viewers only, and returns to the original weather when it ends.
Sky timeDuring a cutscene, the viewers’ sky time needs NPBridge 2.2.1 or later. Outside a cutscene, it is the exported world time.
Wetness · puddles · lens drops · flash pictureThe NP Lite shader pack draws them. Make shader pack bakes the cutscene sequence’s wind, lens drops, puddles, and flash values into the pack defaults (in the game it is one pack option, so it does not change per key).
  • The game is a vanilla client, so it cannot separately receive cloud cover, bolt shape, per-bolt strength, or turning thunder off. For a key whose clouds or darkness are larger than its rain strength, the game sky is less dark (an export warning).
  • A bolt more than 64 blocks away horizontally from the camera strikes at the 60-block spot in the same direction under the default server settings. Change this with scene.cinematic.weather-far-bolts and scene.cinematic.weather-flash-bolts (near · exact · skip) and scene.cinematic.weather-viewers-only (default true — cutscene lightning only for the viewers) in the server config.yml. See Installing NPBridge.