sisby-folk / tinkerers-smithing

A minecraft mod implementing a sentimental and convenient rebalance of minecraft gear crafting, repair, combining, and smithing.
https://modrinth.com/mod/tinkerers-smithing
GNU Lesser General Public License v3.0
4 stars 5 forks source link

Item Upgrade Override #43

Closed Atsumachi closed 3 months ago

Atsumachi commented 3 months ago

I apologize in advance, but I couldn't find anywhere else to ask this information so I'm hoping to get some help here. I'm trying to add compatability with a mod (Paladins & Priests) for personal use and have the upgrade path set for the armors included in the mod. Currently, Tinkerer's sets the upgrade recipe to use gold ingots: image But I want to change the upgrade material from gold to ghast tears as that's the more important item of the original crafting recipe and I don't want to bypass acquiring the more difficult to obtain item: image Is there any override that I can add to the fields (sorry if fields is the wrong word, I'm still trying to learn java) that will allow me to specify the ghast tear as the upgrade item instead of the gold?

sisby-folk commented 3 months ago

yep! datapackable:

data/tinkerers_smithing/recipe/shapeless/paladins/prior_robe_head/paladins/priest_robe_head.json data/tinkerers_smithing/recipe/smithing/paladins/prior_robe_head/paladins/priest_robe_head.json

(yes, both)

{
    "type": "tinkerers_smithing:shapeless",
    "base": "paladins:priest_robe_head"
    "addition": {
        "item": "minecraft:ghast_tear"
    }
    "additionCount": 1
    "result": "paladins:prior_robe_head"
}

if i got the items wrong, just swap out the ids

Atsumachi commented 3 months ago

Oh I'm so dumb, I completely forgot about adding the recipes. Thank you very much!