Overview
minecraft:record is an item component: it goes in the components object of a custom item. Turns the item into a music disc that plays a song when put into a jukebox.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
sound_event | LevelSoundEvent | "undefined" | Which disc sound to play, for example "pigstep" or "cat". |
duration | number | 0 | Length of the song in seconds, so the jukebox knows when it ends. |
comparator_signal | integer | 1 | Redstone strength (1 to 13) a comparator reads from the jukebox while this disc is inside. |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:record": {
"sound_event": "undefined",
"duration": 0,
"comparator_signal": 1
}
}