Skip to content

Item Data Syntax

XYAT edited this page Oct 3, 2026 · 1 revision

English | 简体中文

Version-specific item data

Forge 1.20.1 retains item NBT, for example minecraft:diamond_sword{Damage:5}. NeoForge 1.21.1 uses native data components, for example minecraft:diamond_sword[damage=5]. Realm Control also accepts legacy item-NBT rules on NeoForge: its compatibility matcher upgrades the remaining data and preserves the old subset constraints, including partial enchantments. This compatibility applies to Realm Control's item-rule matcher, not to every addon or arbitrary configuration file.

Native component rules preserve explicit defaults and component-removal constraints; custom_data matches a required NBT subset, while other specified components compare their values. Old GunId identity rules ignore mutable gun data such as Ammo. World and entity saved data continue using their own NBT storage.

Clone this wiki locally