Skip to content

Inlined sounds are not possible to create using the API #14171

Description

@Samuraien2

Expected behavior

Being able to create Consumable data components with sound range or empty sound keys like this: sound:{sound_id:""}

Observed/Actual behavior

The API only supports Consumable.sound(Key key), no Consumable.sound(Key key, float range) or similar which the NBT data offers: https://minecraft.wiki/w/Data_component_format#consumable

Steps/models to reproduce

  1. Try creating sound with range
  2. Doesn't work
  3. Sad moment :(

Plugin and Datapack List

My own plugin

Paper version

Paper version 26.2-111-main@f570646 (2026-08-07T16:16:19Z) (Implementing API version 26.2.build.111-stable)

Other

Would also be nice to allow an empty string/key if you don't want to play an sound

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 26.2

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions