Inactive [MECH] AnyReg v0.5 - Respawns destroyed blocks (like ClayReg, but for any block) [1000]

Discussion in 'Inactive/Unsupported Plugins' started by FlingeR, Apr 5, 2011.

  1. Offline


    Version: v0.5
    This plugin has been made by DiddiZ, i only fixed it to work with the latest version of CraftBukkit, i will keep manteining and working on it while DiddiZ keep working on his new plugins.

    AnyReg mainly respawns mined clay blocks at a adjustable rate.
    AnyReg initially was released as ClayReg, that only was able to respawn clay. For every block type different settings can be made. If the config can be precised which block respawns at which rate, with which percentage, which blocks can pe replaced by a respawning block and wether player placed blocks should respawn. Due to some blocks beeing very rare, it could be preferable to have regenerating these blocks.
    E.g. respawning clay will replace air and water but nothing else so you can build on a claypit withhout getting blocks from the building replaced. Created clay blocks will be detected, so you can place new clay pits (or not depending of the config). Blocks destroyed with super pickaxe or WorldEdit/CuboidPlugin like editors won't respawn.
    This also appies to AnyReg, unless AnyReg isn't limited to clay. Ideas for regenerating blocks:

    • Clay
    • Pumpkins
    • Flowers and mushrooms
    • Ores and coal
    • Sand
    • Snow
    • Lightstone
    I'm sorry for the short default config only containing clay and pumpkins, a larger version is comming with the regions update, that will propably crash the actual config.

    • Respawns mined selected block
    - Download v0.5
    - Source Code

    Example config.yml:
    saveDelay : 300000
    respawn : [82, 86]
    “82″ :
    regDelay : 360000
    regChance : 0.1
    useBlacklist : false
    canReplace : [0, 8, 9]
    “86″ :
    regDelay : 4320000
    regChance : 0.05
    useBlacklist : true
    canReplace : [0]
    saveDelay - Time in ms between two all block files save cycles in ms (0 to deactivate)
    respawn - Block ids of the blocks that are going to respawn
    regDelay - Timedelay between two regeneration cycles (in milliseconds)
    regChance - Chance of regenerating clay (0.1 means 10%)
    useBlacklist - Determines if placed blocks shall regenerate or be listed in the blacklist to not respawn. In case of not using the blacklist only natual ressources and admin placed blocks respawns
    canReplace - Blocks that can be replaced by a respawning block (0 is air and 999 is any)

    More info and older versions:
    - DiddiZ AnyReg web page.

    Known Bugs:
    • None so far!
    Version 0.5
    • Added code to replace any block with "999" option.
    • Fixed for CB-670.
    Version 0.4
    • Fixed for CB-617.
    MadcowD likes this.
  2. Offline


    Seems nice, but if you minne FE sand, and then mine the blockk under it, will thesand fall? (i guess so)
    And if you mine 1X1 tunnel, will you get suffocated?
  3. Offline


    yes, but you can use the "canReplace" to manage if the sand is replaced or not.

    If you are standing in a place in which the blocks regenerate it may suffocate you, but i will look into it, maybe i can add a option for not replacing blocks if a player stands on that position.
  4. Offline


    Is there any way of making it ONLY regenerate admin placed blocks?

    At the moment it looks like just natural AND admin


    Natural and all placed, and I don't want natural resources to regenerate.
  5. Offline


    I could add support for permissions plugin, and then you could define witch groups will be blacklisted or not, i will talk with DiddiZ about this.
  6. Offline


    Is there any way in the config that I can set the block that will respawn to replace any block without typing every id number of every block?

    For example:

    canReplace : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, etc.]

    Instead of typing all of them is there anyway that it would be possible to instead type:

    canReplace : [0 - 94]

    Or even just something like:

    canReplace: all
  7. Offline


    - Fixed for CB-670.
    Also you can use now:
    999 = any block.
  8. Offline


  9. Offline


    Hi please help i've been trying to make the arena with respawning snow blocks like in this video: on my server!
    And it seems this mod is supposed to help but i cant get it to work can you please help?
  10. Offline


    I love this mod, it is one of the first i got for my server. but there is one problem... one person in my server is digging a huge pit and ore keeps re spawning in it creating random patches of floating ore, and it also is a problem if you are trying to make a underground cave house. I know there are ways to stop it from re spawning, but it would be nice to not have to get an admin to go in and use world edit to fix it.

    Can you make it so ore will not re spawn unless it is within 2-3 blocks of rock or dirt?
  11. Offline

    Justin Hawtree

    Can you explain to me in detail what saveDelay and regdelay do?
  12. Offline


    How about MultiWorld support? Would be real nice to have.
    And well yes the part with respawning ore in open air is well not that nice.
  13. Offline

    Daniel Few

    heya, nice plugin. I'm using it on RPG server to respawn ores and trees.
    One question, i set 60,000 as the re-spawn time (60000) which i assume takes 1 minute to re-spawn. However it's not very accurate. Sometimes it spawns 45 seconds, sometimes 50. Is there a way to fix this? If not, it really doesn't matter :).

    Sorry one more question, forget about the one above.
    Sometimes, when deleting a respawnable block, it re-appears instantly, or only after 2 seconds even though I have it set to 60 seconds. The problem that could come up with this is when I use it on Diamond ore which respawns every 50 minutes, it would be bad for that to respawn fast. Is there a way to fix this problem?
    Thanks again for making this,

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


    Would love to see permissions support to this plugin! Would like have the ability to select certain Admin placed blocks to regen but not naturally, that way it wont effect the world but if something happens to the admins' structures they don't have to worry about repairing them.
  15. Offline


    Not sure if this is what im looking for. I would like to define and area and fill it with solid logs or other material then have them regenerate over time just in that area not everywhere on map. To create a limited resouce cache for a guild.
  16. Offline


    860 support? Please...
  17. Offline


    Any updates coming to this one?
  18. Offline


    Permissions would be good.
    I would like to use the admin placed blocks only.
    Or is there a similar mod which "regens" blocks over time ?

    (Region based could be also cool)
  19. Offline


    This plug need to be marked inactive...
  20. Offline


    The Plugin is working in 1000.
    Sorry for not keeping the updated plugin, I had problems with my computer but now I'll go with it.

    @Daniel Few
    The block regenerates itself every N ms, so if you destroyed the block in the N-M ms it will respawn in the remaining time.
    The clock is always ticking.

    About new developments:
    I'm only the mantainer of this plugin, I will try to keep it simple for further development from DiddiZ.
  21. Offline

    Daniel Few

    ohhh that makes sense :)
  22. Offline


    I hope you don't mind, but I added world guard interface to your plugin so it only regens in certain areas. I setup a pvp zone in my server where clans can fight over regenerating resources. This plugin is AMAZING for that... with worldguard restricting a region where ores will regenerate.

    I can show you the changes I made if that is an interesting option for you to add to your plugin.
  23. Offline


    I'm getting the follwing hefty error whenever I load up the server:

    Show Spoiler
    [SEVERE] Could not load 'plugins/AnyReg.jar' in folder 'plugins':
    while parsing a block mapping
    in "<reader>", line 9, column 3:
    regDelay : 360000
    expected <block end>, but found Scalar
    in "<reader>", line 12, column 20:
    canReplace : [15]"16" :

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(
    at org.yaml.snakeyaml.composer.Composer.composeNode(
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(
    at org.yaml.snakeyaml.composer.Composer.composeNode(
    at org.yaml.snakeyaml.composer.Composer.composeDocument(
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(
    at org.yaml.snakeyaml.Yaml.load(
    at org.bukkit.util.config.Configuration.load(
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    at org.bukkit.craftbukkit.CraftServer.reload(
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(
    at org.bukkit.command.SimpleCommandMap.dispatch(
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
    at net.minecraft.server.MinecraftServer.b(
    at net.minecraft.server.MinecraftServer.h(

    Here's my config:
    (the low respawn value for gold is for testing)

    saveDelay : 300000
    respawn : [14, 15, 16, 21, 56, 73, 74]
    "14" :
    regDelay : 360
      regChance : 0.0
      useBlacklist : false
      canReplace :
    "15" :
      regDelay : 360000
      regChance : 0.0
      useBlacklist : false
    canReplace : [15]"16" :
      regDelay : 360000
      regChance : 0.0
    useBlacklist : false
      canReplace : [16]"21" :
      regDelay : 360000
    regChance : 0.0
      useBlacklist : false
      canReplace : [21]"56" :
    regDelay : 360000
      regChance : 0.0
      useBlacklist : false
    : [56]"73" :
      regDelay : 360000
      regChance : 0.0
      useBlacklist :
      canReplace : [73]"74" :
      regDelay : 360000
      regChance : 0.0
    useBlacklist : false
      canReplace : [173]
    Not sure what's up here.
  24. Offline


    Fucking awesome for my quests on my server!
  25. Offline


    Multiworld support?
  26. Offline


    I... can't get this working. Tried may different config setups, yet I can't get anything to respawn. No errors in console either /shrug. Using build 1060.
  27. Offline


    Works perfect with Minecraft 1.1 and Bukkit 1680.

    Where is the Permission Support? Have a Idea tha really only Admin placed Blocks respawn? At the Moment alle Blocks with the ID´s respawn. When i try to create a farmarea, a Player collect Cole, take it Home, place the Block in his Home and then the Block allready spawns in his Home....

    EDIT: It alle Blocks that should respawn...then go to the config File and turn on: useBlacklist: true

    Then all new Blocks you set dont respawn
  28. Offline


    Hmm dont know at my Server nothing works.......there is no Respawn equal what time i set !

    Someone has an Idea?

    Bukkit 1.1R3

    Think its a Problem with the new Bukkit version......plz Fix that because i need it for my public Mines !
  29. Offline


    how in the hell do i download this???
  30. Offline


    Would you be able to update the Download Location, i'm getting the classical error 404, page not found.
    Seems like a lovely plugin and I would love to test it out. Thanks.

Share This Page