Skip to content
hhhhhffdPublic

About

Mark item identities with a private translucent background.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Item Marks


3 parts in one place: item identity, local colors, inventory overlays.

Minecraft 1.21.11 Fabric Loader 0.18.4+ Java 21
Latest release Downloads License

Download · Architecture · Build

Item Marks preview

Overview

Item Marks is a client-side Minecraft mod that puts a translucent color behind an item in the inventory and hotbar. Marks follow item identity rather than a slot and are saved locally without modifying the item or sending inventory actions.

Technical stack

Area Technology
Core Minecraft Java 1.21.11, Fabric Loader 0.18.4+, Java 21+
Build Fabric Loom 1.13.6, Gradle wrapper 9.2.1, official Mojang mappings
Optional Inventory HUD+ Fabric 3.4.29 adapter
Data Local JSON configuration

Architecture

flowchart LR
    U[Player inventory slot] --> C[ContainerScreenMixin]
    C --> P[ItemPicker]
    C --> I[MarkIdentity]
    P --> S[MarkStore]
    I --> S
    S --> F[config/itemmarks.json]
    H[Inventory and hotbar mixins] --> R[MarkRender]
    R --> I
    R --> S
    A[Optional Inventory HUD+ adapter] --> R
Loading
  • MarkIdentity uses a scoped UUID when available; otherwise it hashes the item registry ID and normalized components, so a mark is not tied to a slot.
  • MarkStore persists colors locally and prevents adding new entries once 5,000 are stored; ItemPicker exposes save and clear actions without changing inventory contents.
  • Rendering mixins call MarkRender for inventory and hotbar backgrounds. A separate mixin plugin enables the Inventory HUD+ adapter only for the exact supported version.

Project structure

.
├── build.gradle          # Fabric Loom build
├── gradle/               # Gradle wrapper configuration
├── src/
│   ├── client/           # Identity, picker, rendering and adapter
│   └── main/             # Mod metadata and mixins configuration
├── tests/                # Identity math checks
└── docs/media/           # Preview image

Setup and usage

  1. Install Minecraft Java 1.21.11 with Fabric Loader 0.18.4 or newer and Java 21 or newer.
  2. Download the JAR from releases and put it in the client mods folder. Fabric API and a server-side mod are not required.
  3. Hover an item in a slot owned by your player and press Alt + middle click. Pick a color using the saturation/value field and hue slider, or enter a six-digit HEX code; adjust transparency with Alpha. Done saves, Clear removes only that identity, and Cancel or Esc closes without further changes.

The background follows the item between inventory and hotbar. It does not mark a slot, write to the item, change its texture, or send inventory actions.

Identity and configuration

Marks are local in config/itemmarks.json. A valid UUID in server-supplied minecraft:custom_data.uuid or minecraft:custom_data.ExtraAttributes.uuid is used when available, scoped to the server or singleplayer save. Otherwise, the registry ID and normalized item components are hashed, ignoring stack quantity, damage, repair cost, and slot.

Different names, enchantments, and potions are distinct. Identical stacks without a unique ID intentionally share one mark, even when split or combined; changing identifying metadata on an item without a UUID can make it a new match.

Note

The optional Inventory HUD+ Fabric 3.4.29 adapter draws the same backgrounds behind its inventory icons. That mod is not required; other Inventory HUD+ releases use their usual rendering without this adapter.

Build

Use Java 21:

./gradlew build

On Windows use gradlew.bat build.

Links

License

MIT.

About

Mark item identities with a private translucent background.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages