mirror of
https://github.com/minetest-mods/i3.git
synced 2025-06-28 06:40:17 +02:00
GUI: show wear for recipe output
This commit is contained in:
@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user