MCPcopy Index your code
hub / github.com/copygirl/WearableBackpacks

github.com/copygirl/WearableBackpacks @v3.1.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.1.4 ↗ · + Follow
1,219 symbols 3,419 edges 87 files 245 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Wearable Backpacks

.. is a Minecraft mod which adds backpacks. But wait! It's not like anything you've seen before. Wearable Backpacks continues the legacy of BetterStorage's backpacks, and brings with it a beautifully designed and balanced alternative backpack option unlike any other!

Backpacks!

"Backpacks are love. Backpacks are life." -asiekierka "copy-who?" -MindlessPuppetz

What's so great?

  • There can be only one! Other mods allow you to carry multiple backpacks in your inventory. WBs doesn't. This design, as well as the resulting implementation has been carried over from its predecessor. But what the mod is lacking in convenience, it's trying to make up in charm and configurability.

  • Armor up, or storage up? With the default settings, backpacks will function as armor, taking up the chest armor equipment slot, protecting from as well as taking damage just like leather armor. This way, you have to choose between more protection or more storage. This can be turned off though, in case you don't like it.

  • Play with friends, share backpacks! Having a backpack on your back looks cool and all, but if only you could do something with that beauty. Well, lucky you! Other players (hopefully, without ill intentions) can open your backpack and borrow a pick and some torches on a mining trip. This of course only works as long as your back is facing towards them.

  • Dying is FUN! Sick of losing all your valuables when you make a small little misstep into the nearest pool of lava? Don't worry, the items inside your backpack will be... mostly safe. While the backpack itself is not immune to explosions or being broken by other players, after death it will gently place itself down near your point of failure, ready to be retrieved.

  • Dyeing is fun~! Backpacks can be colored using Minecraft's fantastic dyeing system. Unlike some silly mods that only allow the 16 base colors, with our pretties you can mix and match your dyes to customize them in any way you like!

  • Configuration Nation Not sure if WBs will fit your play style? Don't worry! This mod is meant to be incredibly configurable with its easy-to-use ingame config menu. This allows backpacks to be balanced, regardless of whether they're used in a personal hand-picked pack, a huge kitchen sink modpack or a deadly hardcore-massacre-of-doom experience with sprinkles on top.

Usage

Think of Wearable Backpacks backpacks as portable, wearable chests. After you've crafted one, simply place it on the ground and fill it with whatever you'd like to take with you. Next, sneak and break the backpack to equip it. You'll notice that equipping is faster than breaking.

Now that the backpack is where it belongs (your back), you can unequip it again by sneaking and right-clicking the ground with an empty hand (specifically, the top of a solid block).

By turning on a config option, it's also possible to open the backpack using a keybind, which you can find in the controls menu (default: B).

Crafting Recipe

  • 7x Leather
  • 1x Gold Ingot
  • 1x Wool

Backpack Recipe

Additional Features

  • As already mentioned above, this mod has many, easy to use configuration options. Simply click Mods in the main menu or Mod Options ingame, search for "Wearable Backpacks" and click the Config button.
  • When backpacks are equipped as armor, they may also be enchanted just like armor. (This feature is missing from 1.10 due to missing enchantment hooks in Forge.)
  • Some mobs may rarely spawn with backpacks equipped, containing random loot.

Download

Available right here through GitHub Releases or on CurseForge. All profits gained through Curse's reward system go directly to Child's Play charity.

License & Permissions

Wearable Backpacks is licensed under the MIT license, though feel free to consider it public domain. This applies to both the source code and releases, so you are free to redistribute, include in modpacks, modify, fork, release your own versions of this mod as much as you'd like.

If you contribute to this repository, do keep in mind that your contributions will be treated the same.

For Modpack / Map Creators

  • Custom backpack size can be set using NBT tag backpack:{size:[x,y]}.
  • Custom armor value can be set using NBT tag backpack:{armor:x}.
  • Default backpack loot table wearablebackpacks:backpack/default can be overridden.
  • Backpack spawn settings can be modified: Edit chance, loot table and color.
  • Custom entities can be configured to spawn with backpacks!

Credits

