Skip to content

API reference Obsidian.API.Blocks

BlockSoundProperties record

A block's break, step, place, hit and fall events, with the base volume and pitch used by block interactions. Declare the same sounds in ConfigureRegistry on both sides. Reloading replaces them; unloading uses stone.

public sealed record BlockSoundProperties : IEquatable<BlockSoundProperties>

In Obsidian.API.

Constructors

public BlockSoundProperties();

Properties

public required SoundEvent Break { get; init; }public required SoundEvent Fall { get; init; }public required SoundEvent Hit { get; init; }public float Pitch { get; init; }public required SoundEvent Place { get; init; }public required SoundEvent Step { get; init; }

Stone

public static BlockSoundProperties Stone { get; }

The default block sounds, like vanilla's stone sound type.

public float Volume { get; init; }

On this page