Strapped 0.2.0-beta (26.1)
Curse Maven Snippet
What's new
Strapped 0.2.0-beta (Minecraft 26.1 – 26.1.2, Fabric)
Unofficial, renamed fork of Accessories by Wisp Forest. Not made, endorsed or supported by Wisp Forest: please report problems with Strapped here, not to the Accessories project.
Everything since 0.1.0-beta: Strapped's own gear (a backpack with a Gravestone enchantment, a quiver, Tool Bundles and hip gear with a compass and clock HUD), a new inventory with tabs and drawers, armour visibility, new slots, the whole code base cleaned up (around forty old bugs fixed, faster), and nothing that worlds, datapacks or resource packs from 0.1.0-beta rely on has changed. Everything the player sees now says Gear instead of "Accessories".
New: inventory tabs and drawers
- Small tabs beside the inventory open drawers that slide out beside it: Gear (all your gear slots, grouped by body part), Backpack, Tool Bundle and Quiver (each while worn). The selected tab is bigger and green; click it again to close the drawer. The inventory and the open drawer are centred together on the screen.
- The Backpack, Tool Bundle and Quiver drawers also work in chests and other container screens (barrels, shulker boxes, crafting table, furnaces, anvil, smithing table, other mods' screens, and The Cards Are Dealt's game tables), with working slots. Each kind of screen remembers which drawer you had open. Where a screen is too big for a drawer beside it, its tab says so instead of overlapping.
- Button Position setting: the tabs on the left (default), on the right, or in a row along the top, with drawers opening left or right.
- Keys: I opens/closes the Gear drawer, B the backpack drawer (also straight from the game).
- In creative, the Gear button and the I/B keys open the Gear screen with its tabs and drawers; a button in the player preview goes back to the creative inventory.
- The recipe book slides in and out like the drawers, and sits beside the inventory whenever it fits (Minecraft lays it over the inventory on narrower windows). Opening it closes a drawer; closing it brings the drawer back.
- A slim Gear drawer with its own settings screen; the original Accessories layout stays available with the Classic style option. All tab, drawer and HUD textures can be replaced by resource packs.
New: gear
- Backpack: 18 slots, dyeable in any colour, worn in its own backpack slot on your back (look based on Beans
Backpacks, CC0).
- Armour trims use Beans Backpacks' own design for each trim pattern, in the trim material's colour, buckle included.
- Crouch + right-click a block to set it down (on the ground or on a wall), also with an empty hand; crouch + right-click it with an empty hand to put it back on. A placed backpack opens like a chest, keeps its contents when broken, works with hoppers and pipes, and can be waterlogged. Servers can turn placing off.
- Three upgrade slots. Upgrade slots: an Ender Chest in one opens your ender chest (right-click it, or an optional key).
- Station upgrades: a Crafting Table, Smithing Table, Anvil, Cartography Table, Stonecutter, Loom or Grindstone in an upgrade slot opens as that station wherever you are (right-click it in the slot, or the optional key "Open Station (Backpack)": it opens the first one, pressed again the next). Closing goes back to your inventory with the backpack drawer. The anvil wears down exactly like a placed one (chipped, damaged, then it breaks; with The Cards Are Dealt its lower chance). Servers can turn each station off.
- Storage Upgrade Template (rare, only from Ominous Trial Vaults; servers set the chance or turn it off): in an upgrade slot the backpack holds 27 stacks instead of 18. The drawer scrolls, the backpack's chest window gets a third row. Taking it out moves what was in the extra slots into free slots, then your inventory (nothing is lost).
- While worn, picked-up items it already holds go straight into it (and everything goes in when your inventory is full). Backpacks can't go into backpacks; shulker boxes and bundles can.
- Crafting from the backpack: the recipe book, JEI and REI count a worn backpack's items and take from it after your inventory (crafting table, furnaces and more).
- Bows and crossbows also take arrows (and rockets) from the worn backpack, after your hands, quiver and inventory.
- Crafted backpacks show who made them ("OC: name"). Its own sounds for equipping, opening and placing.
- The smithing table's preview stand wears a backpack, with its dye and trim.
- Gravestone (a backpack enchantment, rare like Mending: the level-30 option of an enchanting table, or a librarian's
book for 32-64 emeralds): when you die wearing it on your back, your
backpack is set down as a grave holding everything you carried, each item in its slot, and your experience.
- It goes where you died, or the nearest sensible safe spot (the first open floor above if you were buried, the shore after a lava death, your last safe spot or the nearest platform after falling into the void).
- Locked to you for 15 minutes (5 after a death by another player, whose experience drops as usual), with a countdown above it; after that anyone can take it. Right-click puts everything back where it was, armour and gear included; breaking it drops everything.
- A worn compass shows where your grave is. Locked graves can't be blown up; lava destroys any placed backpack and spills its contents. Servers can change the lock times or turn graves off.
- Quiver (worn in the new quiver slot, dyeable): holds up to 128 regular or spectral arrows, other ammunition up to 64 per stack. Bows and crossbows draw from it (crossbows also firework rockets), arrows you pick up go back into it, and it hangs on your back or on the side of your backpack. Right-click opens it, crouch + right-click puts it on. With The Cards Are Dealt installed it also holds its special arrows, dice and nuggets.
- Tool Bundle (worn at either hip, dyeable): holds tools (other mods' too), compasses and clocks. Right-click
opens it, crouch + right-click puts it on.
- In the inventory it works like a bundle: put a tool on it to put it in, and right-click it to take one out. Scroll over it to pick a tool, lit in its tooltip; right-click then takes out that one (without a pick, the last one).
- Tool Swap row: hold Left Alt (rebindable), scroll, and let go or left-click to swap a tool into your hand; left-click an empty slot to put the held tool away. With a bow or crossbow, choose which ammunition the quiver hands out first.
- Two waist slots, Left Hip and Right Hip: each takes a Tool Bundle or a bundle (one bundle at a time), a lantern
(glowing on your hip, hanging from your belt by its own chain), a compass or a clock, worn on that side.
- A worn compass shows a compass bar at the top of the screen (lodestone and recovery compasses mark their target); a worn clock shows the time under it, 24-hour or 12-hour, with or without seconds. A compass or clock in the worn Tool Bundle counts too. Works with Jade (its box goes between the two). "Toggle Gear HUD" key (unbound by default).
- With LambDynamicLights, or a shader pack with handheld lights on Iris, a worn lantern lights up the area around you.
- Unicorn horn: an end rod in the hat slot is worn as a horn.
- Armour visibility: an eye button on the character preview hides your armour, and its slider sets the armour's
opacity (0-100 %); everyone sees the same. Servers can force armour visible in combat or after damage, or disable
hiding/opacity (
config/strapped-server.json5). - Servers can turn each piece of gear on or off (
gear.*inconfig/strapped-server.json5: backpack, quiver, Tool Bundle, hip items and HUD, unicorn horn, armour visibility): turned-off gear can't be crafted, put on, used or found in the creative tab; pieces already worn stay until taken off. Players can hide the backpack, quiver and Tool Bundle tabs (Gear Tabs settings). - The Strapped creative tab shows all of it. Slots, render positions and recipes are data-driven like the rest of Strapped (see the datapack documentation).
Slots
- Default slots: hat, backpack, quiver and two waist slots (Left Hip, Right Hip). Every other slot (cape, back,
charm, rings, ...) is off
until something turns it on: the glider and totem options, the Trinkets Updated bridge, or another mod's or a
datapack's slot file (
"amount", or the new"minimum_amount"). Items in a slot that is now off are given back. - The backpack has its own slot; the back slot is Accessories' back slot again (its own icon), off unless a mod, a datapack or the glider option turns it on (gliders fit cape and back). A backpack worn in the back slot moves into the backpack slot when the world loads.
- The belt slot is now called waist. Existing worlds keep their items: a saved belt slot loads as waist. Datapacks
and mods that still say
beltkeep working (slot, group and entity files, item defaults, attribute slot names, config modifiers, the Trinkets mapping, commands, and the item tags#strapped:belt/#accessories:belt). - New slot icons: backpack, waist and quiver.
- Trinkets Updated: its
chest/quiverandlegs/waistslots map onto Strapped's quiver and waist slots,chest/backandchest/backpackonto the back slot.
Fixes
- Accessories inside other accessories (nests, e.g. bundles) were never found: equip checks, "is equipped" lookups and
canEquipFromUseignored the inner items or failed; bundle rendering asked about the wrong item. - Items in a slot that a datapack removed were deleted on load; they are now dropped or given back. Loading could also duplicate one stack when a slot got smaller.
- Two changes to an item worn in a gear slot in the same tick (for example by another mod) could leave the client with a stale item, and the server's unequip and attribute handling got the wrong old item.
- Hiding a slot (render toggle) beyond the first few was forgotten after a relog or resize.
- The equip/unequip advancement trigger matched exactly the slots, indices and groups it should ignore, and
"cosmetic": falsenever matched. - Equipping by use or from a dispenser cut a stack down to the limit of the item it replaced instead of its own.
- Shift-clicking an accessory out of its slot so that it merged into an existing inventory stack skipped the item's unequip handling; shift-clicking in the Gear screen without a target entity could crash.
- Commands: options like
enable/disablefailed when a function or/executeran the same command again;components effect addwithout the particle option crashed;item modifywithout a modifier crashed (it now reports an incomplete command); some "no such modifier" messages had their values in the wrong order; clearing slot modifiers with two or more modifiers crashed. - The
strapped:allslot validator rejected every item; cosmetic slots ignored the slot's data-driven validators;isAnotherEquippedanswered wrongly with exactly two matching items. - The data-driven
modelrendering function was never drawn; data component predicates never matched; holder-set validators always passed (all tooltip entries green). Inventory.contains(ItemStack)didn't see equipped accessories.- Two identical data files in different packs made the reload fail.
- The enderman/creaking "disguise" check used a cache that rarely hit and could be up to a second stale.
- The group filter in the Gear screen used the server's slot list on the client.
- The crafting-grid toggle button came back when the grid was set to always show; hovering a cosmetic toggle in the scrolled slot list also hovered the slot under it.
- The JEI plugin never loaded on Fabric (wrong entrypoint name).
- Smaller fixes in the UI layer, tooltip building and stack settings.
Performance
- Measured on 26.1 with 150 armour stands wearing accessories, against 0.1.0-beta (two alternating runs each): the server tick takes about 11% less time (1.50-1.71 ms instead of 1.70-1.92 ms) and Strapped's own per-tick work about 30% less (0.13 ms instead of 0.18 ms). Nothing of a world stays in memory after leaving it.
- Backpacks are drawn with only the faces their textures use (pixel-for-pixel the same picture, measurably faster with many backpacks in view).
- Empty slots are no longer re-checked every tick; slot types are looked up from a table instead of parsing the slot name on every lookup; fewer objects per frame in the UI and the accessory renderers; fewer copies of item stacks in network packets.
Under the hood
- Strapped is Fabric-only: the loader abstraction layer is gone and Fabric API is called directly.
- The command framework inherited from Accessories (~1,900 lines) was replaced by plain Minecraft (Brigadier) command code; command syntax and permissions are unchanged.
- Removed: dead code (the server-side config override sync, a disabled lookup cache, unused mixins, shaders, textures and translations).
- English only for now: the translations inherited from Accessories were removed, as they no longer covered most texts.
- Fabric API is declared with a real minimum version instead of "any".
- Jar size: 2.15 MB (0.1.0-beta) -> 2.47 MB, with all the new gear, textures and screens.
For mod developers
- The deprecated Accessories API was removed (old Accessories add-ons can't load with Strapped anyway, as the mod
id differs):
AccessoriesAPI, the v1CanEquipCallback/CanUnequipCallback/AllowEntityModificationCallback(use theevents.v2ones),EndermanMasked(useIsGazeDisguised),SlotBasedPredicate/EntityBasedPredicate/SlotPredicateRegistry(use slot validators), the booleanAccessory#canEquip/canUnequip/canEquipFromUse(stack),getModifiersand the context-less tooltip hooks (use the buffer-based checks,getDynamicModifiersand the tooltip hooks with context), the staticAccessoryNesthelpers, the Item-basedAccessoriesRendererRegistrymethods (register by id and bind the item), and other members marked deprecated. The rest of the public API is unchanged. - New constants:
AccessoriesBaseData.WAIST_SLOT/HIP_SLOT/QUIVER_SLOT,AccessoriesTags.WAIST_TAG/QUIVER_TAG;SlotType#alwaysShown(); slot files'"minimum_amount". - Data and texture formats (slots, item tags such as
strapped:backpack_upgradesandstrapped:backpack_refuses, backpack trim pictures<namespace>:trims/backpacks/<pattern>, GUI and HUD sprites) are listed in the datapack documentation.
Compatibility
- Requires Minecraft 26.1 – 26.1.2 and Fabric API 0.155.2 or newer. Optional: Trinkets Updated (tested with 4.0.1+26.1), Mod Menu, REI, JEI, Jade, The Cards Are Dealt.
- InvMove (and other mods that hide, blur or change the background behind inventories): the Gear screen and the classic Gear screen use Minecraft's own background, so they look like the inventory there too (with InvMove they no longer darken the world while the inventory doesn't).
- REI: on the Gear screen REI's search bar is as wide as the inventory again (it stretched across the Gear drawer too).
- Inventory Profiles Next: the Gear screen gets the same IPN options as the survival inventory: the sort buttons over the inventory, the continuous-crafting checkbox by the crafting arrow and the profiles bar right under the inventory (it only had a chest's sort buttons in its top right, which would have sorted the Gear slots).
- Can't be installed together with Accessories.
- Correction to the 0.1.0-beta notes: there are no config settings a server enforces on clients; what a server decides (glider/totem/banner slots and so on) comes from datapacks.
Credits and licence
Accessories by Wisp Forest (Blodhgarm, chyzman, Dr.Zeal and contributors), MIT; owo-lib by glisco, MIT (parts included); endec by Wisp Forest, MIT (bundled); roggy666 (26.1 port); Beans Backpacks (backpack model and trim designs), CC0; Trinkets Updated by Emi, C4 and Patbox (MIT). Gear by kirbdoublee: MIT, like the rest of Strapped.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include