Structure in a Box
Description
This plugin lets you create special items that you can give to the players on your server. When players place these items, they will turn into a structure created in advance. These items are called “Structures-in-a-Box” or just SiBs.
The plugin uses the WorldEdit mechanism of pasting MCEdit schematics into the game. This means that anything copied and saved as a schematic file, can be used as the structure.
For example, you can give the players a chest that turns into a small base when placed, and a different chest, which will turn into a small vault.
Creating SiBs (admins)
To create a new SiB, follow these steps:
- Build the structure. If that structure has an “entrance” or front, make sure it is facing east.
- Using WorldEdit, select the structure (you may use
//wandfor that purpose). Make sure not to select the ground beneath the structure. - Get as close as possible to the position where you want the structure to spawn in relation to the placed SiB. Then, type
//copyto create the clipboard. At this point, you should normally face to the west. - Type
//schematic save MCEdit <schematic id>to save the schematics - Type /sib create <schematic id> to create a SiB item.
It is important that the structure’s front will face the east. That way, the plugin will correctly auto-rotate the structure based on the direction the player is facing when placing the SiB.
Placing SiBs (players)
To spawn the SiB, the players only need to place the SiB item. If there is no space for the structure, they will keep the SiB and the structure will not be pasted into the game.
Kits
The SiB items can be added to kits. They are simply chest items (by default) with unique lore. Any kit plugin, which supports specifying lore on items, will consequently support SiBs.
Protection
The plugin supports WorldGuard. The structure (any corner of it) cannot be placed in regions where the player cannot build. In addition, the structure will never be placed if there is a solid block in the way.
Commands
- /structureinabox version - Get the plugin's version
- /structureinabox create <schematic-id> - Create a SiB for a given schematic id
- /structureinabox help - Display instructions on how to use the plugin (for admins)
You may use the /sib alias.
Players may also use the following command:
- /sibundo - Pick up the last SiB you placed and get the item back, as long as the session is not expired
Permissions
- structureinabox.admin - Allows you to use the Structure-in-a-Box admin command (default: admins only).
- structureinabox.use - Allows you to place Structure-in-a-Box items (by default everyone).
- structureinabox.undo - Allows you to undo (pick up) the last SiB (by default everyone).
Configuration
You may change the following settings in config.yml:
- box-material - The material used for the SiBs items (CHEST by default).
- max-sib-size - The maximum size of SiBs (10000 by default).
- display-name - The SiB item display name.
- lore-instruction - The instruction line added as lore to the SiB item.
- lore-identifier - The unique lore identifier used on the SiB item.
- free-space-check - Check for free space before placing down the structure (default is yes).
- check-all-solid-blocks - When free-space-check is on and so is this, check against all solid blocks.
- check-just-specific-blocks - When free-space-check is on, list the blocks to check against.
- world-guard-check - Check for collision with WorldGuard areas (default is yes).
- permission-per-sib - If this is set to yes, placing the SiB will require the permission structureinabox.use_{sib-name} (default is no).
- cooldown-time-ms - The number of milliseconds that need to pass before a player can place a SiB again (default 5000).
- cleanup-interval-ticks - Session cleanup time task interval in ticks (default 300).
- expired-session-time-ms - Session TTL in MS (default 30000).
Kudos
This plugin was designed and tested by the folks at WonderlandGaming for PvP and tracking servers.
-
View User Profile
-
Send Message
Posted May 16, 2014Can you make this compatible with the /research command in the MyZ Plugin please? This would be awesome!
-
View User Profile
-
Send Message
Posted May 15, 2014@baksovic111
Are you trying this in creative or other mode?
-
View User Profile
-
Send Message
Posted May 14, 2014Fix bug please! When Player 1 sib in hand when installing sib ie chest does not disappear from your hand: (
-
View User Profile
-
Send Message
Posted May 13, 2014Hallelujah! I build-in-a-box ish plugin that's updated!!!!!!!!!!
Also, @eyalzh
Would it be possible to make it so if the chest is broken, it destroys the structure? Aka, make it run the undo command if you break the chest
-
View User Profile
-
Send Message
Posted May 11, 2014@naihamdude
I was just thinking of that, too. It would be nice if he added it :)
-
View User Profile
-
Send Message
Posted May 11, 2014@eyalzh
Sweet! Can you also make it possible to have a 'foundation block,' such as a piece of obsidian (Probably should be able to set by config)
My idea is that the obsidian block is in the middle of the structure. If the obsidian block is broken, the structure is destroyed, and reverted to its item form.
That would be awesome if you could add that :D
-
View User Profile
-
Send Message
Posted May 10, 2014@naihamdude
It's submitted, so it's up to Bukkit. Probably not more than one or two days.
-
View User Profile
-
Send Message
Posted May 10, 2014@eyalzh
Whats the ETA on that? :)
-
View User Profile
-
Send Message
Posted May 10, 2014@TehMinecraftPoke
I'm adding an undo command and cooldown time setting. Together, they should allow players to "pick up" the SiB. The cooldown time will protect the server from players who decide to spam the undo feature.
-
View User Profile
-
Send Message
Posted May 9, 2014Does it show an outline (height and width) when you place down the SiB? If you have played CivCraft, it would be nice if you can add that feature. Players on my server are given a plot and it would be better if they could see how much room a structure will take. Also, a 'confirm' command would be appreciated in case someone misplaces it by accident.
Also, if you could add the option for packing back up a structure into a block, that would be top. Sometimes players get the sudden urge to move everything (on my server, you aren't allowed to destroy/place blocks, only buy structures). Thank you in advance if you plan on adding any of these.
EDIT:
Actually, a "preview" of a build instead of an outline would be better if you can add that. As for the other features I suggested above, the only one that I am sticking with and would enjoy seeing is the ability to put builds back into a chest. Maybe make it configurable so only some structures can be stored back.
Also, to reduce lag on servers, maybe you can take the "Build-In-A-Box" path when it comes to deploying the build. I plan on selling large structures and the current way it's set up causes a server lag spike when I place down a structure.
Again, thank you in advance.
-
View User Profile
-
Send Message
Posted Apr 29, 2014Quite cool, Kind of like Age of Empires etc for building ;)
-
View User Profile
-
Send Message
Posted Apr 26, 2014Also, there should be a configurable block that can't be replaced like bedrock to prevent downward SiBs from penetrating the void.
-
View User Profile
-
Send Message
Posted Apr 25, 2014EDIT: Can you make it by default paste air blocks, too? Or make an exclusionary block that would turn into air?
Do an initial version check to rewrite an old config, maybe add a reload option. Not really necessary, but they're useful.
Possible additions would be better buffering/loading in chunks. People might want to have some pretty big SiBs. As well as SiBs that carry the name of their schematic. Displaying the item name, without underscores. (e.g. Structure: Large_House would be "Structure: Large House" as an item)
Just some possible features I'd love to play with. Nice work on the plugin, though! Really useful.
-
View User Profile
-
Send Message
Posted Apr 25, 2014@JehZirO
Ah, thanks for letting me know. And yes, I will add that to the configuration.
-
View User Profile
-
Send Message
Posted Apr 25, 2014You spelt structure wrong in the free space warning.
Also can you make the overwrite terrain a configurable option?
-
View User Profile
-
Send Message
Posted Apr 21, 2014@Undone_Laces
The lore should be "SiB: Test"
In Essentials that would be:
and of course the schematic name should be "Test".
-
View User Profile
-
Send Message
Posted Apr 21, 2014How exactly do I put an SiB in a kit? What should it be called. For example, the SiB is called : Test
-
View User Profile
-
Send Message
Posted Apr 12, 2014Can you make the chest to can be placed and removed? wath i mean? so you can place and remove the building, so if you place the chest, it will keep there and the building will appear, if u remove the chest, it will be dropped and the building will be removed, this may cause blocks duplication, but maybe it can be fixed with a new setting called something like Unbreakable-building
So they can be like "Portable Structures"
-
View User Profile
-
Send Message
Posted Apr 12, 2014@roshi1000
No.
-
View User Profile
-
Send Message
Posted Apr 12, 2014@dvago
Not at the moment. I will add that option in the next version.