Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Jukebox song definition: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: new page from Minecraft
 
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Exclusive|java}}
{{Exclusive|java}}


A '''jukebox song''' is a song played when an item with the {{cd|minecraft:jukebox_playable}} item data component is inserted into a {{BlockLink|jukebox}}. Jukebox songs can be defined using [[Minecraft:JSON]] files in a [[Minecraft:data pack]] at the path {{cd|data/<namespace>/jukebox_song/}}.
A '''jukebox song''' is a song played when an item with the {{cd|minecraft:jukebox_playable}} item data component is inserted into a [[Minecraft:jukebox]]. Jukebox songs can be defined using [[Minecraft:JSON]] files in a [[Minecraft:data pack]] at the path {{cd|data/<namespace>/jukebox_song/}}.


== JSON format ==
== JSON format ==
Line 7: Line 7:
<div class="treeview">
<div class="treeview">
* {{nbt|compound}} The root object.
* {{nbt|compound}} The root object.
** {{nbt|string}}{{nbt|compound|sound_event}}: {{json ref|server-side sound event|inline=1}} &mdash; The event to play when the item is inserted in a jukebox. Note that only vanilla ''Minecraft'' sound events have a server-side sound event that can be referenced directly by {{nbt|string}} ID; custom sound events must be specified in {{nbt|compound}} object form.
** {{nbt|string}}{{nbt|compound|sound_event}}: {{json ref|server-side sound event|inline=1}} &mdash; The event to play when the item is inserted in a jukebox. Note that only vanilla ''Minecraft'' sound events have a server-side sound event that can be referenced directly by {{nbt|string}} ID; custom sound events must be specified in {{nbt|compound}} object form. The {{nbt|float|range}} value is ignored, since jukebox songs are transmitted to clients as part of the jukebox update event and not as normal sounds.
*** {{nbt inherit/sound event}}
*** {{nbt inherit/sound event}}
** {{nbt|string}}{{nbt|compound|description}}: A [[Minecraft:text component]] to display in the tooltip of the item.
** {{nbt|string}}{{nbt|compound|description}}: A [[Minecraft:text component]] to display in the tooltip of the item.

Latest revision as of 11:11, 15 September 2026

Template:Exclusive

A jukebox song is a song played when an item with the Template:Cd item data component is inserted into a Minecraft:jukebox. Jukebox songs can be defined using Minecraft:JSON files in a Minecraft:data pack at the path Template:Cd.

JSON format

Jukebox songs are defined using the following format:

History

Template:HistoryTable

Navigation

Template:Navbox Java Edition technical

Minecraft:de:Plattenspielermusikdefinition Minecraft:fr:Définition de chanson de jukebox Minecraft:ko:주크박스 곡 정의 Minecraft:pt:Definição de música do toca-discos Minecraft:uk:Визначення пісні програвача Minecraft:zh:唱片机曲目定义格式