ChestBuilder
ChestBuilder
Fireworks, Teleporters, machines that make diamonds and more coming soon!
ChestBuilder allows a player to build structures using pre-set blueprints inside of a chest inventory. When the chest closes the items inside are matched against blueprint patterns and a structure is built using those materials.
Requirements
ChestBuilder requires ChestDataBase be installed (although you don't need to use CDB unless you are using the teleporters).
How it Works
Place a single chest in the location you wish to build the structure (make sure the chest is facing the way you want the structure to face). The chest will probably need to be 1 or 2 blocks into the ground because the structure is usually built 1 block above the chest. Open the chest and put the key item into the key slot (slot 16, or the 2nd to last slot in the middle row). ChestBuilder uses the basic theory that each single chest is divided into 3 9 block grids. Most blueprints will use the first grid to build in (unless its wider than 3 blocks) and the last grid for configurations. They key slot is the middle slot in the far right grid. For machines you'll use a lever for a key, gunpowder for explosives, and an ender eye for teleporters.
After you get the key item in the slot place the required items in the far left grid according to the blueprints and close the chest. Once the chest closes you should here a loud bang and your structure should appear. If not then you might have put the wrong amounts of each item in the chest. You must have the exact amount in each item stack. Each blueprint will contain the exact amount of materials used for the structure, so you wont get any extra pieces by building something then breaking it down and you wont get robbed materials by using ChestBuilder. The "cost" of building a structure like this (besides the material costs of the structure) is 1 chest and the key item.
- Note that structures will work if you build them manually and put the correct configuration inside of the chest, but this is mostly pointless. Some structure do hold somewhat valuable items in the chest for encoding values (potions). This will probably change when Minecraft 1.3 is released due to writable books. Players can craft a structure and look in the chest and pull out potions in some cases, this will stop the structure from functioning properly and chests should be worldguarded.
This does not work as of 1.3.1 (maybe earlier but I'm not sure). I can't get the InventoryCloseEvent to fire off anyway when the chests are closed.
@NEETCYCLER
I'm not quite sure what you mean here. Can you give me an example?
Is there anyway to stack blueprint items to an inventory slot and bind it to a chest?
Really interesting plugin. I might add it. But as we already have plenty of plugins as it is, and this would be a nice add to as well, a video would really convince the community on my server.
Not requesting someone to make one, but wouldn't hurt.
@j6ny
That is an interesting request, would you want pixel art from an image file or what?
Hi! This looks realy cool! I'll download it when I get a chance. Could you please make it that you could do pixel art with it? That would make it awesome! =D
@TheNinth
You will need to download and install ChestDataBase also. If you are just using this mod for the fireworks and diamond crusher then you dont need to use CDB for anything, it just uses functions from it. But if you want to use the teleporters then you will need to set up the config file for CDB by adding fields. Here are the instructions for installation.
Heyheyhey!
I tried the plugin but this came out:
[SEVERE] Could not load 'plugins/ChestBuilder.jar' in folder 'plugins'
org.bukkit.plugin.UnknownDependencyException ChestDataBase
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:195)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213)
at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:550)
at org.bukkit.Bukkit.reload(Bukkit.java:182)
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:475)
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:612)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:581)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Any ideas on why this is/how to fix it?