1.20.1 is the most up-to-date version. 1.20.2 development has been canceled and updates to other 1.20 versions are unlikely until a 1.21 version is released.
Ports to previous versions are difficult since trims and the decorated pot were added in 1.20. A simplified version for 1.18.2 is the most likely if any back port does happen.
I have added many methods in CompatHelper to hopefully help you out. I've also added Cancelable Events for both Forge and Fabric if your mod needs to interact with how the backpack is dropped on death.
All the mod's config is handled by Data Packs, checkout Creating Your Own for how to disable the backslot when wearing an item or blacklisting items from backpack inventories. Creating mod packs is what got me into modding so if you have any suggestions for config leave it in the issues tab.
- Migrated
data/modify
files from Data Packs into Config- The data-pack method will continue to work in this version but will be removed soon.
- Added "Backpack Lock" Item. Used on a placed backpack to lock it. Shift RClick your locked backpack to unlock
- Shift Clicking a Backpack Item no longer locks it.
- Capes now display rolled up on top backpacks
- Backpacks now render at a much greater distance
- Added Config option to override the max_stacks of data-driven backpacks such as Gold & Netherite Backpacks
data_driven_overrides
- Added Config option to disable backpack from being rendered and used by other player on the back
always_disables_back_slot
- Separated Keybind into in-menu uses & in-world uses
- Added an option to specify the sounds when creating a data-driven backpack.
- Cleaned Up code when rearranging the backpack's menu to hopefully prevent crashes when taking items
- Backpack Menu Slots are reorganized each mouse click and not per-frame to hopefully prevent crashes when taking items
- Fixed bug causing players not to be able to manually equip backpacks with curios/trinkets
- Fixed crash when sending backpack inventory while a client's player is null
- Lighting in Backpack Menus should be more reliable
- Finalized All Backpack Sounds
- Sound for locking backpacks
- Unique Winged Backpack sound
- Unique Decorated Pot sounds
- Unique Ender Backpack Sounds
- Ender Backpacks now play sounds at all linked inventories
- Added Advancement for a player attempting to access your locked backpack
- Removed the Back Slot from being disabled
- If it had been disabled, it will now not render on your back
- Winged Backpacks & Elytra still cannot be worn together
- Pick-Block with Pots work again
- Fixed Crash on client while accessing ender inventory
- Fixed items disappearing after stacking over 127
- Fixed empty slot in BP menus not disappearing when inventory is full
- Backpacks can now be locked by holding them & right-clicking
- Other players cannot access or equip a locked backpack
- Holding your hotkey with a locked backpack equipped temporarily unlocks it
- Ender Backpacks cannot be equipped while locked
- Animation Changes
- Backpacks do not open slowly if you did not open them
- Perfected Backpack opening animations
- Added breaking decal to punched backpacks
- Backpacks now take 3 punches to break
- Locked Backpacks take 8 punches
- Reworked Ender Backpacks
- Opening a placed ender backpack visually opens all linked packs
- Ender Backpacks sends less data more frequently and are more reliable
- Ender Inventories are now one single inventory instead of many synced inventories
- Fire burns backpacks slower
- Cactus instantly breaks backpacks
- Sounds are now registered in
:common
- Text appears in the inventory while trying to equip something that's blocked by the Back Slot
- Fixed many leather backpack sounds
- Fixed crash caused by players failing to load other back slots
- Fixed dupe with the crafting result slot & shift key
- Finalized Backpack Tooltip
- Added config to switch between 3 tooltip styles
- Compact (Default) | Vanilla (Old) | Integrated
- Shift clicking a Backpack while holding a block item places that block
- Fullness Bar on equipped Backpack items will turn Green to Orange on their last stack of space
- Inserting items in a placed Backpack Menu will place that item where you clicked instead of the top of the menu
- Added
/beansmod gamerule lockBackpackNoKey
. Requires holding Action Key to allow other player to access your equipped backpack - Changing Pots & Cauldrons
max_stacks
in the config to0
disables all backpack functionality - All network packages are defined in
:common
- Fixed Instant Place with a cauldron was placing a Backpack with the equipped cauldron's texture
- Equipped Backpacks have a new tooltip
- Made more compat
- Displays up to 34 unique items
- Placed Backpack Menus may now have 5 rows and display up to 70 different stacks
- Backpacks that cannot be equipped now always display an explanation
- Backpacks displayed on the player's back no longer clips with the chestplate
- Added Compatibility with Elytra Slot
- Solved many grave mods deleting Back Inventory on death
- Fixed Trim Registry throwing errors on startup
- Fixed Creative Mode Back Slot not updating to the server causing de-sync
- Added Config (Mod Menu & Cloth Config required for Fabric) (more info)
- Adjustable Max Stacks for backpacks
- Pressing the hotkey may place an equipped backpack with no right click
- Set the defaulted value of all gamerules
- Adjust the Help Menu visibility
/beansmod config
has been renamed to/beansmod gamerule
- The gamerule
lockEnderWhenLoggedOff
has been renamed tolockEnderOffline
- Added new gamerules (more info)
lockBackpackOffline
lockBackpackNotOwner
keepBackSlot
- Backpack Help menu now has a button to hide the menu until a new tab is discovered
- Added Cancellable Events for both Fabric & Forge modders when the BackSlot tries to drop its contents on death
- New Backpack Menu!
- Number of slots now update depending on the number of items stored
- Slots now have a transparent background to see where to insert items
- The rendered backpack has more subtle and sharp movements
- Added colors to the Backpack Help tabs
- The equipped cauldron tooltip now uses bucket and bottle emojis instead of
x
&+
- Fixed many cases of Ender Backpack de-sync
- Fixed Backpack being dropped as an item on death in servers with trinkets installed
- Fixed Back Slot updating multiple times each equip
- All Backpack items now have persistent tooltips unique to their traits
- Cauldrons & Pots now visually show their contents in their tooltips
- Added a Backpack Help button onto inventory screen
- Clicking it opens pages with how-tos for each major milestone of the mod
- Each tab unlocks when they become relevant in progression (4 total)
- Replaces the help tooltip on equipped backpacks.
- Fixed Fabric crashing when rendering fluid in cauldrons
- Fixed JEI tooltips not loading properly
- Added Back Slot into creative inventory
- Added
/beansmod give
for metal backpacks with abackpack_id
(more info) - Added amethyst button to yellow Leather & Winged Backpack items
- Rewrote backpack renderer
- Tweaked Leather Backpack texture
- Added Trims for Alex's Caves & Blue Skies (Adding Modded Trims)
- Fixed manually equipping backpacks in the inventory can cause previous back inventory to appear as ghost items
- Fixed Backpacks assuming they're hung if they're close to a block when loaded.
- Fixed picked up items dissapearing with a full inventory after placing backpack using hotkey
- Completely rewrote backpack traits (how-to add custom backpacks)
- Backpack Items now all have hard coded default traits w/o a
backpack_id
- Backpack traits identifier
display{key:_}
has now been renamed tobackpack_id
- Removed dyable backpacks through data
- Adding backpacks through data has been streamlined for more functionality in the future
- Added
fire_resistant
boolean to backpack traits - Removed
upgraded_backpack
- Replaced existing Netherite Backpacks with cosmetic Null Backpacks
- Winged backpacks now keep their enchantments when placed
- Updated Winged Backpack recipe to carry over elytra enchantments
- Pots can now store items with nbt
- Hotkey + RClick on Pots and Cauldrons to equip them
- You can now pick up fluid out of placed cauldrons
- Fixed crash when rendering any tooltip with Ender Backpack equipped
With the changes to Backpack traits it is now impossible to change the sizes/disable default backpacks. This will be re-introduced in an update soon to add config.
- Added wearable cauldrons
- Holds 24 buckets
- Fluids can be placed/picked-up with hotkey
- Hotkey + clicking on containers in inventory quickly empties
- You can carry water, lava, powdered snow, honey, and modded fluids
- Changes to Decorated Pot
- Limited to 128 stacks
- Never deletes items if over 108 stacks on death
- Drops as item on death. Can only be picked up if back slot is empty
- Only hold items w/o nbt or damage
- Enchanted Books act like they stack to 16 in backpacks
- Backpacks act like they stack to 16 in backpacks (you can carry 16 in leather backpacks)
- Added many new Advancements for new features
- Re-organized Advancements so many will be lost
- Fixed "Time for an Upgrade" Advancement again
- Added many methods for compatibility with other developers. (You're In Grave Danger)
- That's it for now.
- With various grave mods installed the backpack will try not to place in the grave on death.
- Fixed elytra item not dropping on death
- Fixed items being deleted while equipping a non-ender backpack
- Fixed crash with some mods in the Key-Bind Menu (all my homies hate @Redirect)
- Backpacks now work with comparators. (including Ender Backpacks)
- Added final Ender & Winged Backpack texture
- Named Backpacks now display their name & Ender Backpacks display their owner.
- With F3, you can see all placed Ender Backpacks' coordinates.
- Added
/beansmod
command. (more info) - Added
config
subcommand.- Added an option to unbind worn Ender Backpacks on death.
- Added an option to lock a player's Ender Backpack while they're offline.
- Added Various
enderdata
commands to help with managing Ender Backpacks entries. - Elytra Wings are now visible when Winged Backpacks are hung.
- Added
remove_backpack_keys
to Data-Pack'smodify
(more info) - Added Backpack Items to the Recipe Book.
- Fixed multiple workarounds to
disables_back_slot
&disable_chestplate
- Restructured Backpack Entities classes so they are more modular.
- Restructured Ender Data saving and loading.
- Added Winged Backpacks
- Added Ender Backpacks (more info)
- Added
elytra_items
in Data-Pack'smodify
folder (more info) - Renamed New Duds Advancement description to Equip a Dyed Backpack
- Many changes to Backpack Entities and Inventories
- Fixed Backpacks disappearing on Death
- Added Decorated Pot to Creative Tab
- Added Translation options for Backpack items
- Cleaned up lang file.
- Pick Block in survival now checks the Backpack Inventory
- Fixed Pot was not rendering on players in Forge.
- Forge version crashed on launch due to mixin errors
- Added Hopper Functionality (visual de-sync issues)
- Item lists in the modify folder of a datapack now supports !namespace:id to override any previous items and remove them.
- Added new advancement gained by moving items with a hopper.
- Using a backpack item on a cauldron clears it's color.
- Simplified the process to add backpack trims. (How To Add Trims)
- Placing backpacks now have a little shake animation.
- Fixed unequipping backpacks did not update the renderer.
- Fixed curios/trinkets input slot appearing in creative menu.
- Server crashed while trying to access client only classes.
- New Pot textures and Updated Model to look closer to a placed pot.
- Elytra functionality only is disabled while Elytra Slot is installed. (Elytra support is always enabled)
- Crash when right-clicking an empty slot of a placed backpack (thanks Emery319)
- Items declared in
disables_back_slot
now check all armor, Curio, and Trinket slots and cannot be equipped while a backpack is worn, likewise, a backpack cannot be equipped if an item declared is already equipped. - If
disables_back_slot
stops an item from being equipped, the backpack hit sound plays. - Create mod's Copper and Netherite Backtanks are included in
disables_back_slot
- Forge 1.20.1 was not building correctly.
- Pots use a different sound for inserting/taking items.
- Backpacks Feature Renderers are registered through mod loader's events, instead of Mixins.
- Fixed Dupe from shift clicking items from result slot.
- Hovering over an empty and equipped Decorated Pot shows a help tooltip.
- Added Backpack Action to a new category in the Keybind Menu
- Insert sounds and logic now work consistently.
- Iron and Gold backpacks have had their max stacks reduced to 7 and Netherite reduced to 9
- Removed Elytra functionality when Curios/Trinkets are installed (Check out Elytra Slot)
- Fixed crash when clicking a specific slot with curios installed.
- Increased # of stacked dropped when dying with a Pot to 108 Stacks. (4 Chests)
- Fixed server crash when renaming backpack in an anvil.
- Backpacks will now remember their name when placed, then picked up.
- Replaced unsafe Mixin Redirect responsible for baking item models with mod events.
- Binding the Backpack's Action Key to a key on the mouse now instantly places it.
- You can now blacklist items from the Backpack's Inventory using datapacks
- backpacks will now not drop on death if Keep Inventory is set to true.
- Dying with Curios/Trinkets installed would cause backpack to drop as an entity and item.
- The backpack's back slot is now designated as the players first back slot when using Curios/Trinkets
Thanks to avilonlegends for the keybind suggestions
- Re-binding the Backpack's action key now works if bound to sneak/shift
- Added compatibility with jjblock21's Better Smithing Table
- Fixed Crash when trinkets had added more slots.
- Minor bugfixes
- Fixed Bug where Back Slot was not appearing in the Inventory
- Removed Insert Slot without curios installed.
- You can now place items on top of the equipped backpack to place/take items from its inventory. (Use Hotkey + Click in place of Shift Click)
- Decorated Pots now show their inventory in its tooltip while equipped
- Re-wrote how backpack data is stored on the player
- Simplified the inventory screen controls
- Clicking an equipped backpack in the inventory screen will insert/take items to/from the backpack.
- Punching the backpack if you are not the player that placed it takes one extra hit
- Added compatibility with curios (un-tested with other mods)
- Fixed backpacks dumping error into log if there was no trim
- Fixed when moving items into pots, it would say no key was found in log
- Added Unique Sounds for the 3 Levels of Backpacks
- Added Recipes to REI & JEI
- Fixed bug causing no REI/JEI crafting table recipes to load
- Fixed crash when picking up an Item with a full inventory and no backpack equipped
- Backpacks now reference their traits from a global list. Updating data pack will update backpacks correctly
- Shulker Boxes can no longer be stored in Backpacks
- Added advancement screen (and it looks super cool too)
- Fixed looping class when quick moving item from Back Slot inventory using the backpack action key
- Fixed crash when item was picked up
- Added Backpacks to creative tab
- Added Items to REI/JEI (No recipes)
- Backpacks are now visible in Smithing Screen
- Leather Backpacks are now more colorful and look closer to their item's color
- Added the option to rebind the key to place Backpacks and move items.
- Hovering over the rebind option explains how it works.
- Empty and equipped Backpacks now display text on how to move items in inventory instead of an empty backpack inventory.
- Added a bar on equipped backpacks that display how full its inventory is.
Big thanks to ApionXD for his suggestions. :)
- Changing dimensions would de-sync the display inventory of an equipped Backpack
- Returning from the end would delete everything in the Backpack and the Backpack itself (very sorry)
- Forge players couldn't open Backpacks worn on other players
- You could take off your Backpack with items still inside
- Complete overhaul of the code
- Added support to create custom backpacks through data and resource packs.
- Backpacks placed on snow, slabs, or any other block with unique hitboxes now are placed correctly.
- Retextured placed Gold Backpacks.
- Overhauled how storage on Players and placed Backpacks are handled