#Adding attribute to a trinket
13 messages · Page 1 of 1 (latest)
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
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]}]}
oh nice they have a wiki page... with like two sentences on it
https://github.com/emilyploszaj/trinkets/wiki/Trinkets-API#slot-entity-attribute-modifiers
the helper might be useful if it allows serialzing