promotional bannermobile promotional banner

Lilium Backpacks

Lilium Backpacks is a vanilla-friendly, standalone addon that introduces fully functional, dyeable, upgradeable, and placeable 3D backpacks to dynamically expand your inventory in Minecraft Bedrock Edition.
Back to Files

Lilium Backpacks - V1.2.0.mcaddon

File nameLilium Backpacks - V1.2.0.mcaddon
Uploader
LiliumStudioLiliumStudio
Uploaded
Aug 1, 2026
Downloads
5.4K
Size
386.5 KB
File ID
8551601
Type
R
Release
Supported game versions
  • 26.30
  • 26.20

What's new

Changelog - Lilium Backpacks

[1.2.0]

Added

  • Vector 3D Utility Framework Module: Added api/Vector.js providing full 3D vector operations (vector addition, subtraction, scalar multiplication, 3D distance, 2D XZ distance, and unit normalization).
  • ItemStack Serialization Helper: Added api/ItemSerializer.js (serializeItem & parseItem) to convert complex ItemStack instances with lore, nameTags, durability, and dynamic properties to/from plain JSON format.
  • Container & Durability Utilities: Added api/ContainerUtils.js for container slot validation and gamemode-aware item durability consumption.
  • Dedicated Security Guards Domain Module: Created modules/SecurityGuards.js to isolate ownership access checks (preventing non-owners from opening backpacks) and entity cleanup tasks.

Changed

  • Unified Main Entry Point Architecture: Refactored main.js to serve as the single primary entry point, cleanly registering runtime entities and delegating logic to domain modules.
  • Modular Domain Architecture: Reorganized all business logic into isolated, single-responsibility domain modules inside BP/scripts/modules/.
  • Block Creative Category Hidden: Updated BP/blocks/backpack_block.json menu category to "category": "none", hiding the technical backpack block from the creative menu.

Optimized

  • Bounded Spatial Queries: Replaced unbounded dimension-wide entity searches (dimension.getEntities({ type })) with localized spatial queries (location + maxDistance), improving performance in worlds with multiple active backpacks.
  • Dynamic Property Proxy & Event Loop: Streamlined EntityRuntime.js proxy interception for array mutations (push, splice, sort) and event loop execution.

Fixed

  • Placed Backpack Entity Spawning & Interactivity: Fixed bounding box area (from/to) in saveBackpackStructure so structureManager encloses the entity properly. Placed backpacks now correctly spawn their interactable lb:backpack_entity in block mode (lb:in_block = true) upon placement and allow opening their inventory.
  • Backpack Item Drop on Block Break: Fixed onBreak custom component handling in modules/PlacementSystem.js and modules/BackpackEntity.js to reliably spawn the dropped backpack ItemStack with preserved backpack_id, owner, and lore when destroyed.
  • ScriptEvent Argument Parsing Bug: Fixed critical bug in api/EntityRuntime.js (line 258) inside system.afterEvents.scriptEventReceive where numerical arguments were incorrectly reassigned to msg instead of appended to the args array.

This mod has no additional files