package component import ( "git.konjactw.dev/patyhank/minego/codec/data/slot" pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen type AttributeModifiers struct { Modifiers []AttributeModifier } //codec:gen type AttributeModifier struct { AttributeID int32 `mc:"VarInt"` ModifierID pk.Identifier Value float64 Operation int32 `mc:"VarInt"` // 0=Add, 1=Multiply base, 2=Multiply total Slot int32 `mc:"VarInt"` // 0=Any, 1=Main hand, 2=Off hand, etc. } func (*AttributeModifiers) Type() slot.ComponentID { return 13 } func (*AttributeModifiers) ID() string { return "minecraft:attribute_modifiers" }