Ore Respawn

Discussion in 'Archived: Plugin Requests' started by Snowybearr, Jun 17, 2014.

  1. Offline

    Snowybearr

    Suggested name: Ore Respawn

    What I want: There has been many plugins over the years of Bukkit that do this feature. All of which have been abandon or become inactive. Others are overly complicated for such a simple feature.

    The basic idea is; When ore is mined, the block is replaced with bedrock. After X amount of seconds/minutes that ore is replaced back with the original ore. Some plugins require regions and a bunch of complicated configuring, what I would like to see is just a simple config where you can set the material and the time it takes for it to respawn.

    Two other things to consider are, restarting the server to keep track of the respawn time (or just make it respawn on disable if it's easier). The last thing being each ore having it's own timer, I have seen a few that respawn in 'waves' and that won't really work for my specific need.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin.

    When I'd like it by: Tonight if possible, I know this is a little demanding but I really do need this as soon as possible.

    Final Note: If you check similar plugins comments or do a google search, you will see many people trying to get outdated ones working or trying to figure out how to make it themselves. This plugin would be used by many I think.

    Thanks in advanced. :)
     
  2. Offline

    The Fancy Whale

    I will make this for you.
     
    Snowybearr likes this.
  3. Offline

    Onlineids

    SnowybearrEDIT: Sorry @TheFancyWhale :'(

    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 2, 2016
    Snowybearr likes this.
  4. Offline

    The Fancy Whale

    [quote uid=90875889 name="Onlineids" post=2584177]SnowybearrEDIT: Sorry TheFancyWhale :'(

    <Edit by Moderator: Redacted mediafire url>

    Oh I just made one too :/
    <Edit by Moderator: Redacted mediafire url>
    Btw you tahg me with The Fancy Whale
     
    Last edited by a moderator: Nov 2, 2016
    Snowybearr likes this.
  5. Offline

    Snowybearr

    Onlineids The Fancy Whale
    Thank you both of you! Any chance one of you could do per block type timers? It was one thing I forgot to mention in the post sorry.

    So you could do something like:
    Code:
    IRON_ORE:
      RespawnTime: 10
    DIAMOND_ORE
      RespawnTime: 40
     
  6. Offline

    The Fancy Whale

    Snowybearr likes this.
  7. Offline

    Snowybearr

    The Fancy Whale
    Oh, and if it's not to much trouble maybe just wrap the event in a creative mode tag, so if you break in creative it doesn't do anything but just normally break the block. Not that big of a deal, but would make it easier to setup. :)
     
  8. Offline

    The Fancy Whale

    Here you go.
    Added the creative thing and the ores config.
    DELETE THE OLD CONFIG BEFORE YOU RESTART/RELOAD!
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 2, 2016
    Snowybearr likes this.
  9. Offline

    Onlineids

    Snowybearr likes this.
  10. Offline

    The Fancy Whale

    [quote uid=90875889 name="Onlineids" post=2584243]The Fancy Whale Might want to add the ore respawning on disable[/quote]

    Just added that uploading now

    Here you go:
    <Edit by Moderator: Redacted mediafire url>
    now if you reload/restart it won't break the server ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 2, 2016
  11. Offline

    Snowybearr

    The Fancy Whale
    Thank you very much! Just out of curiosity does it support any material you list, or is it just the ones listed?
     
  12. Offline

    The Fancy Whale

    Sorry iron wasn't fixed now it is
    <Edit by Moderator: Redacted mediafire url>
    EDIT: Only supports the ones listed
     
    Last edited by a moderator: Nov 2, 2016
  13. Offline

    Snowybearr

    The Fancy Whale
    Would you mind throwing in glowstone and quartz as well then please? Sorry for so many requests heh, thanks for all the help so far. :)
     
  14. Offline

    The Fancy Whale

  15. Offline

    Snowybearr

    The Fancy Whale
    Isn't there something like @EventHandler(ignoreCancelled = true)? I noticed with my skill plugin even if I don't have the required skill to mine something and it cancels the event, this still replaces it with bedrock.

    Can't remember if that is exactly it, but that would be cool too. ;)
     
  16. Offline

    The Fancy Whale

    Code now much more efficient and is compatible with any item:
    <Edit by Moderator: Redacted mediafire url>

    Now checks if event is cancelled before it replaces with bedrock:
    <Edit by Moderator: Redacted mediafire url>

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 2, 2016
  17. Offline

    Snowybearr

    The Fancy Whale
    Redstone seems to have got broken in the newest version. I do believe it turns into REDSTONE_LIGHT_ORE or something once you hit it, that could be why.

    Will try the event one now. :)
     
  18. Offline

    The Fancy Whale

    [quote uid=48505 name="Snowybearr" post=2584281]The Fancy Whale
    Redstone seems to have got broken in the newest version. I do believe it turns into REDSTONE_LIGHT_ORE or something once you hit it, that could be why.

    Will try the event one now. :)[/quote]

    Ah I see the issue in the code I will do a separate thing for just redstone.

    Should fix redstone ore
    <Edit by Moderator: Redacted mediafire url>

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 2, 2016
  19. Offline

    Snowybearr

    The Fancy Whale
    Yup yup, everything works perfect now. Thank you so much! :)
     
    The Fancy Whale likes this.
  20. Offline

    The Fancy Whale

  21. Offline

    Onlineids

    The Fancy Whale I need to start uploading plugin requests too I guess I would have over 50 plugins
     
  22. Offline

    The Fancy Whale

    I don't always do. Just ones where I think other people might want them. If I think it'll benefit the community I may as well throw it up there.
     
  23. Offline

    timtower Administrator Administrator Moderator

    Damn that isn't a lot :p
     
  24. Are you possibly able to add any Block ID in?
     
  25. Offline

    The Fancy Whale

    Already supports that. http://dev.bukkit.org/bukkit-plugins/ore-respawn/ Check out that for future updates and the current download. Currently working on adding an optional randomizer when block is replaced.
     

Share This Page