[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

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    Configuration:

    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.
    Usage:

    • /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.

    Permissions:

    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
    Changelog:

    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.  
  3. Offline

    JagJuster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Need help im new at this and i have a mac the umbrella and help works for this but when i try to make it rain or lightning it says internal error has occured. Please help. I think i installed it proporly, but this plugin...looks...GREAT!!!
  4. Offline

    blutherz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    great i love the golden boots :)
  5. Offline

    killabb23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You can add Snow! I would love to make the place I live in (MC) snowy! and Also I have permissions and I gave myself all the commands, but when I try to use /mn lighting it doesn't work.. I just get /mn help.. Do I have to do it in a thunder storm?
  6. Offline

    Lookatmego

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:650)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:613)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:607)
    at net.minecraft.server.Packet3Chat.a(SourceFile:36)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:73)
    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: org.bukkit.World.setStorm(Z)V
    at yetanotherx.bukkitplugin.MotherNature.command.RainCommand.onCommand(RainCommand.java:31)
    at yetanotherx.bukkitplugin.MotherNature.MotherNatureCommand.onCommand(MotherNatureCommand.java:41)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more


    cb 707
  7. Offline

    jaybud4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    [711]

    Specifically, the hooks that this requires were added in 709.
  8. Offline

    Nerozx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    why there isn't a snow starting command?
  9. Offline

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    To all the people asking, if you want snow, you must be in a snow biome.
  10. Offline

    CasioBeatz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    thank u^^
  11. Offline

    revfeuerfrei

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Question, can we have a nothunder config option, where I can tell the server no thunder unless it's called upon by an admin, we've had some fantastic fires.

    Or, is setting duration of thunder to 0 a way of already doing this.
  12. Offline

    krnel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks for the plugin!

    Can you add setting to the config to disable certain aspects? Disable/enable: thunder, rain, permanently, and by MultiWorld?

    Thank you.
  13. Offline

    4am

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Probably a question for WorldEdit but is it possible to edit biome types to achieve this?
  14. Offline

    jaybud4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Biomes are determined at runtime, they're not saved.
    A change to the worldgen code would be required for that.
  15. Offline

    epiqu1n

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I like this plugin, but I don't really like the fact that it overrides the default weather patterns. Perhaps make an option to specify an upper and lower boundary for interval and duration, allowing for a bit of randomness in when storms occur?

    Also, does the thunder option specify when thunderstorms occur, or when thunder during a rainstorm occurs?

    Edit:
    Two things I've noticed which I'm not sure if they are a problem with your plugin or with SMP: Summoned lightning strikes will cause fire, but not a lasting fire, and summoned lightning strikes on pigs will create multiple pig-zombies, one server-side that acts like normal, and one to a few client-side ones that are not killable and do nothing but push you around (until you disconnect and reconnect).
  16. Offline

    Icalasari

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Any chance of letting the server owner decide which item has lightning powers? This way, I could, for example, set it to the Gold Pickaxe (my texture pack has them as hammers) on my private server, and on other servers, one could make it, say, a Music Record to make it extremely rare
  17. Offline

    4am

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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...
  18. Offline

    4am

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  19. Offline

    4am

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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!
  20. Offline

    Noxturno

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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)
  21. Offline

    arthoz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This would be real nice, also an option to turn on/off lightning fire ^^;
  22. Offline

    DannyCare

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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
  23. Offline

    ZachBora

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @DannyCare you sir carry great evil :p

    But I like those ideas. Maybe have a configuration like so :
    %chance,power,text
    - {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)'}
    - {5, 9, 'WARNING: VERY STRONG STORM APPROACHING (9)'}
    - {1, 10, 'DANGER : EXTREMELY DANGEROUS STORM APPROACHING (10)'}

    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...
  24. Offline

    fitzy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Could you turn off console reports it's spamming my serverside console

    arthoz likes this.
  25. Offline

    jaybud4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  26. Offline

    ZachBora

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  27. Offline

    TankFox

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  28. Offline

    tickleman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
    Thx.
  29. Offline

    tickleman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Some wooden stuffs does not burn, as wooden stairs, fences, wooden slabs ! Something to claim to Notch :)
  30. Offline

    _LB

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  31. Offline

    tickleman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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/
  32. Offline

    DannyCare

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.

Share This Page