RegenBlock
Part of the Minds of Chimera Project (dev)
CodeBlocks | MOCPlaytimeTracker | MOCDBLib | RegenBlock | MOCGoodEats | MOC3DImporter | ImageImport | MOCKiosk | MOCRater | MOCFizziks | GravitySheep | MOCChemistry | MOCRegistry

RegenBlock allows a creation of regions within Minecraft worlds that have a certain re-spawn timer assigned to them. Once a block in the region is destroyed by a player or a new block is placed it will regenerate to the old state after the timer is up.
Example uses
Regeneration of natural resources in certain areas, resetting of region to an earlier state - in a tutorial area on my server, there is a broken bridge that has to be repaired by the player, but after the player does so the bridge would normally remain fixed for the next player that does the tutorial, with RegenBlock I am able to "regenerate" old broken bridge. Can be possibly used as anti-griefing to some degree, but it will only check events associated with played placing or destroying blocks, not tnt, lava fire etc.
Permissions
regenblock.self - all or nothing permission for the use of any commands
Commands
(all at op level)
- Selection
- /rb select (ex,ey,ez) - Starts/stops player's selection mode. ex/ey/ez will expand selection in that direction. Y is vertical.
- /rb listselection - Lists player's current selection points.
- Editor
- /rb edit - Puts you into editor mode that allows you to change blocks in a region without triggering the re-spawn.
- Info
- /rb info - Print out information about the region in front of the character
- /rb list - lists all regions
- Global Blacklist
- /rb blacklist add/remove (id id id ...) - adds/removes supplied block IDs. Blacklisted blocks will be ignored by the plugin and not regenerated.
- Reload
- /rb reload - Reloads the configuration file. Use this if you updated regions through config.yml and have to reload it.
- Region management
- /rb create (name) [re-spawn time] - Creates a region based on your selection from /rb select
- /rb remove (name) - removes region from the list
- /rb type [typeId] - sets region type, 0 for normal, 1 for mine. Mine will regenerate only upwards and with random blocks that you specify with /rb spawnblock
- /rb sync [0/1/2/3] - sets region to regenerate all at once or not, 0 - normal operation, 1 - all blocks re-spawn at once based on first block broken, 2 - same as 1, but based on last block broken, 3 - blocks re-spawn in normal order, but shifted in time based on last block broken.
- /rb modify (name) [re-spawn time] - modify existing region
- /rb modify time (name) (re-spawn time) - modify existing region's re-spawn time
- /rb alarm time/message/radius (name) (value)- changes the region's alarm settings. Alarm will go off before blocks are due for re-pop to warn players.
- /rb rblacklist (name) add/remove (id id id ...) - adds/removes supplied block IDs for region. Blacklist blocks for a specific region.
- /rb feedback (name) (type) - sets feedback type for the region. 0 - none, 1 - on place, 2 - on place/remove
- /rb feedback set (string) - sets string sent to player during region feedback. Use TIME to show re-spawn time.
- /rb spawnblock (name) - lists region's spawn blocks.
- /rb spawnblock add (name) [id chance id chance...] - adds new blocks with spawn chance. Chances do not need to add up to 100.
- /rb spawnblock remove (name) [id id id...] - removes blocks.
- /rb repop (name) - Re-spawns all blocks in a given region
API
Method available directly from RegenBlock class.
public void regenBlock(Location location, Material material, byte data, Player player, Boolean isBreakEvent) location - block's location material - what material block should be set to once restored data - data value for the restored block player - player that broke/placed the block isBreakEvent - test if this is a BlockBreak of BlockPlace event.
-
View User Profile
-
Send Message
Posted Sep 14, 2012I would want to say this seems very inefficient, when I regen a small area it causes quite a few lag spikes, even with dual quad cores and 16gb of RAM.
-
View User Profile
-
Send Message
Posted Sep 14, 2012@Raidendex
OMG, that didn't even occur to me! haha Thanks so much for your help!
-
View User Profile
-
Send Message
Posted Sep 14, 2012@kustimork
would have to create worldguard region to match regenblock that allows people to build/destroy there. Otherwise this plugin will avoid blocks that has been caught by most protection plugins, assuming they implement it correctly :)
-
View User Profile
-
Send Message
Posted Sep 14, 2012@Raidendex
Hmm maybe I'm trying to be too tricky with my setup.
Can you think of a way to remove permissions from everywhere but allow people to build/destroy inside the RegenBlock regions only?
For example if I had the world protected with worldguard and RegenBlock was inside that area do you know of a way to allow people to interact with RegenBlock?
-
View User Profile
-
Send Message
Posted Sep 14, 2012@kustimork
Don't think you could easily do something like that. Plugin built with idea to regenerate small areas in a world not whole world and allow for small areas to be excluded.
Having said that, you can do all that, but it would require multiple regions around the areas that you do not want to be regenerated.
Final note, I am not too sure how well the plugin will behave with such large areas either, it may cause some lag issues, monitoring every single block in the world.
-
View User Profile
-
Send Message
Posted Sep 14, 2012Would it be possible to protect the whole world. Then later exclude certain town areas for people to build in?
-
View User Profile
-
Send Message
Posted Aug 31, 2012@tarkus80
This, very much this. If you can implement the Worldedit selection API, then I would use this plugin extensively.
Edit, it's entirely possible to offer it as an optional feature. You need only to check if WorldEdit is an available plugin and then hook into the selection there, otherwise, use your own engine.
-
View User Profile
-
Send Message
Posted Aug 31, 2012reread: "Can be possibly used as anti-griefing to some degree, but it will only check events associated with played placing or destroying blocks, not tnt, lava fire etc."
-
View User Profile
-
Send Message
Posted Aug 31, 2012I've been looking for a plugin like this for a few weeks now. I have been wanting to add leaf walls to my dungeons so that people can burn them to get through but wanted the leaves to respawn. I just now downloaded the plugin and I just now tested it for the first time. I made a leaf wall and put it to 1 second respawn and kept punching them and using a axe on them and they were working fine.
The problem I am having though is that if u light them on fire and let them burn they dont respawn. I also noticed that in the region where the leaves have burnt and not reappeared u can still hear the fire and its technically still there just invisible. So I dont know if anyone else has this problem or if its just never meant for us to burn leaves and have them respawn but is there anyway to fix this or maybe add this as a feature?
Thank you and sorry for the wall of text.
-
View User Profile
-
Send Message
Posted Aug 30, 2012Uploaded 4.5 version.
/rb select ex/ey/ez - will expand your selection in X, Y, or Z direction. Y is vertical.
-
View User Profile
-
Send Message
Posted Aug 29, 2012@drumming102
I believe there are plugins out there that can execute a command on button click, sign click etc, so you could use that to execute /rb repop etc.
-
View User Profile
-
Send Message
Posted Aug 29, 2012@tarkus80
I don't want to rely on any other plugins, so I won't be adding that.
But if you have specific options from worldedit selection tool or something new all together, let me know and I see what I can do to implement them.
-
View User Profile
-
Send Message
Posted Aug 28, 2012another idea is to support worldedit selection, worldedit has the nice feature so expand the selection in vertical direction
-
View User Profile
-
Send Message
Posted Aug 28, 2012Great update and had fixed the lag with Sync rebuild.
Just a thought and if you want this as a ticket for a future thing i will make one. The ability to link the rebuild to a sign or even better for me would be a sign that when powered by redstone triggered a rebuild.
That would combine this amazing plugin and this old dead one I very much miss http://dev.bukkit.org/server-mods/rebuildplugin/
-
View User Profile
-
Send Message
Posted Aug 28, 2012@LeXouilleFr
Doubt it did anything for your issue. I'm not sure what's causing it so you will need to do some testing with different region types etc to pin point the issue
Error logs you posted, do not provide much information. And little bit they do doesn't really make sense as physics event is not handled in a separate thread. Could something else going on that just messes up the whole plugin.
-
View User Profile
-
Send Message
Posted Aug 28, 2012hi i saw you made a 4.4 version i will give a try and see if it would fix my issue. But currently i am not at home atm and my distant-connection (via a VPN) is .....down. So i can not test today but i will do it asap
-
View User Profile
-
Send Message
Posted Aug 27, 2012@Raidendex
now it looks better, with the delay everything seems to be fine :) thank you very much
-
View User Profile
-
Send Message
Posted Aug 27, 2012@Raidendex
i will give it a try as soon as it is available on bukkit download section :)
-
View User Profile
-
Send Message
Posted Aug 27, 2012@tarkus80
Yeah as you can see there, regen block tries to requeue blocks for the mine world before mine world is loaded.
New version should fix it with a short delay before it re-queues.
-
View User Profile
-
Send Message
Posted Aug 27, 2012Uploaded version 4.4