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.
@XxBoonexX
Exactly where do you find said dev builds? Been looking for ages :(
Very nice plugin! Could you possibly add an option to use the blacklist as whitelist? So instead of listing all the blocks i do NOT want to regenerate i would rather like to list very few blocks i want to regenerate.
Considering if i should try a dev build on my server has anyone been having problems running the current build of regen block on the latest dev builds?
@GavinTheHero4 OtherDrops is a really versatile plugin that does exactly what you're talking about, though I don't know how it relates to this one. http://dev.bukkit.org/server-mods/otherdrops/
@GavinTheHero4
This plugin does nothing related to the drops at all, sorry.
There are other plugins out there with which you can modify what certain blocks drop etc.
@Raidendex
Like when i mine somthing Like Diamond ore i can get somthing sometime like 4/1000 that i get a stick And 10/1000 i get a Diamond Sword
@GavinTheHero4
Not sure what you mean
Hey Best plugin :D But one thing i need to make it drop thing can i use some plugin for that or what`?
You are the man! ty! just what I have been looking for.
Testing it for a free build map on my zombie server 24hr rollback DayZ like :D
Jack
@drumming102
Tried it briefly, don't really see errors pop up right away, so need more information on what/how etc it happens.
Also you mentioned a ticket earlier, I do not see one posted.
As a matter of fact, don't even use that as I never look there, just post whatever you need in comments.
@drumming102
I only see a dev build of Bukkit for 1.5 so I haven't tried running it on that yet.
5.7 is advertised for 1.4.7 is this a mistake or have you not addressed the unsafe thread tasks causing crashes in 1.5?
@Cultist_O
chest etc probably would not respawn with stuff. initial cause of the explosion isn't either atm, just what was destroyed. I'll take a look when I have time to see what can be done about both
does this plugin work with tile data? I want to use it to regenerate jungle and desert temples, but need it to regenerate the chests and dispensers therein
I would assume (but hope to be wrong) that even with the new explosion support, the initial tnt, nor tnt triggered by it will be replaced?
Uploaded version 5.7 Added support for explosions and fire.
Did some limited testing, seems to be working, but could be buggy. In case of fire, regions should probably have long enough delay for fire to stop first, otherwise it may burn forever :)
New ticket posted for ya. Working Great in 1.5 minus the 1 issue
@Cuerdas
Great idea Cuerdas. I would be willing to help sponsor an update like that. Regen in the wilderness would be really amazing.
Also, it would be nice to be able to set a "spawn amount" so that you can make a special deposit of ores that regenerate for only a set amount of times.
If this plugins detect townys created by towny... becomes the best! :)
works with towny?
EDIT: LlmDl, the towny´s author says me that yo can hook the api for regenerate wilderness,
(2. The regenblock author could hook the towny api to only regen things in the wilderness.)
Epic plugin! This is exactly what I needed, thank you!
Edit: Is there any possible way to get this to detect the "Avatar Bending" plugin, whenever a block gets modified it does not detect it as being changed. :S
Hello. I'm now making a pvp arena where the enemy has to build explosives and blow the enemy's base. Is this plugin able to reset the area to it's initial state after a certain amount of time?