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 Jun 21, 2013hey i was wondering, how do u sell buildings in shops, such as hyperconomy?
-
View User Profile
-
Send Message
Posted Jun 21, 2013@AsteriskMC
BTW. sometimes ( i dont have those two plugins you mention) but users at my server are sometimes loosing the box when they fail to get the message about right-clicking for mounting the building. When i give them a next box, they suddenly have two.
-
View User Profile
-
Send Message
Posted Jun 20, 2013Bug
Whenever you use this plugin (http://dev.bukkit.org/bukkit-plugins/realisticexplosives/ and http://dev.bukkit.org/bukkit-plugins/realistictnt/) and try to explode a Build-in-a-box, the build-in-a-box blocks that can not be broken will duplicate the blocks. This can be bad because if you have a build-in-a-box made out of diamond blocks, when you explode it, it will duplicate and then players are able to get those duplicated diamond blocks which then is getting illegal blocks from a bug with this plugin and possibly ruining the economy of a server.
Thank you so much for reading this!
Regards, Sheldon Rupp, Owner and CEO of The Nutshell Network.
-
View User Profile
-
Send Message
Posted Jun 20, 2013@metalhedd
oh, i didnt know i can override this at the prompt, are there anymore hidden features hehe?
BTW: Are you still at build 137? Any luck with the size of schematic?
-
View User Profile
-
Send Message
Posted Jun 18, 2013@think420
there are 2 ways. you can set it up in the config so that ALL buildings are permanent, normal buildings once they're build (the enderchest will pop off). or you can use the '/biab permanent' command to make a single build permanent.
-
View User Profile
-
Send Message
Posted Jun 18, 2013This looks great! Are you able to destroy the Enderchest to make it a normal building?
-
View User Profile
-
Send Message
Posted Jun 18, 2013can i just say this is great guys, keep up the amazing work :)
-
View User Profile
-
Send Message
Posted Jun 17, 2013@GrandRealms
the hard limit is 32767x32767x32767 (though your server will lag out WAY before you hit that limit) if you're having a problem making larger selections please set debug: true in your config file and provide ALL console output during your save attempt. FunGreenFox has also had issues with size but his problems don't kick in until the selections are quite large, this is NOT a size issue, there's something else involved but I haven't been able to reproduce the problem to say exactly what.
@GerbilGuy
please try the same thing, set debug: true in the config and check for any console output after you click the chest.
-
View User Profile
-
Send Message
Posted Jun 17, 2013The selection sizes are so small I can only selecct like 10 blocks at most.
-
View User Profile
-
Send Message
Posted Jun 17, 2013@metalhedd
Same probems happening to me, I'm using the gold hoe and it's still not working.
I can't really say how to recreate it but if you want I'll pm you my server ip and you can come on and have a look?
-
View User Profile
-
Send Message
Posted Jun 16, 2013@GrandRealms
you have to click with the selection tool (gold hoe)
-
View User Profile
-
Send Message
Posted Jun 16, 2013How come when It says click the enderchest I try left click and right click and nothing happens
-
View User Profile
-
Send Message
Posted Jun 15, 2013Please announce when you make it use bigger /larger buildings. I have a house waiting, which is not much larger than the blacksmith, but just enough to stop it from saving it.
-
View User Profile
-
Send Message
Posted Jun 15, 2013@metalhedd
Awesome, thanks for the support and listening/answering questions. :D
Might use a dispenser for my prefabs. :D
-
View User Profile
-
Send Message
Posted Jun 15, 2013@PhoenixOfWar
sure, that last suggestion should be pretty easy, I'll try to include it in the 0.2.1 release hopefully this week. unfortunately the list of blocks that can be used is a little bit short. It needs to be 'directional' and not too 'new' since bukkit hasn't implemented MaterialData classes for all of the newer blocks. the "complete" list is here under 'All known implementing classes' but some of those would obviously be problematic (like BED)
EDIT: I should clarify that those aren't the exact names that you would use in the config file. I don't have a list of those without actually looking up each one individually, but once you find the one you're interested in, you've just got to find the matching Material and use it's name from here: http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html
-
View User Profile
-
Send Message
Posted Jun 15, 2013@metalhedd
Very interesting to hear. At least you were able to code your own so you could at least break free of their limitations/issues. And you talking about blocks, is there any list around with what blocks can and can't be used as a "Biab chest"
One last suggestion to go along with the last suggestion involving sneaking and clicking. Could you perhaps make it so users can set their Biab to permanent by sneaking - left clicking? And have them confirm after a nice warning message. Could also give them a countdown similar to how you lock the Biab.
-
View User Profile
-
Send Message
Posted Jun 15, 2013@PhoenixOfWar
I'm glad you asked actually... I originally used WorldEdit for for almost everything in BIAB, but quickly discovered that WorldEdit didn't properly support rotating certain types of blocks, and that's a dealbreaker for BIAB since you can't change it once the building is placed.
I contributed a few fixes back to WorldEdit for some of those blocks, but for others, I was told that they wouldn't be accepted because the WorldEdit codebase will be changing drastically for their 6.0 release (which I was unable to find any information about) So I was left with the option of not supporting certain types of blocks, or coding my own clipboard copy/paste/rotate stuff. so I created Schematica to manage the clipboard stuff for me, and with almost no need for WorldEdit anymore, I found it simpler to code my own selection tool than to continue building against WorldEdit and dealing with the support issues it caused.
I had actually forgot to update this page... BIAB usually takes several days to get approved by bukkitdev staff, and I dont like to update before they approve it, so as to not confuse people who download it in the mean time :)
as for your last suggestion, I do like it, and I have been considering for some time now, but its going to take a while to get it right.
Thanks for all the feedback, I'm glad you're enjoying the plugin.
-
View User Profile
-
Send Message
Posted Jun 15, 2013@metalhedd
Was there any particular reason for making your own? I mean.. why reinvent the wheel if it's already done? Just to see if you could do it or to make it so your plugin didn't require any dependencies?
Also, A lot of your mainpage is out of date [as I'm sure you're aware]. :P Isn't two out of the three "TODO" already done?
On that note, could you add another "option" to the Enderchest? Say.. sneaking + right clicking to "Update" the build-in-a-box? I mean, this may be hard to do with the current set up, because you would want to update just that player's Biab, not everyone's Biab. And not like, completely change the look of the Biab, but just update what was placed on the inside of the Biab. say a user added a new chest or workbench.
-
View User Profile
-
Send Message
Posted Jun 15, 2013@PhoenixOfWar
You are the 2nd person to request it, so yes, I suppose I can add it back... :) may take a bit of time to get the next release ready though.
-
View User Profile
-
Send Message
Posted Jun 15, 2013Can you add a config option to switch between your selection system and WorldEdit Selection?
I prefer WorldEdit because of the various commands to make a selection and the fact that WorldeditCUI lets you visualize your selection.