#Adding attribute to a trinket

13 messages · Page 1 of 1 (latest)

sacred nacelleBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

halcyon fog
#

yeah can only add attributes to tool items iirc

#

the uuid is a sucky system to identify attributes for later modification

#

the easiest way to do this is to add the attribute to nbt when it is crafted

halcyon fog
#

gotta check trinkets code for that

#

hm i cant see anything obvious about reading attributes from nbt

#

oh wait

#

oh doesnt help im looking at 1.21 code

#

looks like its a similar format but under TrinketAttributeModifiers and with Slot being however you normally represent the slot

#

{TrinketAttributeModifiers: [{AttributeName: "thing", Slot: "group/name", Operation: 1, Amount: 0.15, Name: "thing", UUID: [I;0,0,0,0]}]}

#

the helper might be useful if it allows serialzing