Chestpack
Chestpack - extra storage in a backpack on your chest!
Need extra storage while traveling? Wear a chest on your chest! Chestpack enables players to craft backpacks of various sizes for augmenting their normal player inventory space. It is designed to enable carrying additional items realistically without being too overpowered.
Features:
- No client mods required
- Crafting recipes to create packs
- Three different types, with configurable material and size
- Optional integrated workbench
- Packs are uniquely identified, and can be opened by id as an admin
- Equip pack as chestplate for storage (optional)
- Hold pack in your hand when picked up (optional)
- Nesting packs within packs is prevented (optional)
- Permissions support
- Somewhat realistic
Usage
Craft a pack by surrounding a chest with one of:
- 4 string = 9-slot pack (daypack)
- 8 wool = 27-slot pack + integrated workbench (craftsman's backpack)
- 8 leather = 45-slot pack (explorer's backpack)
When holding the resulting chest (it appears the same as a normal chest, but is actually a special wearable chest), click to open the pack. You can drag items to/from the pack and your inventory, as you would expect.
If your pack has an integrated workbench, shift-click to open the crafting area.
When it isn't held in your hand, the pack will move itself to your chestplate armor slot, representing the pack being worn on your back as a backpack (or on your chest as a chestpack, whatever interpretation you prefer). This is where the pack normally resides.
To get back into your pack, take it off your back and move it into your hand. Left-click to open it.
Configuration
verbose: Enable logging of different events to console (used for debugging)
checkForUpdates: Control whether the plugin notifies players (with the chestpack.admin permission) of new updates.
allowNesting: If enabled, packs can be stored within packs. When disabled (the default), attempts to nest packs will drop them to the ground.
autoEquip: If enabled, packs will automatically equip in your armor slot, simulating wearing a chestpack, actively preventing you from storing the pack elsewhere in your inventory.
autoHold: If enabled, packs will automatically be held in your hand if placed in your hotbar or picked up from the ground. Along with autoEquip, this option is meant to simulate a pack you can either hold in your hands or wear on your back, but not keep in your "pockets" (other inventory slots). Disable along with autoEquip if you want the pack to (less realistically) behave as a normal item so you can carry multiple packs.
allowOpenContainers: Allows you to still open containers (chests, etc.) by right-clicking, instead of opening the pack.
equipSlot: Player inventory slot to wear the chestpack on if autoEquip enabled. 3 = helmet, 2 = chestplate, 1 = leggings, 0 = boots.
maxSlots: Number of slots to show with /chestpack command.
chestpackItem: The item used to represent a chestpack once crafted
packTypes: A list of the packs to allow crafting for. Each item has several fields:
packTypes base_material: The material used in place of a chest (optional)
packTypes material: The material to craft the pack from (in addition to the base material).
packTypes material_count: Number of material items to require to craft.
packTypes size: Number of slots in the resulting chest. For reference 27 is a small chest, 54 is a large chest.
packTypes hasWorkbench: If true, the pack can be shift-clicked to open an integrated crafting table.
The default configuration is:
verbose: false
allowNesting: false
autoEquip: true
autoHold: true
allowOpenContainers: true
equipSlot: 2
maxSlots: 54
chestpackItem: chest
packTypes:
- {base_material: chest, material: leather, material_count: 8, size: 45}
- {base_material: chest, material: wool, material_count: 8, size: 27, hasWorkbench: true}
- {base_material: chest, material: string, material_count: 4, size: 9}
For the values of base_material and chestpackItem, you must use the values listed here.
Alternatively you can disable Chestpack's recipes and use another plugin to add more complex custom recipes. Simply add a recipe to craft a chest with the following enchantments:
- Fortune I - identifies an empty pack (higher levels are used as unique identifiers)
- Efficiency # - level is number of slots, negated
- Punch - if present, pack has an integrated workbench
Chestpack inventories are stored in separate files, named pack<id>.yml.
Also, this plugin uses PluginMetrics by Hidendra to track plugin usage. All data collected is anonymous and may be viewed here. For the paranoid, this may be disabled by editing plugins/PluginMetrics/config.yml and changing the value of opt-out to true.
Permissions and Commands
chestpack.admin (op): Allows you to open any chestpack with the /chestpack command
chestpack.open.size.9 (true): Allows you to open chestpacks of size 9
chestpack.open.size.18 (true): Allows you to open chestpacks of size 18
chestpack.open.size.27 (true): Allows you to open chestpacks of size 27
chestpack.open.size.45 (true): Allows you to open chestpacks of size 45
chestpack.open.size.54 (true): Allows you to open chestpacks of size 54
chestpack.open.size.any (false): Allows you to open chestpacks of any size
chestpack.open.workbench (true): Allows you to open integrated workbenches
/chestpack id: Opens chestpack with the given id, 2 or greater (aliases: /pack, /cp).
Caveats
The chest pack item shows up as a normal "Chest" in the player inventory. But its behavior should make it clear how it differs (it auto-equips, can be opened, doesn't stack with other chests).
See also
Other mods or plugins worth checking out:
- Backpack - client/server mod with wearable backpacks, magic backpacks
- Forestry - client/server mod with several item-specific backpacks
Fork me on GitHub GitHub of original author, mushroomhostage
Hey all, i created a little showcase on this plugin :)
Anyone mind checking it out?
http://www.youtube.com/watch?v=Ejvw5mKpNUs&feature=youtu.be
I wonder what is the ID of the crafted chests. Is it 54:1 54:2 54:3...and so on? I'm using recipe manager, and it conflicts with this plugin's recipes. I want to recreate the recipes from this plugin with recipe manager, but I can't find out how.
The autohold feature can't be disabled... It's pretty annoying that it swaps the items within your inventory..
@mushroomhostage
I was thinking more of custom names for the defult size chests...like tiny chest, spacious chest and such :D
And with that chest bug...well it will not dupe anything but the items can be lost this way for example we both have a copy of the same chest then we both access the chest at the same time u place an apple and i place some coal however we will only get an apple or a coal in the chest because it doest update content of the chest dynamicly but rather by pulling array on open event and then pushing it back on close event...therefore it leeds to items lose....
sry for my bad english not my native
P.S You should disable possability of chest dublicating on crafting event...
@Joe_Schmo2840
@skullonroses
Interesting.. definitely not an intended part of the design but if it works.. kind of like the Ender Storage mod or Ender Chests in the new snapshots? If you could test it more and let me know if there are any dupe bugs.. if not maybe I'll leave this as a feature :)
@skullonroses
Custom names certainly would be possible, I've been thinking of a good use of the item tagging feature in Minecraft. Unfortunately Bukkit does not yet have an API for item data https://bukkit.atlassian.net/browse/BUKKIT-15 so in order to do this I'd have to bypass the API and access native methods directly – not impossible, but it could come with some caveats, like randomly losing the backpack name unexpectedly. Another option would be storing a unique ID in another enchantment and looking that up from a list of customizable names.. would be neat.
Yeah but there is no global support...for example items can be eaten this way if different users communicate with chest
@Joe_Schmo2840
I love it, you can backup/transfer/store your things like that....just craft a network of chestpacks...
I mean if possible to define the title of the pack
@skullonroses or custom ids/damage values
Custom names for backpacks?
possibly found a dupe bug. seems if you craft multiple packs without closing the workbench they will be the same id and stack. Then you can put items in the stacked packs and throw one down at a time and all the thrown packs show the same items. Whether or not you can take the items and keep them and have all of the packs still match or not is to be determined.
-Edit didnt realize you made silkspawners and enchantmore! I use and love both :D
@DoubleZ
Thanks for the info, and I agree. Tim The Enchanter should work now for most special cases.. I also submitted a patch to Cookbook but no promises by when it'll be accepted. Has anyone tried with RecipeManager or other plugins?
@MRCartm0n
If you're still seeing this problem can you post your full server console log and config.yml?
@JackFrost21
Just go to your server and open "config.yml" in plugins/Chestpack.
i'm so god-damn stupid i thought to craft a chestpack i have to build leather in a crafting table LIKE the recipe of a chest - not arround the chest... begging sorry
great work :D
How do you configure this? I mean, what do you open and where do you type. I have notepad +_+ for editing Heroes, but I don't know more than that.
Doesnt work for me. Backpack has always same size.
@mushroomhostage
(English is not my native language, I try my best to express my suggestion)
I don't add any custom recipes with unsafe enchantment.
I use Tim The Enchanter to enchant one.
There are few plugin authors write plugins about unsafe enchantment like you. It's troublesome to find a plugin which supports unsafe enchantment. I think you can promote your unsafe enchantment plugins to people, especially people who like fighting, adventuring and role-playing ( and this plugin can be promoted to people who like building). You can also answer some quentions on forum which can be solved by your unsafe enchantment plugins.
The goal of above is to make people feel that they need more unsafe enchantment support, and they will propose relative suggestions to other plugin authors and the bukkit staff.
There are tickets about unsafe enchantment support are proposed in Cookbook and Otherdrops.
Is the workbench backpack broken, or is there some special way to open a crafting table on it? EDIT: Never mind, I found out how to use it.
@DoubleZ
Good catch, thanks. Fixed this documentation bug.
By the way if you don't mind me asking, what are you using to add these custom recipes with unsafe enchantments? I've been looking for a recipe manager plugin to recommend for use with Chestpack and my other plugins..
hi, this plugin is very cool! love it!
but I found a bug, to create a chestpack with workbench by enchantment method, It should be punch not power.
Wow lots of comments! Try today's release, just uploaded :)
@Storm75x @KrYojeNiX @LordKainzo @DanishDude93
Added new permission nodes in Chestpack 1.1, chestpack.open.size.<id> to allow opening packs of the given size, and chestpack.open.workbench to allow using the integrated workbench.
Happen to have a link to the Backpack plugin which was grouped? Found this: http://dev.bukkit.org/server-mods/backpack/ but its not released yet and requires Spout.. edit: I suppose this is it: http://dev.bukkit.org/server-mods/bukkitinventorytools/
@predawnia
Added permissions to use (or at least open) the packs, for each size, but not quite sure how to control crafting permissions. I think it may be possible with CraftItemEvent but its not in 1.2.5-R1.0. Anyone happen to know any other plugins with crafting recipe permissions I could take a look at?
@Tealk123
The ArrayIndexOutOfBoundsException error could occur if the stored pack inventory was larger than the pack item specified. Should be fixed in 1.1.
Also moved the pack inventories to separate files, now named pack<id>.yml instead of all being stored in config.yml.
Not sure what you mean about admin permissions, can you be more specific?
@Robler
Fixed pack nesting prevention in 1.1. I actually had code to prevent it, but the condition to enable it (allowNesting) was flipped, oops. You can recover the pack contents if you need to by editing the config file.
@Ayezar @diannetea
Added autoEquip option, you can now turn off the armor slot equipping, and autoHold to turn off automatic holding in your hand too, if you want. The idea is to make it more realistic by not letting you store the pack anywhere but in your hands or on your back, i.e., not in your "pockets" or whatever the other inventory slots are supposed to represent, but it can now be disabled if you want to use multiple packs, or have the pack behave as a normal item.
For the crafting table in the craftsman's pack, try shift-click and it should appear. Any suggestions of a better way to get rid of the packs? You can always just drop the item somewhere to dispose of it (into lava, cactus..).
@diannetea
Haven't seen this error, can you try to reproduce on the latest builds? Also what version of CraftBukkit and Chestpack are you using?
@Storm75x
Does it work if you use the default crafting recipe? (8 wool + chest). Power (arrow_damage) 0 won't be recognized due to a Bukkit API limitation but Power I or any other value should..
@MinecraftTakeover
Added equipSlot config option, defaults to 2 (chestplate), but can now be set to 3 (helmet) or other slots. But there's a bug in the Minecraft rendering code for chests so it appears offset from the player's head (I've heard of the same problem in the Iron Chests mod rendering wooden chests within chests..).