ItemComponent - Instrument Component Apply (Section) — SkBee
Addon: SkBee · Category: Section · Since: 3.8.0
Syntax
apply instrument [component] to %itemstacks/itemtypes/slots%Description
Apply an instrument component to an item that supports it (such as a goat horn). It may seem silly that this is a section with only 1 value, but I'm hoping that Paper updates the API to support all the features Minecraft has for this. Requires Paper 1.21.3+ See [**Instrument Component**](https://minecraft.wiki/w/Data_component_format#instrument) on McWiki for more info.
**Entries**: - `instrument` = The instrument to be played.
Examples
set {_i} to 1 of goat horn
apply instrument to {_i}:
instrument: admire_goat_horn