Sueta

BackPack Plugin

1.3

It's a Minecraft Plugin that adds Backpacks to the game. It works with all 1.21 versions, Tested on 1.21.5 and 1.21.8. Fully customizable. You can get them by Crafting, or with a command.

·Plugin

BackPack Plugin
Overview
The Backpack plugin gives players there own personal portable storage in Minecraft. U can open it just like a chest and it saves ur stuff even when the server restarts. Every backpack is unique and linked to the owner. U cant put a backpack inside another backpack to prevent exploits. Everything is super customizable.
Also has comands to give, view and manage the backpacks and full config support.
Features:

  • Backpack Items

  • Players can get them via comand (/backpack give) or craft them.

  • Every backpack is linked to a UUID and player name.

  • The lore on the item shows: Owner name, Backpack number, How full it is (used slots / total slots), and "Right click to open".

  • Comands
    /backpack give [rows] [item]
    Gives a backpack to someone.

    Optional:
    rows: size of it (like 2x9, 3x9)
    item: what item the backpack should be (e.g. CHEST, SHULKER_BOX)
    /backpack seeinside
    Lets u look into the backpack of another player using his backpack number.

/backpack reload or /bp reload
Reloads the config (items, recipes, lang stuff) without restarting the whole server.

  • Crafting
  • Has a default recipe but u can completely change it in the config (shape, materials etc).
  • U can set it to craft a real working backpack or just a dummy item.
  • Inventory Stuff
  • When u open it, u can move everything except the backpack u are currently looking inside.
  • U can move other backpacks around but u cant put them inside the open one.
  • The item lore updates automaticly when u put stuff in or take it out.
  • Saving / Persistence
  • All backpacks get saved to backpacks.yml (Contents, Size, Owner, Display name).
  • Loads automaticly when the plugin starts.
  • Config Options
  • Change the item for the backpack
  • Set default and max rows (size limits)
  • Full crafting recipe config
  • Language support (English & German msgs)
  • The config has english comments so u know what everything does.
  • Compatibility
  • Works with Paper/Spigot 1.21+
  • Needs Java 17 or newer
  • Works across servers and offline players cause it uses UUIDs.
  • Dev Notes
  • Uses PersistentDataContainer to link the items to the inventorys.
  • Has a custom BackpackInventoryHolder so the plugin knows which inv belongs to which item.
  • Made it so it prevents server errors from nesting backpacks or loosing items.
    Coded by FrediFret.

Similar projects

Plugin →