Minecraft:Jukebox song definition
From SAS Gaming Wiki
More actions
A jukebox song is a song played when an item with the Template:Cd item data component is inserted into a Template:BlockLink. 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:
- Template:Nbt The root object.
- Template:NbtTemplate:Nbt: Template:Json ref — 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 Template:Nbt ID; custom sound events must be specified in Template:Nbt object form.
- Template:NbtTemplate:Nbt: A Minecraft:text component to display in the tooltip of the item.
- Template:Nbt: The length of the song in seconds. Determines the length of the redstone output of the jukebox. If the sound is longer, it is cut off after this time.
- Template:Nbt: Value between 0 and 15 — The redstone power output by a Minecraft:comparator when placed next to a jukebox playing this song.
History
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:唱片机曲目定义格式