Accessories

Accessories RPG - ring, necklace, belt slots with custom UI and stat modifiers.

File Details

FineCraft-Accessories-0.1.4.jar

  • R
  • Apr 25, 2026
  • 418.98 KB
  • 180
  • Early Access

File Name

FineCraft-Accessories-0.1.4.jar

Supported Versions

  • Early Access

[0.1.4] - 2026-04-25

Added

  • CharacterSheetPageV2: new accessory management UI.
    • Left panel (flex): 6 accessory slots with icons, empty/filled overlays, and per-type colour accents.
    • Centre panel (490px fixed): inventory grid (27 storage slots + 9 hotbar) using ItemSlotButton with native item tooltip on hover.
    • Right panel (flex): per-slot bonus summary with coloured separators.
    • Left-click an inventory item → equips into the primary slot (Ring 1, Earring 1…).
    • Right-click → equips into the secondary slot (Ring 2, Earring 2…).
    • Click an equipped slot → unequips (with full-inventory guard).
  • AccessoryService.equipFromInventory(): equips an item directly from an ItemContainer (storage or hotbar).
  • UnequipResult enum: typed result for the unequip operation (SUCCESS, SLOT_EMPTY, INVENTORY_FULL).
  • AccessoryAssetExporter: exports public interaction assets (RootInteractions and Interactions) from the plugin JAR to saves/<save>/mods/ at startup (setup()). This places them in the global asset namespace, allowing third-party add-on ZIPs to reference Root_CA_Equip_Accessory_* interactions without bundling copies.
    • Export is skipped on subsequent launches if the version sentinel .fc-accessories-version already matches the current plugin version.
    • On re-export (version bump), a SHA-256 hash manifest (.fc-accessories-hashes) ensures only files changed by the plugin are overwritten, preserving any local customisations to unchanged assets.

Changed

  • The /accessory command (aliases /acc, /accessories) now opens CharacterSheetPageV2 instead of v1.
  • Empty slots in the left panel now display a tinted colour background (per-type accent) instead of the red UnknownItemIcon.

Removed

  • /accessoriesv2 command (experimental) removed; replaced by the main command.

Notes

  • Third-party add-on ZIPs must declare "Adkyn:FineCraft-Accessories" as a dependency. Due to the export mechanism, the add-on's accessory items will only be fully functional from the second server launch after initial installation (first launch triggers the export).