make diamond armor upgradable to netherite

This commit is contained in:
cora 2022-06-26 22:13:39 +02:00
parent 79c014f356
commit c05e1b5f45
2 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,8 @@ function mcl_armor.register_set(def)
_on_break = on_break_callbacks[name] or def.on_break, _on_break = on_break_callbacks[name] or def.on_break,
_mcl_armor_element = name, _mcl_armor_element = name,
_mcl_armor_texture = textures[name] or modname .. "_" .. itemname .. ".png", _mcl_armor_texture = textures[name] or modname .. "_" .. itemname .. ".png",
_mcl_upgradable = def._mcl_upgradable,
_mcl_upgrade_item = itemstring:gsub("_diamond","_netherite")
}) })
if def.craft_material then if def.craft_material then

View File

@ -79,6 +79,8 @@ mcl_armor.register_set({
}, },
toughness = 2, toughness = 2,
craft_material = "mcl_core:diamond", craft_material = "mcl_core:diamond",
_mcl_upgradable = true,
_mcl_upgrade_item_add = "_netherite"
}) })
mcl_armor.register_set({ mcl_armor.register_set({