mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
make diamond armor upgradable to netherite
This commit is contained in:
parent
79c014f356
commit
c05e1b5f45
2 changed files with 4 additions and 0 deletions
|
@ -133,6 +133,8 @@ function mcl_armor.register_set(def)
|
|||
_on_break = on_break_callbacks[name] or def.on_break,
|
||||
_mcl_armor_element = name,
|
||||
_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
|
||||
|
|
|
@ -79,6 +79,8 @@ mcl_armor.register_set({
|
|||
},
|
||||
toughness = 2,
|
||||
craft_material = "mcl_core:diamond",
|
||||
_mcl_upgradable = true,
|
||||
_mcl_upgrade_item_add = "_netherite"
|
||||
})
|
||||
|
||||
mcl_armor.register_set({
|
||||
|
|
Loading…
Reference in a new issue