1. Wiki
  2. /Items
  3. /minecraft:record

minecraft:record

Don't want to write this by hand? GodCraft sets minecraft:record for you with a switch.Get GodCraft

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

FieldTypeDefaultDescription
sound_eventLevelSoundEvent"undefined"Which disc sound to play, for example "pigstep" or "cat".
durationnumber0Length of the song in seconds, so the jukebox knows when it ends.
comparator_signalinteger1Redstone 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
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more