Minecraft:Block sound set definition: Difference between revisions
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| Line 57: | Line 57: | ||
== Navigation == | == Navigation == | ||
{{Navbox Java Edition technical|datapack}} | {{Navbox Java Edition technical|datapack}} | ||
[[Minecraft:de:Blockgeräuschssammlung]] | |||
[[Minecraft:zh:方块音效集定义格式]] | |||
Latest revision as of 11:04, 8 October 2026
Template:Exclusive Template:In development Template:Wip
A block sound set defines the regular sound of Minecraft:blocks.
Usage
Each block in the game is associated with a unique block sound set. The list of sound types, which blocks are associated with them, and their values can be viewed in Minecraft:block sound type.
Use when they are broken, placed, hit, fallen on or stepped on.
Horses
Minecraft:Donkeys, Minecraft:lammas, Minecraft:trader llamas, Minecraft:mules, Minecraft:horses, Minecraft:skeleton horses, and Minecraft:zombie horses use a sound block set to define your sound when walking or galloping.
When they are not galloping and walking on blocks whose sound set is within the tag Template:Tag link emit the sound event Template:Cd. When they are walking on blocks with other sound sets emit Template:Cd or Template:Cd if it is a baby. In both cases, the volume is given by 15% of the volume of the block sound set, and the pitch is the same as the block sound set.
When they are galloping, emit the sound event Template:Cd in the first 5 ticks. After that, they have a 10% chance of emitting the sound event Template:Cd. In both cases, the volume is given by 15% of the volume of the block sound set, and the pitch is the same as the block sound set.
If it is a horse, each time it emits the sound Template:Cd, it has a 10% chance of emitting an additional sound Template:Cd or Template:Cd (if it is a baby), with volume is given by 60% of the volume of the block sound set, and the same pitch.
Definition
Decorated pot pattern can be defined in Minecraft:data packs, as part of the directory structure below.
JSON format
Block sound set have the following format, all fields are optional:
- Template:Nbt The root object.
- Template:Nbt: Between Template:Cd and Template:Cd, defaults Template:Cd. The relative volume at which all sounds will be played.
- Template:Nbt: Between Template:Cd and Template:Cd, defaults Template:Cd. The relative pitch at which all sounds will be played.
- Template:Nbt: Template:Json ref, the sound that will be played when the block gets broken.
- Template:Nbt: Template:Json ref, the sound that will be played when an entity walks on top of the block.
- Template:Nbt: Template:Json ref, the sound that will be played when the block gets placed.
- Template:Nbt: Template:Json ref, the sound that will be played while the block is being destroyed.
- Template:Nbt: Template:Json ref, the sound that will be played when an entity falls onto the block.