CleanroomGenerator
This plugin can be used by world managers such as MultiVerse (version 2.0+) as a Custom Chunk Generator to create customisable flat clean room style worlds.
Your world manager must support Custom Chunk Generation or this will not work. MultiVerse only supports it in version 2.0 and later.
Example usage with MultiVerse: /mvcreate cleanroom normal -g CleanroomGenerator:64|stone
This will create a new world named "cleanroom" with the layer 0 as bedrock and layers 1-64 as stone, thus giving 65 total layers (including bedrock). Block ids are also valid in place of block names.
You can also specify multiple layers such as: /mvcreate cleanroom normal -g CleanroomGenerator:10|stone|20|dirt|1|grass
This would create a new world named "cleanroom" with layer 0 as bedrock, layers 1-10 as stone, layers 11-30 as dirt, and layer 31 as grass thus giving 32 total layers (including bedrock).
If the generator id is prefixed with a "." character, layer0 will not be generated as bedrock by default, allowing you to create space maps, or have a different block at layer0. For space maps, the spawn is set to y=64 to allow some falling before damage is taken. Fly mods are recommended for this sort of map.
If the generator id is prefixed with a "^" character, the first layer will be generated at y=-64 rather than y=0. Note this can be combined with the previous option in any order, eg "^." or ".^" are the same.
Some more examples:
/mvcreate cleanroom normal -g CleanroomGenerator: - Creates a map with only layer0 as bedrock.
/mvcreate cleanroom normal -g CleanroomGenerator:. - Creates an empty 'space' map.
/mvcreate cleanroom normal -g CleanroomGenerator - Creates a map with layer0 as bedrock, followed by 64 stone (default when no generator id is specified).
/mvcreate cleanroom noraml -g CleanroomGenerator:1|minecraft:grass_block[snowy=true] - Creates a map with bedrock followed by snowy grass (this is an example of the modern format)
More examples can be found at the Wiki
Features:
- Customisable height and block types of cleanroom.
- Support for multiple layers.
- Commands like WorldEdit's regen will regenerate the correct blocks.
- World sizes are not restricted as is the case with mcedited cleanroom maps.
- Only generates chunks as required.
- Able to create infinite space maps (using "." as the generator id to skip generation of the bedrock).
- Supports arbitrary height worlds (to within what CraftBukkit/Minecraft supports) - tldr: Supports 128-height and 256-hight worlds.
- Supports modern block naming and data values like minecraft:grass_block[snowy=true]
Version 1.0.0 and earlier of this plugin used a comma (,) as a separator and a colon (:) to specify block data values. 1.1.0 and above use a | to avoid conflicting with modern block names and do not support block data values in favour of the modern block naming format.
Known Conflicting Plugins:
Any plugin which calls createWorld itself rather than letting your world manager plugin call it (with the appropriate parameters to specify WGEN) will cause issues. The following are known to cause conflicts, please let me know if you find any other plugins causing issues, or if any listed have been updated to no longer cause issues with custom WGENs.
- Creative Gates
I accept pull requests on GitHub. For bug or feature requests, please use the GitHub Issues Tracker for this project.
@Warlike_2
It sounds like there's actually blocks there, but your client hasn't been sent them properly for some reason.
Try relogging and see if the shadows change to blocks.
Hello!
I am getting this strange bug when using this plugin, it seems that it turns the world into shadows, and no one can build in them, not all areas are affected, but it seems that some chunks are. I posted a link below a video demonstration of this bug
I did a test, I deleted all the plugins, re-install everything then added the code below to the bukkit.yml, then i delete the worlds it starts out with after the re-install, so it would generate a empty space world, I added the CleanroomGenerator plugin, and started the server. I noticed i was still in the shadows, then I added another plugin called Worldedit and generated a platform, the generation did not work, it only generated on allowed non shadowed area.
worlds: skyIsland: generator: CleanroomGenerator:. skyIsland_nether: generator: CleanroomGenerator:.
http://www.twitch.tv/warlike_2/b/328765323
Suggestion: Add a way to set a uniform biome over the generated chunks. I use this to generate a flat world for the MCDungeon tool, as a wide open space, but some areas are ignored because the biome set for them is Ocean, so it assumes it's full of water and cannot place a dungeon. Adding a way to set what biome the world is generated as would be very useful. The key biomes that people might find useful would be Plains (for general use), Taiga (for snowy worlds), Desert (for worlds with no weather) and Ocean (for worlds that are mostly water). tl;dr: Add a world biome option.
JCentials and JC_IP are 2 Plugins of mine. They're only about Chat, and'll released near on Bukkit as "Chatellaneous". Actually it's workin' perfectly. I'll wait. If it hapens again, I'll try your suggestions.
@Scrayos
Just for testing, can you try disabling Orebfuscator, perhaps even NoCheatPlus and SkylandsPlus (do so in a testing environment) to try and see what other plugin is interacting with it causing the issue.
What is JCentials and JC_IP? I couldn't find it in a quick search.
If worse comes to worse you can send me a stripped down copy of your install (remove worlds and anything big that still lets you reproduce the issue when you start the server) with instructions on how to reproduce the issue and I can look into it more locally, but at present on my two servers I run (1.3.1 "Vanilla" Bukkit, and 1.2.5 Tekkit) I've not encountered the issue, although there's many plugins you use that I don't, go figure.
@Neo_Vortex
It is happening in all CRG-Worlds. No, nothing "special".
Bukkit Build: git-Bukkit-1.3.1-R1.0-13-g50d7389-b2333jnks (MC: 1.3.1)
Plugins:
Plugins (43): WorldBorder, Orebfuscator, WorldEdit, NoCheatPlus, Buycraft, Vault, Multiverse-Core, PermissionsEx, LogBlock, MyCommand, FirstLastSeen, JCentials, WorldGuard, HomeSpawnPlus, DispenserReFill, RemoteToolkitPlugin, MineCoupon, RocketBoots, iConomy, ReportRTS, pvparena, JC_IP, SkylandsPlus, AnimalProtect, WGPFix, mcbans, CommandsEX, Modifyworld, SimpleSpleef, Votifier, SimpleReserve, CleanroomGenerator, AutoAnnouncer, PrefixedPlayerlist, ChatManager, Multiverse-Portals, Multiverse-Inventories, JSONAPI, LWC, ChestShop, DeathTpPlus, SimpleRegionMarket, VanishNoPacket
@Scrayos
Ouch. Sounds like two problems then, one being what caused it to regenerate in the first place, and the second being what causes it to lose the WGEN attribute.
Unfortunately both issues would be caused by something external to the WGEN (ie, whatever loaded the world, in theory the world manager, in practice possibly any other plugin with multiworld support), even as far down as the OS and hard drive corrupting writes.
A chunk that's been generated should -never- regenerate itself on its own accord unless there's a rather serious bug somewhere down the line, the cleanroom generator is only called during chunk generation, it sounds like chunk saving is perhaps not doing what it should.
Can you replicate it with other worlds? Is there anything else special about your setup? List of plugins and Bukkit version?
I do mean "regenerating of a CleanRoomedChunk with mit Building, to a nonCleanRoomedChunk without my Building".
@Scrayos
As per Codisimus's post, the conflict with ButtonWarp has been fixed a while ago, so as long as you're not running a year old version of ButtonWarp it should be fine.
By reset you mean "randomly chunks are generated with the default wgen, not CR" right? As opposed to "I built stuff in a chunk that got generated, and now it's been regenerated to cleanroom chunks again without my building on it".
I'll assume the former, usually this is caused by plugins loading the world (without the WGEN) before Multiverse (or whatever WGEN-aware world manager you are using) loads it. A dirty solution that the Bukkit guys eventually gave in to is specifying the WGEN in your bukkit.yml file, if you do that any plugin that trys to load a world with the default WGEN bukkit will consult its yml to find what WGEN should be used instead.
Give that a shot and let me know how it goes (protip, delete your cleanroom first so you don't have any old chunks if possible). You also have to do the bukkit.yml method if you want your cleanroom to be the default world (which was the original reason why you can define it in bukkit.yml)
@Codisimus
Good to hear! Thanks for that!
Dev of ButtonWarp here, I fixed ButtonWarps conflict with world managers back in version 1.2 (October) so you can remove it from the list of conflicting plugins. We don't want anyone to have to choose between our two plugins when it's not necessary.
Not sure if this would be causing issue that @Scrayos has but I do use the chunk.load() method (if the Chunk isn't already loaded)
@Neo_Vortex
If i'm too far from blocks, i'm black and blocks are black and i can't build there
Hey, I got a GIANT Problem. There are randomly resetting Chunks. This Problem is only in CleanroomGenerated-Worlds. They reset really obscure. 1.3
EDIT: This is the Issue with ButtonWarp?!
it's working fine on 1.3....
@Killer019
What isn't working? I've not encountered any issues with it on 1.3.1...
This plugin is not function for version 1.3.1.
@Neo_Vortex
I would recommend putting this temporary fix on the main page :) Furthermore great plugin! Good for my creative worlds :)
EDIT: When executing /mvcreate CreaPremium normal -t flat -g Cleanroomgenerator:32,grass -a false, I ended up with a default superflat world, the top layer was on y=4, not on y=33 as expected
Ok thx ! i try :)
@MrJackblue
You'll have to edit bukkit.yml and/or Multiverse-Core (depending on the method you're using) config's manually while the server isn't running.
Thank you for your reply, and you do not have any advice for add generator to a normal map ?