GUI: show wear for recipe output

This commit is contained in:
Jean-Patrick Guerrero
2021-11-21 18:44:49 +01:00
parent b4d7dfddef
commit ec4e929491
3 changed files with 66 additions and 51 deletions

View File

@ -6,6 +6,10 @@ local mt2 = ItemStack("dye:red")
mt2:get_meta():set_string("description", "test red")
mt2:get_meta():set_string("color", "#ff0")
local mt3 = ItemStack("default:pick_diamond")
mt3:get_meta():set_string("description", "Worn Pick")
mt3:set_wear(10000)
minetest.register_craft({
output = mt:to_string(),
type = "shapeless",
@ -15,6 +19,15 @@ minetest.register_craft({
},
})
minetest.register_craft({
output = mt3:to_string(),
type = "shapeless",
recipe = {
"default:pick_mese",
"default:diamond",
},
})
i3.register_craft {
url = "https://raw.githubusercontent.com/minetest-mods/i3/main/tests/test_online_recipe.json"
}