Authors: copygirl, asiekierka

Contributors: - ChloeDawn (#33, #50 and more) - IwoPlaza (#82) - ichttt (#119)

Localization

In the order of their pull requests being submitted, here are the lovely people who provided their translation superpowers to make WBs available in other languages:

Special thanks to ...

  • asiekierka for being an amazing friend in general, letting me use Charset as a reference and updating the mod to 1.11, so he's getting a co-author mention. ❤
  • The Penguins' Retreat server for encouraging me to rework / finish this mod.

Contact

Feature requests and bug reports belong on the issue tracker. For general inqueries, discussions and praise, you can contact copygirl directly at Twitter (@koppeh) or via email, but you're also very welcome to join our little community's IRC channel (#obsidian on Esper.net) and Discord guild.

In the event that this mod becomes self-aware, we are not responsible for any damage it causes.

Extension points exported contracts — how you extend this code

IConfigValue (Interface)
(no doc) [11 implementers]
src/main/java/net/mcft/copy/backpacks/client/gui/config/IConfigValue.java
IBackpack (Interface)
Interface which represents a "fully realized" backpack, consisting of a backpack stack, backpack data and some addition [4 …
src/main/java/net/mcft/copy/backpacks/api/IBackpack.java
Setup (Interface)
Implemented for elements that need to be set up with data from a setting. (Such as min/max for sliders.) [3 implementers]
src/main/java/net/mcft/copy/backpacks/client/gui/config/IConfigValue.java
IFixedAlign (Interface)
(no doc) [3 implementers]
src/main/java/net/mcft/copy/backpacks/client/gui/GuiScrollable.java
ShowsStatus (Interface)
Implemented for elements that show status through their visual appearance (text, border and background color). [1 implementers]
src/main/java/net/mcft/copy/backpacks/client/gui/config/IConfigValue.java

Core symbols most depended-on inside this repo

addFixed
called by 69
src/main/java/net/mcft/copy/backpacks/client/gui/GuiLayout.java
getWidth
called by 44
src/main/java/net/mcft/copy/backpacks/client/gui/GuiElementBase.java
get
called by 39
src/main/java/net/mcft/copy/backpacks/config/Setting.java
getHeight
called by 37
src/main/java/net/mcft/copy/backpacks/client/gui/GuiElementBase.java
getText
called by 35
src/main/java/net/mcft/copy/backpacks/client/gui/control/GuiField.java
stream
called by 35
src/main/java/net/mcft/copy/backpacks/misc/util/NbtUtils.java
format
called by 31
src/main/java/net/mcft/copy/backpacks/misc/util/LangUtils.java
get
called by 29
src/main/java/net/mcft/copy/backpacks/client/gui/GuiLayout.java

Shape

Method 1,059
Class 143
Interface 12
Enum 5

Languages

Java100%

Modules by API surface

src/main/java/net/mcft/copy/backpacks/client/gui/GuiElementBase.java78 symbols
src/main/java/net/mcft/copy/backpacks/client/gui/GuiContainer.java49 symbols
src/main/java/net/mcft/copy/backpacks/client/gui/config/custom/ScreenEntityEntry.java45 symbols
src/main/java/net/mcft/copy/backpacks/config/Setting.java42 symbols
src/main/java/net/mcft/copy/backpacks/client/gui/GuiScrollable.java39 symbols
src/main/java/net/mcft/copy/backpacks/client/gui/GuiEntityRender.java39 symbols
src/main/java/net/mcft/copy/backpacks/client/gui/control/GuiSlider.java37 symbols
src/main/java/net/mcft/copy/backpacks/item/ItemBackpack.java32 symbols
src/main/java/net/mcft/copy/backpacks/misc/util/NbtUtils.java29 symbols
src/main/java/net/mcft/copy/backpacks/api/BackpackRegistry.java29 symbols
src/main/java/net/mcft/copy/backpacks/client/gui/config/BaseEntryList.java27 symbols
src/main/java/net/mcft/copy/backpacks/container/ContainerBackpack.java26 symbols

For agents

$ claude mcp add WearableBackpacks \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page