InfiniteBags | Backpack with Shop 1.5.1
Unlimited per-item storage with a built-in shop hook to sell straight from your bag.
1.5.0
Compatibility
Changes
The bag item now opens and fills with a click, keeps its own slot, and puts you back wherever you opened it from.
đą Opening and Filling the Bag With a Click
- Right-click the bag item on any inventory screen and the screen closes and the bag opens. Your own inventory, a chest, a furnace, anywhere your inventory is showing. Left-click still picks it up in movable mode
- Drop a stack onto the bag item to send it in. Left-click sends the whole stack, right-click sends one, exactly like placing into a normal slot. A full bag leaves the stack on your cursor with the usual full-bag line, and an open bag GUI updates its quantity on the spot
âŠī¸ Closing Puts You Back Where You Were
Right-click the bag item inside a chest, close the bag, and you are back in that chest. The same goes for double chests, barrels, shulker boxes, hoppers, furnaces, ender chests, chest minecarts and chest boats, and it survives a trip through the Settings menu. Opening the bag from your own inventory now simply closes on Esc, with no four-row copy of your inventory in the way.
Only real storage comes back. Other plugins' menus, crafting tables, anvils and the like close with the bag, because reopening a menu that has already closed is a well-known way to duplicate items.
đ The Bag Remembers Its Slot
Move the bag anywhere in your hotbar or inventory and that slot is saved. Joining, dying, /clear, or trying to drop it all bring it back to the same place, and dropping is now blocked at the click itself rather than bouncing the bag to the configured slot.
If something else is sitting in that slot when the bag returns, nothing is pushed out or dropped. Your item stays where it is, the bag takes a free slot for the moment, and it moves itself back as soon as its own slot is empty, checked each time you close your inventory. A completely full inventory waits the same way.
đ Dupe Pass
- The bag cannot go inside itself. Shift-clicking it into an open bag answers with a message, and any bag already stored inside another one is removed when its owner joins, with a single console line
- Reopened containers are looked up live, never restored from an old copy, so a chest broken while your bag was open does not come back
- Two more holes closed: a number key could swap the bag item into a chest, and
/clearwhile carrying the bag on the cursor handed out a second one
đ¨ Making the Item Your Own
The bag item no longer has to be a head. Use bag-item.material for any vanilla item, bag-item.custom-model-data for your own pack, or bag-item.itemsadder for an ItemsAdder id in namespace:id form. ItemsAdder is optional, and if it is missing or the id is unknown the item falls back to the material and logs one line. Name and lore sit on top of whichever you pick, and leaving the name empty keeps the ItemsAdder name.
đ
Players Can Opt Out/bag item off removes the item and remembers the choice, so joins, respawns and /clear stop handing it back. /bag item on returns it, but only into free space: the configured slot in locked mode, any free slot in movable mode, and a clear message if there is no room. /bag item on its own flips it.
Each behaviour has its own switch under bag-item, open-on-click, deposit-on-click, return-to-inventory and player-toggle, all on by default.
đĻ Install
Replace the old jar in plugins/ with InfiniteBags-1.5.0.jar and restart. The new bag-item.remember-slot key is written into your config.yml on boot and the database adds its own new column, so there is nothing to paste in by hand.
The bag item ships off. Everything in this update sits under bag-item.enabled: true.
đ Version Breakdown
| Version | Focus |
1.5.0 |
The bag returns you to the container you opened it from, keeps its own slot across joins and deaths, cannot be placed inside itself, and closes several duplication routes. |
1.4.0 |
Click to open and click to deposit on the bag item, a player opt-out through /bag item, and a custom material, model data or ItemsAdder id for the item. |
Read the documentation | Join the Discord
Enjoying the plugin? A â review goes a long way!
Dependencies
Statistics
Views
Purchases
Downloads
File size
Published
Updated
Info
Share & Earn
Share and earn part of the profits, an estimated €1.0 per product sale.