Please give this mod a if you like it!
This mod adds three blocks all storing different amounts of items.The most basic type, the Barrel can hold 64 stacks and is crafted as shown:
The second tier, called the Ender Barrel can hold 1028 stacks of items and is crafted as shown:
The best barrel, called the Quantum Barrel holds 4096 stacks of items and is crafted as shown:
- Crafting recipes and the amount of items the barrels can hold is configurable.
How to use Barrels
I made a video showing all the features of the mod:
- You can put items into a barrel by right-clicking with your hand. All the items (if the barrels is not full) will be put into the barrels only if the item in your hand is matching the item, in the barrel.
- You can take items out by left-clicking the barrel as if you were braking it. It will take out a stack at a time. If you want to take out individual items, you can sneak (default key is shift) and click the barrel.
- If you want to put all the items in your inventory into the barrel, you can double right-click on the barrel.
- If you want to upgrade a barrel (a barrel is nearing or is at capacity), you can double right-click a barrel with a barrel that is of a higher capacity. This will swap the barrel that is in your inventory with the one that is in your world without having to replace it having to re-sort all your items. Make sure you only have one barrel in your inventory or it won't work.
- Barrels work with hoppers and dropper and other mods that have inventory changing blocks just like they would with chests, but only accept one item. Note that by default items can only exit/enter by the top and bottom. This can be changed in the configuration option.
- If you don't like the plain look of a barrel, you can put a item frame on a barrel and it will take full advantage of it. By sneaking (default key is shift) and right clicking a item from an a side of a barrel, the item frame is going to snap onto the barrel and display whatever is in the barrel. If you want to take a item frame off the barrel, just place another item frame and both will pop of the barrel.
- if you want to fit as many items from the barrel into your inventory, click one empty slot, then switch to another one and click again.
- if you want to pull out a specific amount of items, sneak and hold left click, one at a time, items will flow into your inventory. Depressing left click stops the items.
How to install
The installation of this mod is very simple. In the future, I plan on adding a one-click auto installer so you can start playing with barrel right away but for now you need to install it manually.This mod uses a API called Minecraft Forge. You will want to go into the releases page and find the version of the API that is compatible with the minecraft version you have. If you downloaded a version that is 1.6 or later, it will come with a auto installer that only installs itself you you still will need to install barrels manually. Follow the procedure on the automatic installer that Minecraft Forge provides. Make sure you know that path of the minecraft installation. After Minecraft Forge has installed open up minecraft and make sure that minecraft runs. After that, locate your minecraft installation and you will find a mods folder. Place your barrels mod into that folder, start up minecraft and you're done.For users that are downloading a version of Minecraft Forge prior to 1.6, locate your minecraft directory and you will find a folder called bin navigate to this folder and you will find a minecraft.jar file (you might not see the .jar at the end) Use a archiving tool like 7-Zip and unzip the file. When done, delete your META-INF folder. You will also need to unzip your Minecraft Forge file and copy all the files found there into your minecraft file. Replace all the files that override. Start up minecraft and make sure everything is working. Navigate to you minecraft root-directory and place the barrels mod into the mods folder.For Advanced Users:If you have trouble starting up minecraft after installed this mod, try changing the block-id to another one. This can be done in the configuration file of this mod. For any other kind of problem, post your error report as a response to this topic. MAKE SURE you use spoiler tags to encase the error report.
How to configure custom recipes
One of the biggest features is the under-the-hood configuration of this mod to perfectly suit your mod pack. The biggest one being, configuring recipes.The recipes are configured by a string of characters containing ';' (semi-colons) as splitters, and ',' (comma) as the sub-splitter. The default recipe of the first tier barrel should be this:
shaped;logWood;logWood;logWood;item,ingotIron;nothing;item,ingotIron;logWood;logWood;logWoodIf we take out all the semi-colons we will get 10 parts. The fist part specifying if this recipe is shaped or shapeless. The others are the actual crafting recipe.
shaped;logWood;logWood;logWood;item,ingotIron;nothing;item,ingotIron;logWood;logWood;logWoodI have split the four main parts as follows:The first part is shaped/shapeless configuration.The second part is the top 3 slots in your crafting gridThe third part is the middle 3 slots of your crafting gridThe fourth part is the bottom 3 slots of your crafting gridIn this example, there are 3 logs running along the top and bottom. Here you can see that logs are specified as "logWood". That is a forge dictionary name and works will all kinds of woods added from different mods. In the middle slot, I have an iron ingot, then a empty space, then another iron ingot. Here I am using unlocalized names (meaning it's not translated).To tell the crafting recipe to use unlocalized names you first need to put "item" then your comma sub-separator. after that you put your name. If you want to specify a certain damage value, put another comma then your damage value.To use item/block ids, the specifier is "itemid" or "blockid" (they do the same thing) then your id. Like last time, you can add your damage values.You can use forge dictionary names, just by typing the forge-dictionary name in the recipe. No identifier is needed.You can also specify a barrel in the crafting recipe. The specifier is "barrel" and the three types you can choose from are, T1barrel, T2barrel, and T3barrel.This last option is very technical and not many people will use this.If you want, you can also get a recipe from a class in another mod using Java reflection. no identifier is needed, just type in the class name, then the field name. The field must be static. Like always you can specify a damage value.