跳转至

minecraft:record

文档版本:1.21.0.24

Record Item Component. Used by record items to play music.

架构

minecraft:record:
{
  integer "comparator_signal" : opt
  number "duration" : opt
  string "sound_event" : opt
}
comparator_signalinteger
Specifies signal strength for comparator blocks to use, from 1 - 13.
durationnumber
Specifies duration of sound event in seconds, float value.
sound_eventstring
Sound event type: 13, cat, blocks, chirp, far, mall, mellohi, stal, strad, ward, 11, wait, pigstep, otherside, 5, relic.