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
- Try creating sound with range
- Doesn't work
- 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
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
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