Home›Java›Mods›Cyn's CustomModelData
Cyn's CustomModelData
ModsJava

Cyn's CustomModelData

Java mod listed for Minecraft 1.21–26.x. Downloads from the MC Java Mods app on Android.

by carplane12 · on Modrinth

Set custom model data on the item in your hand, edit model data, attributes, enchants, damage and effects in a live GUI item editor, mass-apply rules from…

⬇ Download on Modrinth

Cyn's CustomModelData

A Spigot/Paper plugin for Minecraft 1.21.11 (Java 21+) that makes working with custom_model_data - the component resource packs use to swap item models - quick and painless. Set model data on the item in your hand, edit it (plus attributes, enchants, damage, potion effects and more) in a live GUI item editor, mass-apply model data from config rules, and bind model data to item display names so named items always get the right model.

Install

  1. Drop the jar into plugins/.
  2. Start the server (Paper 1.21.11 recommended). plugins/CustomModelData/config.yml is generated.
  3. Edit the config and run /cmddata reload.

GUI item editor

Hold an item and run /cmddata gui. Every change is applied to the item immediately, so the preview is exactly what you hold. The layout is consistent on every screen: back (top left), the item you are editing (top middle), close (top right), and the rest of the menu filled with the same buttons.

Main menu categories:

Button What it edits
Model Data custom_model_data ints and the float values
Name & Lore display name, lore lines, colour codes
Enchantments every enchantment that can apply to the item
Attributes & Stats attack damage, speed, health, armour, ...
Damage & Durability damage, max damage, unbreakable
Potion Effects custom potion effects (potion items)
Misc Settings stack size, rarity, glint, fire resistance, item model, tooltip flags

Plus revert all changes and undo (up to gui.undo-depth steps).

A centred number pad pops up whenever you need an exact numeric value; text values (name, lore, item model id) are typed in chat (cancel or clear supported).

Controls: left click add / +1 step, right click subtract, shift click big step, middle click open the number pad, Q drop to remove / clear.

Commands

Hand item:

Name based (permanent bindings, saved to names.yml):

Mass change from config:

Mass rule config

Simple form - mass.items:

mass:
  items:
    DIAMOND_SWORD: 1001          # by material
    minecraft:stone: 2000        # namespaced works too
    "Ruby Staff": 3000           # by the item's custom display name
    "@Light": 4001               # '@' forces name matching

Advanced form - mass.rules:

mass:
  rules:
    - item: LEATHER_HELMET       # required
      model-data: 5000           # required
      name: 'Ruby Cap'           # only match items with this custom name
      set-name: '&6Ruby Cap'     # give matched items this name
      data: 100                  # only match (and set) this damage value
      slots: [armor, storage]    # mainhand | offhand | armor | storage
      overwrite: false           # false = skip items that already have model data

Rules are applied in file order and the first matching rule wins for each stack. With settings.apply-on-join: true they run automatically for every player on join.

Permissions

Node Default Grants
cmddata.use everyone hand, name and GUI commands on yourself
cmddata.gui everyone open the item editor
cmddata.admin op mass rules, /cmddata give, /cmddata reload

Compatibility

Server side only. Tested on Paper 1.21.11, built against spigot-api 1.21.11-R0.1, requires Java 21+.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more