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 Jan 12, 2013I did some further testing, and it seems like the plugin doesnt register any global changes such as, fire, creeper explosion, tnt, ect. it only seem like it regens anything a PLAYER has changed. not sure if this is a glitch, but it is very inconvenient. a fix would be most appreciated. thank you
-
View User Profile
-
Send Message
Posted Jan 12, 2013when i save a region with tnt in it, it regens when i break it with my hands, but it doesnt regent when i blow it up with redstone, can you PLEASE fix this? :D thank you
-
View User Profile
-
Send Message
Posted Jan 12, 2013Fantastic plugin, although would be even better if it could blacklist blocks like colored wool.
-
View User Profile
-
Send Message
Posted Jan 10, 2013Can you make it so one could make a regen area and have it regen only upon using a command to regen that specific area?
-
View User Profile
-
Send Message
Posted Jan 3, 2013@Qwahchees
I would like this too. Somebody requested an update.
-
View User Profile
-
Send Message
Posted Jan 2, 2013Any sourcecode?
-
View User Profile
-
Send Message
Posted Dec 15, 2012Hey, quick question, how would you make water regenerate with the region?
-
View User Profile
-
Send Message
Posted Dec 6, 2012@vsalaka
Does it not work with something?
-
View User Profile
-
Send Message
Posted Dec 6, 2012Will this be updated soon?
-
View User Profile
-
Send Message
Posted Nov 23, 2012Is this still working on 1.4.5?
-
View User Profile
-
Send Message
Posted Nov 7, 2012@corymaloy
I would assume it would lag more. Only because your server would have to save information based on time. Instead of just a log file that instantly resets everything and deletes itself. It would be a log file that kept times..But ya it would be nice..
I was more curious if this was still active and if it worked for 1.4
-
View User Profile
-
Send Message
Posted Nov 3, 2012And also, does it regen everything in the region at one time? or can it do it over time (lets say 1 week real time) so you could have the world always repairing itself slowly and block by block, I imagine this would also minimize lag from the plugin?
-
View User Profile
-
Send Message
Posted Nov 3, 2012It seems like if you could, it would be a great way to keep a pvp world full or resources and minimize grief.
-
View User Profile
-
Send Message
Posted Nov 3, 2012Is there any way to make this regen GLOBAL, for certain elevations? for instance anything below 64 would regen and anything above 70? Also I am curious if you could have it be global but at the same time leaving claimed land (with factions plugin) alone completely?
-
View User Profile
-
Send Message
Posted Oct 27, 2012Any chance I can allow users other than OPs to use this plug in? I'm not sure how to do it...
-
View User Profile
-
Send Message
Posted Oct 21, 2012Just had this crash my server.. http://pastebin.com/ru6kLaw7
Also is there a way to set a regen region without a timer on it? So you just regen it by command whenever
-
View User Profile
-
Send Message
Posted Oct 6, 2012Wow. I searched high and low for a plugin like this but couldn't find any so I just made my own, and now I stumble upon this?... sigh.. this is good though. thanks!
-
View User Profile
-
Send Message
Posted Sep 30, 2012It works but i dont receive any alarm message...
What can i do, to turn it on?
Its important to me cuz i have sync = 1 and my players sometimes dying when region is regenerating.
My config file: http://wklej.org/id/839819/
-
View User Profile
-
Send Message
Posted Sep 14, 2012@Raidendex
If you would like an example, feel free to jump onto my current test server mc.gdcraft.net:25568, right now I'm looking for a plugin that does exactly what this one does, but as this readds the blocks it seems to lag a bit, like the client locks up for a short second depending on how big the area that regenerates.
Also I don't mean to advertise with the IP, feel free to get rid of this comment when you're done reading it, it's a test server anyways.
-
View User Profile
-
Send Message
Posted Sep 14, 2012@xBlueXFoxx
Not sure what you call a small area. But a few hundred blocks it does without any issues on my single cpu pc with video player running, vlc converting hd video among other things that windows might be doing :) Just tried it.