ChunkFixer
ChunkFixer
About ChunkFixer
ChunkFixer is a plugin that is designed to fix any chunks that you are having an issue with. Sometimes in Minecraft, chunks just seem to have problems and that can cause problems to you, as the server administrator. There are many ways to fix these errors, but this is one of the easier ways to do so. This plugin is multi-world compatible, meaning you can be in one world and fix a chunk error in another. This plugin is also helpful if you just want to fix a chunk that has had too many explosions on it, or the terrain has been really modified and you don't like it, just simply use the /cf command and you're good.
ChunkFixer Features
- Regenerates chunks that are causing non-stop lag / spamming of the server's console!
- Can regenerate a chunk you are standing on, or a chunk anywhere, in any world.
- Multi-World support!
- NOTICE: This plugin doesn't delete everything in the chunk, but instead restores it to it's original state, before anything / anyone ever did anything to it. (This plugin may mess with some things on the surface, including trees. It may tamper with the ores as well.)
Permissions!
Chunkfixer is now permission friendly! If you don't have a permission plugin, it will default to isOp()!
- chunkfixer.* - All commands for ChunkFixer.
- chunkfixer.fix.* - Permissions for both the /chunkfix x y [world] and just plain /chunkfix command.
- chunkfixer.fix.far - Permission for the /chunkfix x y [world] command.
- chunkfixer.fix.selection - Permission to fix cuboid areas. ('/chunkfix selection' and '/chunkfix selection here')
- chunkfixer.fix - Permission for the /chunkfix(/cf) command.
- chunkfixer.view - Permission for the /chunkhere(/chere) command.
- chunkfixer.other - Permission for regenerating a chunk where another player is standing
Commands
- /chunkfix [x] [z] [world]
- /cf [x] [z] [world]
- /chunkfixer [x] [z] [world]
- /chunkfix [player]
- /cf [player]
- /chunkfixer [player]
- /chunkfix selection [here]
- /cf selection [here]
- /chunkfixer selection [here]
- /chunkhere
- /chere
- You can just type in /chunkfix on the chunk you want to regenerate, and you don't have to type in the chunk's coordinates.
How to install / use
- To install this mod, simply place it into your /server/plugins folder, and restart your server.
- When you have the plugin in there join your server and type in the command "/chunkfix [x] [y] [world]" or just "/chunkfix" if you are standing on the chunk you want to regenerate.
- Set up the your permission plugin to use the commands, or if you don't have a permission plugin, make sure you are OP! The permission nodes are listed above.
Suggestions
If you have any suggestions for this plugin, just ask and I will see what I can do.
Future Updates
- Give me suggestions!
Changelog
Version 1.1
Added:
- When using '/cf selection', if you do not have a selection, it will automatically give you the selection wand.
Changed:
- Slight code cleanup / optimization.
- Made a few of the messages look nicer, coordinates stick out more)
- Built against latest Bukkit build for 1.6.2
v1.0
- Built against latest RB (RB-4.0)
- Added a cuboid selection method using a blaze rod. - Select one block with a blaze rod by right clicking with a blaze rod and select another spot again by doing the same thing and then use the command '/chunkfix (/cf) selection view' to view all of the chunks that your selection goes through, then type in '/cf selection' and that will regenerate every chunk that was listed in '/cf selection view'.
- Cleaned up some code
- Added SEX (May or may not be an acronym)
v0.7
- Built against latest RB (CB 1.1-R4)
- Added the ability to regenerate a chunk on a player. (/chunkfix <name>) Permission Node: chunkfix.other
v0.6
- Built against latest RB
- Cleaned up some code!
v0.5
- Added Permissions! If you don't have a permissions plugin, it will default to isOp()!
v0.4
- Fixed version number!
- Added a null checker. (Should display a message if the chunk isn't there)
- Built against the latest RB!
v0.3
- NEW COMMAND! /chunkhere(/chere) to see what chunk you are on!
v0.2
- Fixed having to type in the world when using coordinates.
v0.1
- Release
Hi
i have a strange problem, random chunks regenerate
on every server restart.
I tried this plugin to fix the chunks, but with no luck.
On next restart the chunk goes back to original seed.
Whats happen?
@Runemoro
Added a cuboid selection method using a blaze rod. - Select one block with a blaze rod by right clicking with a blaze rod and select another spot again by doing the same thing and then use the command '/chunkfix (/cf) selection view' to view all of the chunks that your selection goes through, then type in '/cf selection' and that will regenerate every chunk that was listed in '/cf selection view'.
Can you make it work with a worldedit selection?
the only thing that happens to me is that the area gets replaced with a ocean
@shukamu
That would be possible to do, but there's two ways to do it, with and without threading. Without threading would probably make your server lag out, but with threading I am unaware of how to do currently, I can talk to my friend and he might know a little something.
@Giinger
Ok can u add command for regen all chunk loaded? ty
@DurtyFre
You don't have to do the cuboid selection area... You can still use the other commands just fine.
@Giinger
Please dont do some crap with selecting the area, i choose this one because you could easily use coordinates to regen chunks... So it would be nice if you can only add a radius argument to the /chunkfix command :s
@shukamu
You can just delete your world folder if you want ALL your chunks regenerated. But if I were to add a command all it would do is regenerate all loaded chunks, which would make your server lag, badly.
can command for regen ALL chunks?
For the next release, I am working on a way to select cuboid areas and regenerate all chunks in that cuboid area.
Great Plugin
But it would be nice to give a optional radius for the chunk regeneration, this would be useful to fix some bugged up places!
how about updating the plugin for 1.2.5?
Good plugin. What would make it better is the option to do multiple chunks at the same time, or to be able to tie it to a tool that you could snipe from a distance.
Thanks for a good plugin.
Thank you SOOOOOOOOOOOOOOOO MUCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Finally my server world isnt total :D :D.
this works very nice and fast
However there is one issue about tree regeneration, specially in Jungle Biomes. Worldguards //regen has the same issue. The trees are regenerated in a striped pattern and not everywhere. Any idea how to fix this?
Also would it be possible to combine this with the worldedit selection wand?
Thanks that works perfectly :)
@jc21com
I would recommend getting a plugin called NoLagg for the lighting issues. There is a jar file in there called NoLagg Lighting that should fix all of your lighting issues. As for the ocean that you get, that must be reading your world seed and the world may have changed because of new biome code, it depends on when you first made your world.
Great! One more thing I've noticed (and it's not that big a deal), when I have chunkfix'd a number of chunks near each other and it generates an ocean, there is some remaining lighting on the borders of the chunks. I've provided a screenshot. I think other people have ways of 'fixing' the lighting so that it also resets/regenerates so maybe this would also be easy.
@jc21com
Thanks for the suggestion!
Currently I am trying to work in a way that people can regenerate land fast, and trying to find out what changed in the latest build of Bukkit that makes refreshChunk() not work (making the chunks not show until you re-login to the server).
I will be sure to add that chunk fixing from the console though in the next update, it's easy to do and I don't see why I haven't done it before.