Every custom weapon, tool, or collectible built with SX Item Plugin starts inside an item definition config file where you declare its base material. Understanding how the ID field resolves material names, and how duplicate case keys behave, prevents broken or unrecognized items when updating configs across older and newer servers.
Setting the ID Field Without Key Conflicts
Inside an item's config file, use the ID key to choose its base material:
- Case variants
Idandidalso work if older item files use them. - If an item file accidentally contains more than one variant at the same time (such as both
IDandid),IDalways wins and overrides the other line.
A frequent editing mistake when tweaking downloaded or legacy item templates is editing a lowercase id line while leaving an uppercase ID line untouched higher up, causing the item to keep its old material until you remove the duplicate key.
How Material Matching Resolves Names and Legacy IDs
When SX Item Plugin reads your ID value, it follows a clear fallback path so both legacy and modern configs keep working:
1. First, it checks its built-in XMaterial mapping, which even translates old numeric IDs into matching materials cleanly.
2. If XMaterial has no match, it falls back directly to your server's Bukkit Material list.
3. On hybrid servers such as Mohist, it also accepts custom materials added through KubeJS, letting modded items sit right alongside vanilla-based SX items.
