-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration EN
hp-1e edited this page Jul 12, 2026
·
1 revision
Rules are stored in config/item_nameplate_rules.json. The root object contains an entries array; every entry is one label rule.
{
"entries": [
{
"desc": "Example rule",
"target": {
"type": "item",
"value": "minecraft:diamond"
},
"text_source": {
"type": "item_name"
},
"priority": 10
}
]
}Only one matching rule is used for an item.
- Higher
prioritywins. - For equal priority, the earlier JSON entry wins.
| Field | Required | Meaning |
|---|---|---|
desc |
No | Documentation only. |
target |
Yes | Match target. See Rule Reference. |
text_source |
Yes | Text source. See Rule Reference. |
remove_text |
No | Strings removed from the result in order. |
replace |
No | Map of source text to replacement text. |
priority |
No | Rule priority; defaults to 0. |
remove_text runs before rule-level replace. If processing yields an empty label, the original item name is used.