[INACTIVE][ADMN] MotherNature v1.2 - Control the weather, Umbrellas, Timed weather [711]

Discussion in 'Inactive/Unsupported Plugins' started by Yetanotherx, Apr 22, 2011.

  1. Offline


    MotherNature - Control the weather:
    Version: v1.2

    So far, all the weather-controlling plugins have simply had commands for starting and stopping the weather. But what if you don't have any admins online and want rain? That's where this plugin comes in. Here, you set a time interval and duration, and it rains after a certain amount of time, every time! The process runs in a thread, so it is unaffected by lag. It also allows you to manually set rain, thunder, and even lighting! It also provides an umbrella, so you can stay dry even in the wettest weather! And, if you're feeling adventurous, holding gold boots and right-clicking a point anywhere in the world will strike a bolt of lightning!

    Download MotherNature v1.2
    Source Code


    Running the program the first time will make a config.yml file in the MotherNature/ folder. Here are the config values you can set:

    • debug - Debug mode. Should leave as false
    • rain
      • interval - Seconds between rainstorms
      • duration - How long the rain should last, in seconds
    • thunder
      • interval - Seconds between thunderstorms
      • duration - How long the thunder should last, in seconds
    • wand - Item ID if the lightning wand. Defaults to gold boots.

    • /mn help - Shows a help message
    • /mn version - Shows the version
    • /mn reload - Reloads the config
    • /mn rain - Starts a rainstorm
    • /mn thunder - Starts a thunderstorm
    • /mn lightning player - Strikes lightning down on a player
    • /mn sun - Makes the day sunny again
    • /mn umbrella - Holds an umbrella over your head
    In addition to the commands, holding gold boots (if you have permissions) and right-clicking will strike lightning on the block that you click, even if you're far away from it.


    MotherNature works best with either Permissions or GroupManager installed, but they are not required. Here is a list of permissions you can give them.

    • "mothernature.command.help" - Use "/mn help"
    • "mothernature.command.version" - Use "/mn version"
    • "mothernature.command.reload" - Use "/mn reload"
    • "mothernature.command.rain" - Use "/mn rain"
    • "mothernature.command.thunder" - Use "/mn thunder"
    • "mothernature.command.lightning" - Use "/mn lightning"
    • "mothernature.command.sun" - Use "/mn sun"
    • "mothernature.command.umbrella" - Use "/mn umbrella"
    • "mothernature.wand" - Use the lightning wand

    Version 1.2
    • General fixes
    • Umbrella added

    Version 1.1
    • Add the rain, thunder, lightning, sun commands
    • Add the lightning wand.
    Version 1.0
    • Releasing MotherNature
    DaEgo, smegmabob, Juze and 1 other person like this.
  2. Offline


    There is a tool that can extract biome data from the map - why can't we change that data on the fly? How exactly are biomes determined at runtime, because when I throw down some snow, it doesn't become a snow biome and I still get rain...

    Yeah, last item in the config file selects which item is the wand. Also, you should probably set permissions if you want to keep people from using it.

    It's a problem with SMP - /spawnmob command doesn't work right either.

    NEW EASTER EGG: Just found this, but it's probably known - hit a creeper with a lightning bolt and it retains an electric charge! Tazercreeper!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 13, 2016
  3. Offline


    can some1 show me what should I edit in the text file so I can get rain more often ? want it to be more like my hometown (seattle)
  4. Offline


    This would be real nice, also an option to turn on/off lightning fire ^^;
  5. Offline


    Simply perfect. I've had a very fun morning on my server, however my players would speak otherwise :p

    EDIT: Actually, I have a request! Can you make a setting that changes the severity of the storm, like the frequency of the lightning strikes? for example 1 would be barely any lightning and 10 would be 'ZOMG WE'RE GONNA DIE' lightning :)

    An admin could probably write out a command similar to this: /mn lightning 10. You could make the numbers to different names, like if you do /mn thunder with /mn lightning set as 10 it would say in that blue text:

    An incredibly dangerous thunderstorm is on it's way!

    (These names can be set in config.yml)

    I understand a similar result can be achieved with the wand and an admin, but I think an automated 'lightning frequency' system admins can use would be fairer than striking people down ;) It'll allow only me to use the wand aswell. Muhahaha :) Please consider this, great work on everything so far. My fave plugin on 1.5 :)

    Also! I know it's a lot to take in but you could allow a randomization of frequency (1-10), by a simple setting in the config.yml like:

    Allow lightning frequency randomization: true/false
  6. Offline


    @DannyCare you sir carry great evil :p

    But I like those ideas. Maybe have a configuration like so :
    - {20, 1, 'A very weak storm is approaching (1)'}
    - {15, 2, 'A minor storm is approaching (2)'}
    - {13, 3, 'A storm is approaching (3)'}
    - {11, 4, 'A mild storm is approaching (4)'}
    - {10, 5, 'A storm is approaching (5)'}
    - {10, 6, 'A big storm approaching (6)'}
    - {9, 7, 'Attention : Heavy storm approaching (7)'}
    - {6, 8, 'Warning : Strong storm approaching (8)'}

    Edit : Or make it ugrading rolls.
    Storm is lv 1. 50% chance its lv 2. If lv 2, 50% chance its lv 3. If lv 3, 50% chance its lv 4, etc...
  7. Could you turn off console reports it's spamming my serverside console

    arthoz likes this.
  8. Offline


    Yes? That tool jumps the Minecraft.jar to check the worldgen algorithm that the biomes are using, and generates files for a map generator to then use.

    They are generated by the game when it loads a chunk, and are permanently like that until the chunk is unloaded.
    They are not stored in any way, which means that the only way to change them is to change the worldgen code.
  9. Offline


    Can you make this plugin work from console? I'd really love to strike people during lunch at my work lol... seriously it'd be useful...
    DannyCare likes this.
  10. Offline


    I adore the functionality that allows me to turn on and off the rains, but if possible I'd like to let the game itself decide when to pop out rain naturally. Could an option to disable the timer be added?

    Aside from that I'm having an insane amount of fun with the lightning zapper, it's now my go-to mob killer. I have to be super careful near forests though!

    Now to find a mod that lets me apply the ghast fireball mini-explosion to the lightning strike spot.
  11. Offline


    Very cool. We will organize thunder-games on our server on a special Arena where players will burn each other using golden boots and thunder ! Thanks to your great plugin.


    Cool, amazing.

    Some wooden stuffs does not burn, as wooden stairs, fences, wooden slabs ! Something to claim to Notch :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 13, 2016
  12. Offline


    I'm have a weird issue...plugin-created thunderstorms don't lower the light level to 7 like naturally-occurring thunderstorms on my server do, so monsters don't spawn in a thunderstorm. Rainstorms lower the light level slightly like natural ones though, so I don't know what's wrong.
  13. Offline


    It seems to be a bug with fire and rain into the Minecraft server version : rain does not extinct the fire.
    To fix that, you can use this great plugin (worked for me) : http://forums.bukkit.org/threads/firefix.14019/
  14. Offline


    Very much so! That's perfectly logical to me. I prefer the first one though, i like a bit of randomness :) I love a highly configurable plugin.
  15. Offline


  16. Offline


    I changed config, so I can use my diamond sword to summon lightning, but it doesn't work. Do I really need permission plugin installed? I'm using cb #732 bty.
  17. Offline


    On CB#733 with MN 1.2:

    Tried to do /mn umbrella and got this:

    06:18:48 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'mn' in plugin MotherNature v1.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NoSuchMethodError: com.Android.magiccarpet.Carpet.<init>(Z)V
            at yetanotherx.bukkitplugin.MotherNature.command.UmbrellaCommand.onCommand(UmbrellaCommand.java:45)
            at yetanotherx.bukkitplugin.MotherNature.MotherNatureCommand.onCommand(MotherNatureCommand.java:41)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    I'm guessing that might be a conflict with MagicCarpet?
  18. Offline


    Try using it without the magic carpet and see if the problem still occurs.
  19. Offline


    Could someone explain to me what the settings in the config for thunderstorms mean? I understand how frequently rain occurs, but the frequency of thunderstorms don't seem to match up with the config values.
  20. Offline


    OMG Electric Spleef
  21. Offline


    The /mn reload doesn't work even the command said so. I have to restart my server everytime I changed the config file.

    EDIT: I don't think changing the config doesn't do anything for some reason. The rain only last 120 seconds when I set it to 1200.

    Using cb#733
    EDIT 2: I got it working. I just deleted a folder and create a new one. Then I carefully set new times. I didn't know config file can be so sensitive.
  22. Offline


    This plugin doesnt work for me. When i type /mnhelp or any other command it comes a Message: An internal error occured while attempting to perform this command.

    Pls help
  23. Offline


    Can i make disappear the Lightnings with this plugin?
  24. Offline


    you should add snow and for the command have it something like /mn snow <radius>
  25. Offline


    I think that'd be way beyond the purpose of this plugin. What this one does is make everywhere rain/snow depending on the biome players are in.

    Forcing snow for only a radius would require a lot more modification.
  26. Offline

    Edgard Mok

    how disable thunder ? thx you.
  27. Offline

    The PC Tech Guy

    If it's your buildings catching on fire that you're concerned with, then check out PlgColdLightning.

    Worldedit has /snow <radius> and /thaw <radius>, although I don't think it would change the biome.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 13, 2016
  28. Offline


    It would be great if we could start timed rain or thunderstorms, like /mn thunder seconds
  29. Derp it does thunder if you dont have mods but... its extreamly rare XD
  30. Great plugin! Thank you for this!
  31. Offline


    is that normal that lightning can't damage pigzombies? :) i used wand-tool and can't killed them.

Share This Page