Minecraft:Instrument definition
From SAS Gaming Wiki
More actions
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.
JSON Format
Instruments are defined using the following format:
- Template:Nbt The root object.<section begin="json format" />
- Template:Nbt: A Minecraft:text component that is used as a description in tooltips.
- Template:NbtTemplate:Nbt: Template:Json ref
- Template:Nbt: A non-negative float for how long the use duration is.
- Template:Nbt: A non-negative float for the range of the sound.<section end="json format" />
History
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:山羊角乐器定义格式