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

Minecraft:Instrument definition: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
Line 13: Line 13:
* {{nbt|compound}} The root object.<section begin="json format" />
* {{nbt|compound}} The root object.<section begin="json format" />
** {{nbt|compound|description}}: A [[Minecraft:text component]] that is used as a description in tooltips.
** {{nbt|compound|description}}: A [[Minecraft:text component]] that is used as a description in tooltips.
** {{nbt|string}}{{nbt|compound|sound_event}}: {{json_ref|sound event|inline=1}}
** {{nbt|string}}{{nbt|compound|sound_event}}: {{json_ref|server-side sound event|inline=1}}
*** {{nbt inherit/sound event}}
*** {{nbt inherit/sound event}}
** {{nbt|float|use_duration}}: A non-negative float for how long the use duration is.
** {{nbt|float|use_duration}}: A non-negative float for how long the use duration is.

Revision as of 11:47, 20 July 2026

Template:Exclusive An instrument consists of a sound with its corresponding range and use duration. They are currently only used for Minecraft:goat horns.

Definition

Instruments can be defined in Minecraft:data packs, as part of the directory structure below.

Template:Data pack directory

JSON Format

Instruments are defined using the following format:

History

Template:HistoryTable

Navigation

Template:Navbox Java Edition technical

Minecraft:de:Bockshorninstrumentendefinition Minecraft:fr:Définition d'instrument de corne de chèvre Minecraft:pt:Definição de instrumento de chifre de cabra Minecraft:zh:山羊角乐器定义格式