Made in Germany with love (and beer)
- Source Code:
This Bukkit plugin provides a custom world generator which you can use with plugins like Multiverse to generate a world by repeating a WorldEdit/MCEdit schematic. (It needs WorldEdit to load the schematics) This can be really useful if you want to generate a plot world which this plugin was developed for in the first place.
It has the ability to automatically protect created plots with WorldGuard and you can automatically set the BUYABLE and PRICE flag either to use with your own region economy plugin or to buy it with the inbuild /buyplot command (needs Vault). It also supports PlotSigns to automatically create sell signs out of every sign found in the schematic! The teleport flag is also set to the south border of the region as an added feature, allowing you to teleport to it with the /rg tp <id> command!
There are two ways to setup the generator: Via the generator id (-g PlotGenerator:testschematic in Multiverse) or a config setting for the world and using just -g PlotGenerator as the world's generator.
Setup via Generator ID
You can define all settings of the generator directly via the id string of the generator. This will override any settings made for that world in your config!
To create the same worlds as displayed below in the config section you would use the following commands (in Multiverse):
(You need to have the test section of the config defined, it wont use the generator of the test world!)Code (Text):/mv create test NORMAL -g PlotGenerator:testschematic,overlap=1,centerX=100,centerZ=0,regionId=%world%_plot_%number%,regionInset=5,regionMinY=40,regionMaxY=100,regionPrice=50
/mv create mb_plotworld NORMAL -g PlotGenerator:config=test,schem=plot
As you can see you can just use PlotGenerator:schematicname without any special variable if you only want to repeat a schematic without any extra settings.
Setup via ConfigDefine a section for your world in your config and then just set the PlotGeneratoras the world's generator. (E.g. with /mv create plot NORMAL -g PlotGenerator in MultiVerse) Entries here do not overwrite the world's generator settings set via the ID.
test: # config for world test
schematic: testschematic # The name of the schematic
overlap: 1 # How much it should overlap (e.g. if you want odd roads)
center: # Where to start the schematics if you want to align it to some existin structures
z: 0 # Can be ommited, defaults to zero
region: # WorldGuard region creation settings
id: %world%_plot_%number% # The id of the newly created region. %world% gets replaced with the world's name, %number% with the number of that region
inset: 5 # How far away from the schematics border the region should start, use 0 to protect the whole schematic
min-y: 40 # The lower end of the region
max-y: 100 # The upper end of the region
price: 50 # Sets the buyable and the price flag
type: TestPlot # Sets the PlotSigns plot type
config: test # Use the settings of world test
schematic: plot # but use the schematic plot
- /plotgenerator - plotgenerator.command
Main plugin command, alias: /plotgen
- /plotgenerator reload - plotgenerator.command.reload
Reloads the config You may need to unload the world or restart your server for the changes to take effect!
- /plotgenerator buy [<id>] - plotgenerator.command.buy
Short: /buyplot [<regionid>]. Purchase the region that you are standing in (needs Vault). If you have the permission plotgenerator.command.buy.byregionid you can specify a region id.
DonationsProgramming is time intensive and I would really appreciate your support!
So if you can afford it or make commercially use of this plugin feel free to buy me a beer.
Patreon with rewards: Patreon
This resource is distributed under the terms of the MPLv2.
Generate WorldGuard plots from a schematic.