Filled Block regenerates after a certain time

Discussion in 'Archived: Plugin Requests' started by roundrider, Sep 5, 2013.

  1. Offline

    roundrider

    Hey, I'm looking for a plugin that does this:
    *Player breaks stone with a certain tool*
    *Stone turns into Cobblestone*
    *Player gets one Cobblestone item*
    *After 30 seconds the Cobblestone block turns into Stone again*

    I saw it on a server and I would really, really like to have something similar on my server.

    Thanks!
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    roundrider

  4. Offline

    K3YD0N

    http://dev.bukkit.org/bukkit-plugins/mineralmanager/ Config to decide what blocks how long and what block they look like while not being able to be mined.
     
  5. Offline

    roundrider

    I don't really understand the mechanics of the plugin, and after creating an area etc... It doesn't work. Isn't there a better plugin? Or is it possible to develop it on my own if it's easy? Thanks.
     
  6. Offline

    bobacadodl

    https://dl.dropboxusercontent.com/u/109617084/BlockRegen.jar
    Here, I made this really quick since I needed it for my own server.

    config:
    Code:
    Blocks:
      LOG:
        minTime: 10
        maxTime: 15
        data: 0
      #BLOCKNAME:
        #minTime: 10 » minimum random time (in seconds)
        #maxTime: 15 » maximum random time
        #data: 0 » block data value. if empty, all datas will regen
    instant-inv: true
    #should the block instantly go into their inventory, or should it drop normally?
    Block names must be a valid material name. See http://jd.bukkit.org/dev/apidocs/org/bukkit/Material.html
     
  7. Offline

    K3YD0N

    So this one dosent need any areas defined its just server wide?
     
  8. Offline

    bobacadodl

    Yes, server wide
     
  9. Offline

    roundrider


    Thank you, I'll take this one :D

    Wait, it doesn't turn the block into another while it doesn't regenerate?

    <Removed double post - Use edit button to edit your post - Necrodoom>
     
  10. Offline

    bobacadodl

    No, it just turned into air. Here, I made a new version which lets you make it turn into another

    https://dl.dropboxusercontent.com/u/109617084/BlockRegenv2.jar

    Config:
    Code:
    Blocks:
      LOG:
        minTime: 10
        maxTime: 15
        data: -1
        change: AIR
        changeData: -1
      IRON_ORE:
        minTime: 30
        maxTime: 40
        change: COBBLESTONE
        changeData: -1
    instant-inv: true
     
  11. Offline

    roundrider

    Niiiiiiiiiice! You should post it in BukkitDev, it's simple, but really useful!

    I'm sorry if this is too much but now it would be awesome if it was only active for people in Survival mode.

    Ex: I'm building a town, so I accidentally place a stone, now, I can't delete it if I don't remove the plugin itself. It's a little bit awful xD

    <Removed double post - Use edit button to edit your post - Necrodoom>
     
    bobacadodl likes this.
  12. Offline

    bobacadodl

    Good idea, I could add that pretty quick
     
  13. Offline

    roundrider

    Nice, would you keep me updated?
     
  14. Offline

    bobacadodl

  15. Offline

    amitkilo

    Looks intersting, Gonna use it :)
     
    bobacadodl likes this.
  16. Offline

    roundrider

    Last edited by a moderator: Jun 4, 2016
    bobacadodl likes this.
  17. Offline

    bobacadodl

    Its in one of my comments above..
    "change: COBBLESTONE" makes it change to cobble
    "changeData: -1" sets change data value
     
  18. Offline

    K3YD0N

    bobacadodl I'm using it to change my wood back to wood again after a certain amount of time but when it doesthe sideways log blocks don't change back only the regular upwards facing ones! (I tried adding them to the config for them but it didn't work)

    Edit: Nvm i was trying to change the id in the wrong spot XD
     
  19. Offline

    roundrider

    Well I found a bug (I think).

    Here's my code:
    Code:java
    1. Blocks:
    2. LOG:
    3. minTime: 15
    4. maxTime: 30
    5. data: -1
    6. change: WOOD
    7. changeData: -1
    8. IRON_ORE:
    9. minTime: 45
    10. maxTime: 60
    11. data: -1
    12. change: COBBLESTONE
    13. changeData: -1
    14. COAL_ORE:
    15. minTime: 30
    16. maxTime: 45
    17. data: -1
    18. change: COBBLESTONE
    19. changeData: -1
    20. GOLD_ORE:
    21. minTime: 60
    22. maxTime: 90
    23. data: -1
    24. change: COBBLESTONE
    25. changeData: -1
    26. STONE:
    27. minTime: 15
    28. maxTime: 30
    29. data: -1
    30. change: COBBLESTONE
    31. changeData: -1
    32. MELON_BLOCK:
    33. minTime: 45
    34. maxTime: 60
    35. data: -1
    36. change: LEAVES
    37. changeData: -1
    38. PUMPKIN:
    39. minTime: 45
    40. maxTime: 60
    41. data: -1
    42. change: LEAVES
    43. changeData: -1
    44. instant-inv: true
    45.  


    The thing is, that all the blocks regenerate in 9 seconds. No matter what I type, I've tried with 1m, 60s, 60, 1... But it's always 9 seconds. Any ideas?
     
  20. Offline

    K3YD0N

    roundrider
    bobacadodl
    having some problems i have sideways wood facing north and south (LOG:8) and i set it to change to air and back in a day, it chnages back to it in 10 seconds no matter what i do, it works perfectly fine with east-west wood (LOG:4) and regular wood up and down (LOG)

    NOTE: Only using oak wood no other kinds

    My Config:
    Blocks:
    LOG:
    minTime: 3999
    maxTime: 4000
    data: 0
    LOG:
    minTime: 3999
    maxTime: 4000
    data: 4
    LOG:
    minTime: 3999
    maxTime: 4000
    data: 8

    instant-inv: false
     

Share This Page