Toggleable areas allow you to save an area and toggle it on or off. Multiple areas can be in the same location as well and you can toggle between them. Areas are saved per-user in a folder for each user. You can also define custom namespaces (folders) but Players with these permission will have access to other user folders.
This function requires WorldEdit (a plugin) because it requires selecting cuboids. You only need to use its cuboid selection functions.
The craftbook.mech.area.save.self permission must be given.
- Select an area with WorldEdit.
- Type /area save <area name> . You may only use numbers and letters and no spaces. The name is case insensitive and can be a maximum of 13 characters long.
- The area is now saved under your player.
Saving to other namespaces
The craftbook.mech.area.save.<namespace> permission must be given.
- Select an area with WorldEdit.
- Type /area save -n <namespace> <area name>. You may only use numbers and letters and no spaces. The name is case insensitive and can be a maximum of 13 characters long. The namespace is case sensitive and can be a maximum of 14 characters long. You cannot currently save under another player's namespace as it is considered 'personal' and can only be saved to by that user.
- The area is now saved under the specified namespace.
You can see what area is currently displayed by the "-" around the areas name.
The craftbook.mech.area.sign.area permission must be given.
Create a sign post with the second line as [Area], if your regions are saved in a different namespace set the first line as the namespace, otherwise leave it blank. The third line should be the areas on state, whilst the fourth line should be its off state, which can be left blank. You can therefore put multiple areas on one sign. Right clicking the sign will toggle the area.
The signs can be wired with redstone.
An example sign is as follows:
(namespace if non-default is used)
AreaToToggleOff (Area to show when off, can be blank)
The craftbook.mech.area.sign.savearea permission must be given.
Same as above but on the second line write [SaveArea]. This will create an area sign, that will save the areas on toggle, to prevent duping.
|/area save <area name>||-n <namespace>||craftbook.mech.area.save[.self]/[.<namespace>]||Saves the area to the users namespace or given namespace.|
|/area list [page]||-n <namespace>||craftbook.mech.area.list[.self]/[.<namespace>]/[.all]||Lists the areas of the player using the command or the areas of the specified namespace (-n) or all areas (-a).|
|/area delete <area name>||-n <namespace>||craftbook.mech.area.delete[.self]/[.<namespace>[.all]]||Deletes the specified area or all areas (-a) in the specified namespace (-n).|
Chests, Signs, etc won't save items/text!
That is caused by having a version of WorldEdit installed, that doesn't match the version of bukkit you use. Please update WorldEdit and Bukkit. This can also be caused by having use-schematics turned off in the config, make sure it is set to true.
|craftbook.mech.area.sign.area||Allows creation of [Area] signs.|
|craftbook.mech.area.sign.savearea||Allows creation of [SaveArea] signs.|
|craftbook.mech.area.use||Allows usage of Areas.|
|craftbook.mech.area.save.namespace||Allows the user to save areas to specified namespace.|
|craftbook.mech.area.save.self||Allows the user to save areas to their own namespace.|
|craftbook.mech.area.list.namespace||Allows the user to list all areas in the specified namespace.|
|craftbook.mech.area.list.all||Allows the user to list all areas.|
|craftbook.mech.area.list.self||Allows the user to list their own areas.|
|craftbook.mech.area.command.toggle||Allows the user to toggle areas via command.|
|craftbook.mech.area.delete.namespace||Allows the user to delete areas from the specified namespace.|
|craftbook.mech.area.delete.self||Allows the user to delete areas from their own namespace.|
|craftbook.mech.area.delete.namespace.all||Allows the user to delete all areas from the specified namespace.|
|Configuration Node and Path||Default Value||Effect|
|mechanics.area.enable||true||Enables Toggle Areas.|
|mechanics.area.allow-redstone||true||Allow ToggleAreas to be toggled via redstone.|
|mechanics.area.use-schematics||true||Use MCEdit Schematics for saving areas. This allows support of all blocks and chest/sign data.|
|mechanics.area.shorten-long-names||true||If this is enabled, namespaces too long to fit on signs will be shortened.|
|mechanics.area.max-size||5000||Sets the max amount of blocks that a ToggleArea can hold.|
|mechanics.area.max-per-user||30||Sets the max amount of ToggleAreas that can be within one namespace.|