Carrots Attribute
Opened this issue · 5 comments
I applied some carrot's built in attributes to items. They show up in the tool tips, but don't actually effect the item.
You'll need to be MUCH more specific in your issue report. For example, what attributes, what values, what kind of item? Most importantly: what are you trying to accomplish? You also need to provide the library and forge versions you're using. A code or loot-table sample would be nice too.
Sorry, I had some trouble and got distracted by my kids.
Carrots Library- 1.16.5- 3.0.1
Forge 36.2.8
I'm using a mod called Tiered- https://www.curseforge.com/minecraft/mc-mods/tiered-forge
It uses .jsons to give items random prefixes like in Terraria or Diablo. I noticed that the carrots mod had attributes via the /attributes command in Minecraft I started with the material durability to see if it would work.
I built a new .json- {
"id": "tiered:durable",
"verifiers": [
{
"tag": "forge:helmets"
},
{
"tag": "forge:chestplates"
},
{
"tag": "forge:leggings"
},
{
"tag": "forge:boots"
},
{
"tag": "forge:shields"
}
],
"style": {
"color": "gray"
},
"attributes": [
{
"type": "carrots:material_durability",
"modifier": {
"name": "tiered:resilient",
"operation": "MULTIPLY_TOTAL",
"amount": 0.2
},
"optional_equipment_slots": [
"FEET",
"LEGS",
"CHEST",
"HEAD"
]
}
]
}
The mod and Minecraft looks like it registers it correctly - see the 20% duration Tag.
.
Unfortunately it does not actually add the durability- iron retains the 240. I was hoping to use all your attributes to add some variety to the modpack. If they aren't designed that way, no problem.
In the current 1.16.5 versions, these attributes need mod-specific support unfortunately; they won't work using just the assignment you've got. The plan is for the 1.18 library versions to use the mixin framework to actually add generic support for some of these attributes so your setup would just work as you expect.
I'll keep that Tiered mod in mind as I do the newer work to use as a check. Doesn't help for 1.16 though...