Weather

Discussion in 'Plugin Development' started by halvors, Apr 25, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    halvors

    Hi!

    I have some questions realated to Weather. First is storm requid for lightning to work naturly? And whats the format for world.setStormDuration() ?

    halvors.
     
  2. Offline

    DeaGato

    For rain:

    Code:
    player.getWorld().setStorm(true);
    player.getWorld().setThundering(false);
    player.getWorld().setWeatherDuration(<time in ticks>);
    For Thunder:

    Code:
    player.getWorld().setStorm(true);
    player.getWorld().setThundering(true);
    player.getWorld().setWeatherDuration(<time in ticks>);
    player.getWorld().setThunderDuration(<time in ticks>);
     
  3. Offline

    halvors

    player.getWorld().setThunderDuration(<time in sticks>); secounds?
     
  4. Offline

    DeaGato

    20 ticks ~ 1 second
     
  5. Offline

    halvors

    Thanks :)
     
Thread Status:
Not open for further replies.

Share This Page