Initialize Commit

This commit is contained in:
2025-06-19 15:01:07 +08:00
commit e40ed2e534
164 changed files with 19741 additions and 0 deletions

View File

@ -0,0 +1,28 @@
package component
import (
"git.konjactw.dev/patyhank/minego/codec/data/slot"
"github.com/Tnze/go-mc/chat"
"github.com/Tnze/go-mc/net/packet"
)
//codec:gen
type Instrument struct {
Instrument packet.OptID[InstrumentData, *InstrumentData]
}
//codec:gen
type InstrumentData struct {
SoundEvent packet.OptID[SoundEvent, *SoundEvent]
SoundRange float32
Range float32
Description chat.Message
}
func (*Instrument) Type() slot.ComponentID {
return 52
}
func (*Instrument) ID() string {
return "minecraft:instrument"
}