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
Can you update this to work on 1.11 Thanks
If you havent gotten this suggestion already, I recommend adding an option to set which slot in the hot bar each pack goes into. I have my tools organized and in specific slots and it interferes with this. If you update soon this feature would be awesome and I would have more use for this plug-in.
Please add economy support so we can buy the chestpack using money :)
Suggestion: you should make the plugin rename chestpack as such... else it can get a bit confusing sometimes...
otherwise, awesome plugin ^^
I don't know if this is being updated anymore however .. just found a bug .. if you make multiple packs at the same time by shift clicking when making them they can be used to duplicate items ... if this is being updated pleas fix this
AWESOME plugin but 1 thing,can i be a tester
I just tried this plugin on 1.6.2 .. everything seems to work great ..
just have 1 request .. can you make the plugin rename the chest to something like ChestPack .. this will make it easer to tell the difference between a normal chest and a chestpack in the quick bar
@porthos203
i need it for 1.5.1
update plz :S
@CommodoreAlpha
Yeah, that should be possible.
I've been planning on doing a complete rewrite of the plugin for a while, so if anyone has any suggestions for features they would like added, now's the best time to let me know.
Could you add configurable names for each chestpack? (e.g. small chestpack, medium chestpack, etc.)
@dela09
Ok, I will look into it when I get a chance. Thanks for letting me know.
the command is working with 1.5.1 but i can't craft any of these chestpacks. Please fix this.
greetings
@lolface747
Heya, go into your Config file for the Chestpack and look for something like:
packTypes: - material: leather material_count: 8 size: 54
This lets you can change the spaces available there... I have mine set at This for leather, 45 (for the pack with workbench) 27 (for the 4 Strings) so that people always can make a decent sized pack. My server is a private 'builder friendly' for my friends that just like to make things, that's why I gave them Large chest packs. Anyways, hope this helps! Enjoy!
Works but there isnt a lot of space in the chestpack
@Pentarctagon
It works fine for me... ? Saying 'It "works", but not really as intended' helps no one. Be specific in the bug, error, or problem you're having!
@Azzareal
I'm running a CB-1.4.5-R0.2 server and I have not run across any bugs or item duplications. I'm currently using it with the StackableItems plugin, and I don't know if this is what is causing my items NOT to be duped, but everything seems to be in order.
EDIT: The auto-equip and auto-hold config options seem to be broken, but I have them disabled on my server anyways. Also, players can't craft chestpacks; they are given to them through TreasureChests.
@mstiles92
EDIT:EDIT: Would it be possible for each packtype to have its own chestpackItem? Thanks for all your time and hard work!
It "works", but not really as intended.
Is this compatible with 1.4.5?
@mstiles92
Good luck then!
If not already told ( i didnt look honestly) But currently with the most recent builds and bukkit builds the items get duplicated while in backpack.