Play Strawberry Belgeler
Başvuru

Bu sayfa İngilizce gösteriliyor.

sounds

The sound and sound category values used by playback functions.

Declarations from the script contract strawberry:plugin, version 0.2.0, without source comments.

WIT declarations

The sound enum has 1991 values, one per vanilla sound event: the sound id with dots and underscores written as hyphens (entity.allay.ambient_with_item is entity-allay-ambient-with-item). The first values are shown below; the SDK enum has all of them.

text
enum sound-category {
  master,
  music,
  records,
  weather,
  blocks,
  hostile,
  neutral,
  players,
  ambient,
  voice,
  ui,
}

enum sound {
  entity-allay-ambient-with-item,
  entity-allay-ambient-without-item,
  entity-allay-death,
  entity-allay-hurt,
  entity-allay-item-given,
  entity-allay-item-taken,
  entity-allay-item-thrown,
  ambient-cave,
  ambient-basalt-deltas-additions,
  ambient-basalt-deltas-loop,
  ambient-basalt-deltas-mood,
  ambient-crimson-forest-additions,
  ambient-crimson-forest-loop,
  ambient-crimson-forest-mood,
  ambient-nether-wastes-additions,
  ambient-nether-wastes-loop,
  ambient-nether-wastes-mood,
  ambient-soul-sand-valley-additions,
  ambient-soul-sand-valley-loop,
  ambient-soul-sand-valley-mood,
  ambient-warped-forest-additions,
  ambient-warped-forest-loop,
  ambient-warped-forest-mood,
  ambient-underwater-enter,
  ambient-underwater-exit,
  ambient-underwater-loop,
  ambient-underwater-loop-additions,
  ambient-underwater-loop-additions-rare,
  ambient-underwater-loop-additions-ultra-rare,
  block-amethyst-block-break,
  block-amethyst-block-chime,
  block-amethyst-block-fall,
  block-amethyst-block-hit,
  block-amethyst-block-place,
  block-amethyst-block-resonate,
  block-amethyst-block-step,
  block-amethyst-cluster-break,
  block-amethyst-cluster-fall,
  block-amethyst-cluster-hit,
  block-amethyst-cluster-place,
    // ... 1951 more values
}

sound-from-key: func(key: string) -> result<sound, string>;

Bu sayfada