[INACTIVE][MECH] GrowingOre v0.6- Public mines [860/935]

Discussion in 'Inactive/Unsupported Plugins' started by Streammz, May 6, 2011.

  1. Offline

    Streammz

    GrowingOre
    Version: 0.6

    With this plugin, you can make public mines easily with ores that respawn after a set time.
    It also has a small chance of baby ores to be born in 5x5 around the ore.
    It makes use of the build-in OP, not by permissions

    Features:
    • Registering specific respawning ores
    • Set-able respawn time
    • Chance of new ores to be spawned in 5x5 area around the ore
    • Timer keeps counting after the server has been restarted (!)
    • Selecting blocks in a radius around you (0.3)
    • Respawning all ores in the world if configured (0.5)
    Download:
    v0.6 - Download


    Commands:
    Code:
    /ore add <itemID> <minutes>
         remove <radius>
         count <radius>
         select
               none
               radius <size>*
         register <radius>*
    
    * = Heavily lags server when used with too high parameters

    Settings file:
    Show Spoiler

    ######General settings######
    Worldwide=false
    GrowTemp=true
    ToolID=295
    Debug=false

    ######Default values for ores######
    GoldTime=90
    IronTime=60
    CoalTime=30
    LapisTime=300
    DiamondTime=600
    RedstoneTime=150


    How to register ores:
    When your an OP, you can select ores using the <ToolID> as tool.
    Whenever you think you have selected all the ores you need, you need to register them:
    use /ore add <itemid> <minutes of delay>
    as example: /ore add 56 15 - respawns diamond ore (ID 56) 15 minutes after it is mined.

    v0.6
    You now can register ores in an radius around you using /ore register <radius>

    Frequently asked questions:
    Show Spoiler

    Q: How do I need select the ores I want to respawn?
    A: Using the tool "seeds" ( /give seeds ), you can right-click the blocks you want to register

    Q: Where do I get the itemID's that I need to use for the ores?
    A: http://www.minecraftwiki.net/wiki/Data_values

    Q: How do I register the selected ores?
    A: using /ore add <itemID> <minutes of delay>

    Q: My ores don't respawn, they just turn into cobblestone/smoothstone
    A: The script calculates the time it needs to change into a specific ore, You'll just have to wait longer

    Q: What happens if i /reload or stop the server?
    A: The script will save all timing / ore data, and will start counting again after the script starts again.

    Q: How do i remove my selected ores?
    A: /ore select

    Q: How do i select all ores around me?
    A: /ore select radius <size>

    Q: I get errors with "OutOfMemoryUsage", should I ignore them?
    A: Please report the error in here, with some information when it happens, how much ores you have registered, selected etc (details helps me improve RAM usage)

    Q: Hello!
    A: Hey :)


    Video:


    Changelog:
    v0.6
    • Fixed all radius effects
    • Fixed wrong folders due to capitals in linux
    • Added /ore register <radius> - registers ore with the default time in settings.txt
    • performance tweak (i wonder how many i can find more of these, they seem pretty common)
    Show Spoiler

    V0.5
    • Support for explosions like creepers/tnt
    • Settings file (auto-generated on load)
    • Possibility to grow all ores in the world
    V0.4
    • Improved RAM usage again (forgot that we don't need timers with 0 delay at startup)
    • Changed the way that /area select radius <radius> works, and its now at least 2x as fast. (also changed limit to 200 radius now)
    V0.3
    • DRASTICALLY improved RAM usage (2500MB to 440MB, anyone?)
    • added /ore select radius <radius>
    • Changed timers to only eat RAM when they are activated
    • fixed baby ores overwriting registered ores
    • Fixed a lot of other major stuff.
    V0.2
    • Fixed using /ore without any parameters
    • Fixed timers if you do /ore remove
    V0.1
    • First release
     
    kahlilnc, po5 and Killie01 like this.
  2. Offline

    po5

    If i blow up the ore with tnt it wont regenerate
     
  3. Offline

    Streammz

    blockBreakEvent currently doesn't work with explosions etc
     
  4. Offline

    po5

    We must get this to the cb developers attention :)
     
  5. Offline

    Streammz

    V0.4 out!
    • Improved RAM usage again (I did forgot that we don't need timers with 0 delay at startup)
    • Changed the way that /area select radius <radius> works, and its now at least 2x as fast. (also changed limit to 200 radius now)
     
  6. Offline

    Ross Gosling

    can you please allow for complete world respawn and select ores through the config
     
  7. Offline

    Streammz

    I'll add that, but also, do you prefer default delay, or configurable? (the minutes before respawn)
     
  8. Offline

    Ross Gosling

    i like being able to configure the time because i you mgiht not want diamond respawning the same amount of times as coal or something
     
  9. Offline

    po5

    hey mate, do you think you can make it configurable wether or not there should be a chance for new ores to spawn? They will take over my server in the matter of days if they just keep expanding like they do now :)
     
  10. Offline

    Streammz

    The respawned ores won't respawn any more, so they won't take over your server ;)
    however, i'll add that
     
  11. Offline

    Ozonepheonix

    Awesome, great for minigames and such. Will add tomorrow, please make a vid on it!
     
  12. Offline

    Takel

    Could you also add a configuration to change what tool is used to select ores (or simply disable using a tool to select the ore)? Using seeds is a little bit troublesome as you can accidentally trigger a selection when you're planting a field, or when you accidentally right-click on a chest while holding seeds (that causes a disconnect due to a null pointer exception)
     
  13. Offline

    Streammz

    Also will be added, but even if you change the tool and click on the chest, it will crash your client. Its becouse the chest his ID is changed while its still open



    V0.5 out!
    • Support for explosions like creepers/tnt
    • Settings file (auto-generated on load)
    • Possibility to grow all ores in the world
    Settings file (open)

    ######General settings######
    Worldwide=false
    GrowTemp=true
    ToolID=295
    Debug=false

    ######Default values for ores######
    GoldTime=90
    IronTime=60
    CoalTime=30
    LapisTime=300
    DiamondTime=600
    RedstoneTime=150


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

    po5

    i cant seem to find the config file, and it seems the plugin spawns 2 directories now. one called GrowingOre and one called growingore. my server runs on linux btw.
     
  15. Offline

    Streammz

    Wups, i totally forgot about the capitals... Sorry about that, 0.6 will be out in about 30 minutes, with a fix for that too

    V0.6 out!
    • Fixed all radius effects
    • Fixed wrong folders due to capitals in linux
    • Added /ore register <radius> - registers ore with the default time in settings.txt
    • performance tweak (i wonder how many i can find more of these, they seem pretty common)

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

    kehran

    Is it possible to add a seconds interval because i would like some ores to spawn in seconds for example 1 minute and 30 seconds or 45 seconds etc.
     
  17. Offline

    Ambedrake

    I second the seconds delay, we are actually using this as a specific form of protection in a PvP arena. Basically when people are in the arena they can break what they want during the fight but in the end the arena will re-spawn itself. However I would like seconds for the arena walls which are not supposed to be broken in the first place but at times accidentally do ^_^.

    Also due to flatfiles corrupting so easily is there a way to make this database driven or an option for it? We like to use our SQL server as much as possible =P
     
  18. Offline

    Zalastri

    So I'm not sure how I can use this plugin to do what I'd like. I want to make a public mine who's stone/non-ore material is unbreakable, but where the ores respawn regularly. (A cave system, perhaps) Anyone know what plugins are needed to do this?
     
  19. Offline

    Rurikar22

    Is there a way to have it not grow the cobblestone/smoothstone blocks? I have been using this for an enchanted "garden" that makes flowers and mushrooms grow back.
     
  20. Offline

    Streammz

    I've had been thinking about giving specific items not grow stone/cobble, but i'll change that in the weekends if i do so. currently got my exams so i'll be inactive for 2 weeks but the weekends
     
  21. Offline

    Rurikar22

    Understandable Steammz. I'll have a video soon showing off what were using it for on our server to give you some ideas :)

    Love the plugin
     
  22. Offline

    Exician

    Plugin seems to work just fine at first, but when i stop my server and reset it. The ores quit regenerating. I just recently started testing it and i used 1 of each ore and put it on a 1 min respawn time. They all spawned perfectly, but as i said when i stop the server and reload they quit spawning..is this a bug or am i doing something wrong?

    Great Plugin though

    Ah nevermind scratch what i said above...fyi to other idiots like myself

    stop your server properly!! dont click the X cuz it tends to not save things lol
     
  23. Offline

    Streammz

    @Exician if you don't use /stop or /reload before stopping the server, craftbukkit won't disable plugins and thus not make this plugin save data ;)
     
  24. Offline

    Exician

    yea i feel like a idiot(i am new to running a server though) but all this time(bout 2 weeks now) ive just been hitting the X to stop the server...i wonder what other damage ive done lol if i think real hard i might be able to answer some of my "why is this not saving or why is this acting up" questions lol

    but as i said very good plugin plz keep up the work:)
     
  25. Offline

    Zalastri

    Hey, can you make this multiworld? I'd like to have one world have all ore respawn, or set ores respawn, and have another world have no ore modification whatsoever.
     
  26. Hey this plugin isn't working for me. I'll set the respawn on one coal ore block and it will respawn but then another block will turn into coal aswell. I checked the ore count in that radius and it only said one was registered. I need help!
     
  27. Offline

    Streammz

    thats the baby-ore function, you can disable that in the settings
     
  28. Offline

    Kostronor

    Can you add an option on how big thechance togrow baby-ores is?
    that would be awsome! :D
     
  29. Is that the part that says GrowTemp?
     
  30. Offline

    Streammz

    yep, it is
     
  31. Offline

    John Garettt

    Nice Plugin Dude,
    I got one question, when i close server, why my select mines for respawn don't respawn?
    Is there anything you could do to make: /save ores ? And so on, I can't wait to v1.0 :)
     

Share This Page