Build-in-a-Box
Build-in-a-Box
THE CURRENT RELEASE IS BROKEN. USE THE DEVELOPMENT BUILDS
This plugin is being abandoned in favor of a 'lite' version which will not support storing container contents, Locking/Unlocking or block break protection. It was written as a proof of concept, and has served it's purpose, however, due to limitations of the bukkit api, it does not scale over long-term extensive use on a single server, it will accumulate stale data over time. There is no solution except to not store this data. Please do not post or message me asking for support. If you need a working version, download the latest development build. If you're considering using this plugin for a new server, please don't, unless you intend to keep it updated yourself (source code is on github)
Build-in-a-box adds special EnderChests which, when placed, will allow players to instantly and automatically construct a building. buildings can be locked, unlocked, picked up and placed again. In it's default configuration, Build-in-a-Box works almost exactly like the buildings from The Shotbow Network's Wasted, but it doesn't stop there. Almost every aspect of the plugin can be configured, you can easily disable the locking, unlocking and pickup features to provide simple pre-fab buildings for donator perks, or whatever you'd like to do with them.
Features
- [0.2.0] No longer uses WorldEdit for region selection, use a gold hoe instead (configurable)
- Fireworks!
- per-building-plan permissions for give, place, pickup, lock and unlock.
- Anti-cheat and NCP Support
- Automatic update notifications
- Configurable build speed and animations.
- Compatibility with logging/rollback plugins.
- Compatibility with land-protection plugins (WorldGuard, GriefPrevention, Towny, Factions etc)
- Buildings can be given in kits, sold in shops, etc.
- Economy support, add costs for build, pickup, lock and unlock actions.
- Fully translatable.
- Optional potion effect while carrying a building
- Container contents persist when carrying a building
- Building plans support individual lore descriptions
- Optional block-protection for all buildings.
- Configurable lock/unlock times
Commands
- /biab give [player] <buildingPlan> - give a player a Build-in-a-Box of the specified building.
- /biab save <buildingPlan> - save the current WorldEdit clipboard as a new building plan.
- /biab list [<page>] - list available building plans.
- /biab delete <buildingPlan> - Delete a building schematic.
- /biab setdescription <buildingPlan> <description line 1> | <description line 2> ...
- /biab setdisplayname <buildingPlan> <Display Name>
- /biab permanent - enter the command then punch an enderchest to convert the building to a permanent stucture.
Permissions
These have been overhauled in 0.1.6. you may need to make changes to your permissions.
biab.save- allows a player to save building plans.biab.delete- allows a player to delete a building plan.biab.admin- combination of biab.give and biab.savebiab.permanent- allows a player to use /biab permanentbiab.unlock.others- allows a player to unlock another players BIAB Chest.
biab.give.*- allows a player to give out any BIAB chest.biab.place.*- allows a player to place any BIAB chest.biab.pickup.*- allows a player to pick up any BIAB chest.biab.lock.*- allows a player to lock any BIAB chest.biab.unlock.*- allows a player to unlock any BIAB chest that is locked by them.
The .* permissions above apply to all available 'Building Plans', in addition to these, you may use the individual permission nodes for each building plan.
Tutorial
Defining new Buildings
BIAB doesn't come with any buildings, you'll have to create some.
- Build something... a house or tower, complete with the enderchest somewhere outside
- Use the worldedit wand (Wooden axe by default) to mark the corners of the area.
- use "/biab save mynewbuild" to save it.
The new building is now available to give to players using "/biab give <player> mynewbuild"
Configuration
BIAB can be configured to suit many situations. a fully documented config.yml can be found here
Translating
to translate BIAB into your own language:
- copy the default
english.ymlfromplugins/BuildInABox/lang/to a new name. (eg.esperanto.yml) - translate the strings in the file.
- set the
languageconfig variable to your language name (eg.language: esperanto) - restart the server.
note: a (possibly outdated) version of the default english.yml is available here
TODO
- save mode which takes the current building and enderchest with it.
- Allow schematics to use a 'padding block' (sponge?) to define blocks that should be left out underground.
- add an option to make locking actually lock the doors and containers to the buildings owner.
Source Code & Development Builds
Source code is available on Github
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
BuildInABox Development Builds
Other Plugins
- Scribe - Transfer enchantments from items to books using an anvil
- JukeLoop - Makes jukesboxes loop, rotate through nearby chests, activated by redstone and much more,
- EnhancedFishing - Adds tons of fishing enhancements including complete control over the bite chance.
- PotatoBombs - Allows players to craft poisonous potatoes into devastating and hillarious magical landmines.
- Saddlebags - Adds an inventory to saddled pigs.
- SalvageSmelter - Allows furnaces to smelt down tools and armor.
- Compressors - Turn hoppers into 'block compressors'.
- Autocrafter - Turn droppers into redstone-powered crafting tables.
-
View User Profile
-
Send Message
Posted May 19, 2013@infiniteForge
Is it at all possible that you ran 2 copies of the craftbukkit server at the same time? That's about the only cause I can find for that error: reference Unless there's more to that first stacktrace, it doesn't look like BIAB is causing the problem.
The repeated NullPointerExceptions may or may not be related though, can you paste the full stacktraces for those?
-
View User Profile
-
Send Message
Posted May 19, 2013Thanks for the update! Sorry for sounding rude earlier.
I'm getting this error when attempting to pickup blocks, I'm not sure where else the save files would be being accessed from (I'm using BungeeCord) *shrug* - here it is:
http://dev.bukkit.org/paste/e30g5yn8c4ldjzrf/
Thanks again :)
-
View User Profile
-
Send Message
Posted May 19, 2013I think that all is wonderfull but there's some confirm message lack
When I remove a building there's no "Removing..." message, when i give a biab to somebody there's no confirm message, and other small things.
I think that isn't a priority but this kind of things make the difference between a plugin and THE plugin.
Tonight or tomorrow I'll send you italian and french translation and some schematics
(Coltivation Small, Medium and Big, Little House and Big House, Small tower and Big tower and a 1:1 player statue)
Thank you for this beautifull plugin, see you soon!
-
View User Profile
-
Send Message
Posted May 18, 2013@metalhedd
Thanks for the info. Adding the option to lock the doors or making it so only the owner can unlock it and pick it up would be great additions.
-
View User Profile
-
Send Message
Posted May 18, 2013@macgarthur
it's not currently possible to lock the doors / containers, but I'll consider that as a feature request.
the locking/unlocking is designed to work that way, someone can steal your locked building if they take the time to unlock it. the default time is probably way too short. I plan on adding a few more config options and permissions to allow only the owner to unlock it, as well as other combinations people might like to use.
Oh and btw the very latest development builds will require you to have biab.place and biab.pickup permissions to use them.
-
View User Profile
-
Send Message
Posted May 18, 2013Going to try with the 0.0.4 dev build. Is it possible to not let other players open a door if attached? Also other players can lock/unlock and also pick up the build-in-a-box.
-
View User Profile
-
Send Message
Posted May 18, 2013@The_Doctor_
That approach is a little bit backwards, and could cause a lot of weird side-effects. What I did instead is add an option to deny placing normal enderchests. You can then use it along with a protection plugin that can allow you to only place enderchests. AntiBuild does this easily.
-
View User Profile
-
Send Message
Posted May 18, 2013This plugin is just wonderful! Great job on it! I recognize it is in an early stage of development, so a suggestion I have is to make these enderchests placeable for players that do not have build permissions. Because I'm trying to make something that's similar to Wasted. Keep up the good work!
-
View User Profile
-
Send Message
Posted May 18, 2013@metalhedd
That can be a great solution!
For example, sponge can be an usefull padding block ;)
-
View User Profile
-
Send Message
Posted May 18, 2013@LobeTia
That's a tricky issue. If I include air blocks you can get just as many undesirable effects, I'm not sure what the best solution is, maybe some special block-type that you can use to pad the areas you dont want included in the schematic
-
View User Profile
-
Send Message
Posted May 18, 2013@metalhedd
Perfect!
A "bug-but-Im-not-sure-that-is-a-bug"
The layer under the ground level is pasted with the WorldEdit "-a" parameter right?
If I build an underground room, all the air is not pasted in the generation of the schematics, I'm not sure if this can be a problem for all, maybe I'm the only with this kind of problem
-
View User Profile
-
Send Message
Posted May 18, 2013@LobeTia
ah, coming right up.
EDIT #23
-
View User Profile
-
Send Message
Posted May 18, 2013@metalhedd
"Right click twice to unlock"
-
View User Profile
-
Send Message
Posted May 18, 2013@LobeTia
blocking?
-
View User Profile
-
Send Message
Posted May 18, 2013@metalhedd
Great!
An options for disabling the blocking of the structure?
-
View User Profile
-
Send Message
Posted May 18, 2013@LobeTia
Added that in #22, There was also an ugly bug in the build animations fixed.
EDIT: ... and released as v0.0.4, but 0.0.3 is still waiting to be approved so it may be a while.
-
View User Profile
-
Send Message
Posted May 18, 2013@metalhedd
YES IT'S WONDERFULL!
One suggestion:
->bottom-up building
-> top-down demolition
I translated in italian.yml, tomorrow i made the french.yml and I try the dutch vers
-
View User Profile
-
Send Message
Posted May 18, 2013@macgarthur
Are there any errors in the server log? I just tested again with several chests in a building rotating and moving it, and the contents are saved w/out problem.
-
View User Profile
-
Send Message
Posted May 18, 2013@LobeTia
That's Fixed in Build #20, it also includes the randomized building pattern.
btw I looked into the issue of rotating beds. its a WorldEdit bug, I fixed it and submitted a pull request to WorldEdit, so once they fix it, you'll just have to update WorldEdit.
-
View User Profile
-
Send Message
Posted May 18, 2013@metalhedd
I'm using the 0.0.3 development build and it's not saving. I'll wait until the approved version comes out and try again though.