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
//wand
for 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
//copy
to 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.
1.17?
Since this is no longer updated, I have made my own plugin which I wrote from scratch: https://dev.bukkit.org/projects/structure-boxes
Pleace Update this Plugin to work properly on the latest versions of Bukkit/Spigot. :)
@Bowbuck2
Me too
@DanPlayzMC1
Just put the chest or the spawn thing on your /shop add
1.10.2 update please
Does anyone know how to put a sib into a gui shop? Please explain!
Players can only place the Structure if they can build in every region I have(Or if there's no regions at all). Is that a bug? Is that supposed to be that way?
Priorities are set up so players can build in the given spot for the ship(Tested with my buddy), but for some reason they can't spawn the ship.
can has for 1.8 please?
@TheTealViper
IT WORKS FOR 1.8.X PERFECTLY FINE
I posted my own version of a recode/update for 1.8.X here: https://www.spigotmc.org/resources/build-in-a-box-recoded.16652/
I posted my own version of a recode/update for 1.8.X here: https://www.spigotmc.org/resources/build-in-a-box-recoded.16652/
Okay guys, the author don't seem to be interested in the plugin anymore, so I've updated it to a version that works at least with my 1.8.8 Spigot version. Here's the link: https://www.dropbox.com/s/0tov71kmc7czbpr/sib.jar?dl=0
@mat41997
I get the same Error...
Does this work in 1.8??? Or no?
Error,
UPDATE THIS PLUGIN PLEASE
@xxxwonderxxx @eyalzh PLEASSSSSS Update!
O plzzzzzzzz
plz plz plz dude plz Update :D
@TheZerok666
hehe ive gotten the same idea! xD like Anno2070 from Ubi-soft?
@Bowbuck2
I want to set a record and make the biggest Roleplay server in runet (russian part of the internet). lol I have to build a few thousand houses, make lots NPCs, different ship models (which will be buyable), name continents, river systems, lakes, seas, oceans, cities, villages and etc. xD
The server will be bilingual though (english and russian). Would be nice to get some help, but I don't know where to find people. Any ideas?