Command-based weather that realisticly rolls in and out

Supported Games
works with

This is a command-based plugin designed to mimic real life weather, with whatever weather system you chose to start gradually building and leaving over time instead of a straight on/off. Clouds will roll in, eventually leading to rain slowly building, which in turn brings in fog, etc.

This is designed to be used with a timed command plugin such as Timed Execute, and replace the built in weather, so I recommend also using Timed Execute to set all weather (rain/wind/clouds/fog) to 0 on server load for the best effect.

Console Commands

All available commands can only be ran by the server or server console. Run times are first to last command, clear sky to clear sky.

  • rw rain -- 50% Rain, 25% Fog, 100% Clouds
    • 44.8 Minute Total Run Time
  • rw lightrain -- 5% Rain, 12.5% Fog, 100% Clouds
    • 29.5 Minute Total Run Time
  • rw longrain -- 50% Rain, 50% Fog, 100% Clouds, Rainbow
    • 54.8 Minute Total Run Time
  • rw storm -- 100% Rain, 25% Fog, 100% Clouds, 100% Wind, Rainbow
    • 38.1 Minute Total Run Time
  • rw longstorm -- 100% Rain, 50% Fog, 100% Clouds, 100% Wind, Rainbow
    • 59.8 Minute Total Run Time
  • rw lightfog -- 25% Fog, 75% Clouds
    • 28.1 Minute Total Run Time
  • rw fog -- 40% Fog, 100% Clouds
    • 51.5 Minute Total Run Time
  • rw heavyfog -- 75% Fog, 100% Clouds
    • 54.8 Minute Total Run Time
  • rw overcast -- 100% Clouds
    • 59.8 Minute Total Run Time
  • rw clear -- Clear sky.
    • 59.8 Minute Total Run Time
  • rw partlycloudy -- Peaks at 75% clouds briefly
    • 53.1 Minute total Run Time
  • rw windy -- 100% Wind, 20% Fog
    • 41.6 Minute Total Run Time
  • rw dust -- 30% Fog, 50% Clouds, Sandy/Reddish hue
    • 51.5 Minute Total Run Time
  • rw sunandclouds -- 60% Maximum Clouds, cloud coverage variates
    • 53.1 Minute Total Run Time
  • rw volcanicsky -- Sky becomes vivid with red horizon
    • 60.0 Minute Total Run Time
  • rw spottyshowers -- 21% Max Rain, 75% Max Clouds, Rainbow - Rain, Clouds, and Rainbow variates
    • 54.9 Minute Total Run Time
  • rw quickfront -- 34% Max Rain, 100% Max Clouds, 12% Max Fog - A quick, harsh hitting rain front followed by clearing
    • 53.2 Minute Total Run Time
  • rw smokeysky -- 20% Clouds - Sky becomes tinted by smoke from a distant source
    • 60.0 Minute Total Run Time
  • rw random -- Randomly calls one of the commands above.
    • 28-60 Minute Total Run Time

Note: When using rw random with a timer plugin, make sure to space out your command timer to at LEAST the time of the longest weather pattern (60 minutes or more) so commands don't overlap. If you want less frequent weather, set the command timer higher until you find the result that you want. If you want frequent weather set it closer to the 60 minute minimum

Timed Execute Examples

DO NOT USE MORE THAN ONE METHOD AT A TIME

Timer Repeat Method

This example shows setup for weather event every 2 hours, change value for rw random under TimerRepeat for more/less time between.

{
  "EnableInGameTime-Timer": false,
  "EnableRealTime-Timer": false,
  "EnableTimerOnce": true,
  "EnableTimerRepeat": true,
  "InGameTime-Timer": {
    Don't put weather commands in this section.
  },
  "RealTime-Timer": {
    Don't put weather commands in this section.
  },
  "TimerOnce": {
    "weather.clear_chance 1": 5,
    "weather.dust_chance 0": 6,
    "weather.fog_chance 0": 7,
    "weather.overcast_chance 0": 8,
    "weather.rain_chance 0": 9,
    "weather.storm_chance 0": 10
  },
  "TimerRepeat": {
    "rw random": 7200
  }
}

Real-Time Timer Method

This example shows how you would setup the weather to run a predetermined set weather patterns at specific times of the day.

{
  "EnableInGameTime-Timer": false,
  "EnableRealTime-Timer": true,
  "EnableTimerOnce": true,
  "EnableTimerRepeat": false,
  "InGameTime-Timer": {
    Don't put weather commands in this section.
  },
  "RealTime-Timer": {
    "02:00:00": "rw rain",
    "05:00:00": "rw lightfog",
    "08:00:00": "rw lightrain",
    "10:00:00": "rw storm",
    "13:00:00": "rw rain",
    "17:00:00": "rw lightfog",
    "21:00:00": "rw lightrain",
    "23:00:00": "rw storm"
  },
  "TimerOnce": {
    "weather.clear_chance 1": 5,
    "weather.dust_chance 0": 6,
    "weather.fog_chance 0": 7,
    "weather.overcast_chance 0": 8,
    "weather.rain_chance 0": 9,
    "weather.storm_chance 0": 10
    },
  "TimerRepeat": {
    Don't put weather commands in this section.
  }
}

Future Plans

  • Add more variety of weather / more dynamic patterns
  • Add more overall depth

Credits

Original Creator : OuTSMoKE

Thanks to Absolut, Ryan, Slut, k1lly0u for the help with coding for this!

Thanks to deano79 for post-weather-update patching.

This plugin is unlicensed and the original author reserves all rights to it.

The original author may request that this plugin be removed and there is a risk that the plugin may be unavailable in the future.

Note that the current maintainer may not have permission to assign a license to the plugin if they are not the original author, so explicit permission would need to be obtained from the original author in order for the plugin to remain openly available and guarantee that it will be around for all to enjoy going forward.