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.
[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
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
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.
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>
[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.
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?
Sorry iron wasn't fixed now it is <Edit by Moderator: Redacted mediafire url> EDIT: Only supports the ones listed
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.
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.
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.
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 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.
No problem! Glad I could help Also, it is waiting approval here if you ever need to find it in the future: http://dev.bukkit.org/bukkit-plugins/ore-respawn/
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.
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.