mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-27 03:37:31 +01:00
make diamond armor upgradable to netherite
This commit is contained in:
parent
79c014f356
commit
c05e1b5f45
@ -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
|
||||||
|
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user