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

    FlingeR

    Version: v0.5
    Information:
    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.

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

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

    Example config.yml:
    Code:
    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!
    Changelog:
    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

    FortuneNL

    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

    FlingeR

    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

    mbsuperstar1

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

    At the moment it looks like just natural AND admin

    OR

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

    FlingeR

    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

    Waffle_Roflz

    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

    FlingeR

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

    Waffle_Roflz

  9. Offline

    wer2213

    Hi please help i've been trying to make the arena with respawning snow blocks like in this video: http://www.youtube.com/watch?v=8ROb2loBrgc&list=SL 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

    Jabbic

    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.

    so...
    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

    DerKB

    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

    @FlingeR
    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 :).
    -DanJames

    @FlingeR
    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,
    -DanJames

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

    Vash

    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

    anklesneeze

    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

    Hitman4Hire

    860 support? Please...
     
  17. Offline

    _Hayleigh_

    Any updates coming to this one?
     
  18. Offline

    Raycrash

    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

    cidiantoby

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

    FlingeR

    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

    @FlingeR
    ohhh that makes sense :)
    -DanJames
     
  22. Offline

    SoulSauce

    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

    Rellac

    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(ParserImpl.java:576)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:82)
    at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:157)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:207)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:130)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:128)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:378)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:312)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)


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

    Code:
    saveDelay : 300000
    respawn : [14, 15, 16, 21, 56, 73, 74]
    "14" :
    
    
    regDelay : 360
      regChance : 0.0
      useBlacklist : false
      canReplace :
    
    [14]
    "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
      canReplace
    
    : [56]"73" :
      regDelay : 360000
      regChance : 0.0
      useBlacklist :
    
    false
      canReplace : [73]"74" :
      regDelay : 360000
      regChance : 0.0
    
    
    useBlacklist : false
      canReplace : [173]
    Not sure what's up here.
     
  24. Offline

    MadcowD

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

    Pythros

    Multiworld support?
     
  26. Offline

    Moromillas

    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

    Telanis

    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 works.....place 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

    Telanis

    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

    Wolfwood428

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

    Myph

    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