Skip to content

Custom Data

Name Value
ID minecraft:custom_data
Type Arbitrary Object
First introduced in 1.20.5 (21w09a)
Implementation Full Support

The minecraft:custom_data component can be used for commands to store custom data on items.

Note

This component should not be used for purposes where a mod must store data for its items. Do not do so. Instead, define your own components for custom mods. This component should only be used by data-packs, and command blocks.

Format

This data takes any arbitrary object and stores it without any effects on the game itself. The data can be used for commands such as /data.