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.
Hello Raidendex
I just started using your plugin yesterday all seems well except for some crop issues...
We have an intro area to Dragonwind where noobs are asked to harvest some seeds and ive noticed today that the crop blocks are dissappearing along with the crop on it.
Is this a bug your aware of or are we treading on new ground here...
no matter what i do with your sync variables the crops simply dissappear, any suggestions sir ?
@skeletons10
And when you say it's not working. It's not giving you any error messages at all?
Can you create just a simple region with "/rb region create test 5" and then destroy blocks and they don't repop?
@skeletons10
Because it doesn't really matter. But I did download 1.2.5 server and updated my local one to that. Tested old sync region with alarm set - did everything as it should. Create a new region. tested the default operation then switched to sync, then added alarm time, then changed radius, then message. Everything worked as it should.
Just a run down of how to do it.
/rb select - select two points
/rb region create [name] [respawnTime] - say /rb region create test 10
try to destroy blocks - should repop one at a time after 10 seconds
/rb region sync test 1 - sets region "test" to sync mode
now blocks should all repop at same time
/rb region alarm time test 5 - sets alarm time of the region "test" to 5 seconds.
now when block is destroyed in region "test" 5 seconds before it pops back up you will see a red message as long as you within 100 blocks (default radius)
/rb region alarm radius test 20 - change alarm radius to 20 blocks
now you can destroy few blocks and quickly run away and won't see the message (in this example have 5 seconds from first block destroyed)
/rb region alarm message test Hello, World! - changes the message to "Hello, World!" instead.
All these are working for me on 1.2.5-R1.0 CraftBukkit server. as well as 1.1 r3
@Raidendex
Well te plugin is for mc 1.2.5 not 1.1 so why are you wasting your time testing it in 1.1? There are so many changes between each version. Tested with doing it all in game and after that when it isn't work twice did it by hand in the config file.
@skeletons10
Just tested it again (in minecraft 1.1) everything worked fine =\
Do you edit config.yml by hand? If so there could be some errors perhaps?
Try pasting it's content in this http://yaml-online-parser.appspot.com/
It should show if there are any formatting issues.
@Raidendex
Well it seems like the config doesnt reload with it after the server is shut down. I had to redo all the zones again and then shut it down again and it doesnt work again. I have to remove the config before a restart in order for it to even launch
@skeletons10
Well none of those say anything about crashing. Have you tried deleting the config file and starting over to see if it got corrupted somehow?
Anyone else having any issues?
Get this and it crashes
22:35:42 [INFO] [RegenBlock] Enabling RegenBlock vBeta 3.3 22:35:42 [INFO] [RegenBlock] (Beta 3.3) Enabled. Good Day. 22:35:43 [INFO] [Backup] Plugin is out of date, This: 1.8.8, Latest: 1.8.9. 22:35:43 [INFO] [RegenBlock] (Beta 3.3) Adding old blocks to regen queue.
@Raidendex
when i restart it just says stuff like regenblock loaded...adding original blocks from quere
this is what it says
22:35:42 [INFO] [RegenBlock] Enabling RegenBlock vBeta 3.3 22:35:42 [INFO] [RegenBlock] (Beta 3.3) Enabled. Good Day. 22:35:43 [INFO] [Backup] Plugin is out of date, This: 1.8.8, Latest: 1.8.9. 22:35:43 [INFO] [RegenBlock] (Beta 3.3) Adding old blocks to regen queue.
@skeletons10
What's in the server.log about it?
@Raidendex
actually something is wrong....got all my zones working fine....server had to be restarted and with the plugin installed i couldnt restart it.
Deleted the plugin and worked fine. went to reinstall wont start. installed it and reloaded in game ...didnt work...
@Raidendex
Thank you!
@skeletons10
/rb region alarm time d 10 - for 10 seconds before
/rb region alarm radius d 100 - for 100 block radius
/rb region alarm message d Blah blah blah - for message
and region has to be sync
/rb region sync d 1
By default message will be set to something, and radius will be 100, so just need to set time part to something non 0
@Raidendex
cant get the alarm to work? if I have a region thats named 'd' how do i add an alarm to it.
im currently typeing /rb region 30 Diamond Mine Resets in 30seconds! 10000(radius) d
@Jaiimc
It stays in limbo till bukkit mods approve it!
Thanks for the update!
@Raidendex
Dare I ask where this update is?
Version 3.3 uploaded with alarm thingy for re-spawn warning.
Hopefully it will work out. I did some limited testing, looks like it should work >.>
To use /rb region alarm time/message/radius regionname value
@Raidendex
:( not this weekend*
@skeletons10
This weekend probably