2024-06-27 21:01:35 -06:00

39 lines
1.3 KiB
Lua

PyuTestCore.make_wool_and_dyes = function(name, desc, color)
PyuTestCore.make_building_blocks(name.."_wool", desc.." Wool", {"wool.png"}, color or "white")
PyuTestCore.make_item(name.."_dye", desc.." Dye", {}, "dye.png", {
color = color or "white"
})
-- if nomakecraft then return end
minetest.register_craft({
output = name.."_wool_block",
type = "shapeless",
recipe = {
"pyutest_core:white_wool_block",
name.."_dye"
}
})
end
PyuTestCore.make_wool_and_dyes("pyutest_core:white", "White", "white")
minetest.register_craft({
output = "pyutest_core:white_wool_block 4",
recipe = {
{"pyutest_core:string", "pyutest_core:string"},
{"pyutest_core:string", "pyutest_core:string"}
}
})
PyuTestCore.make_wool_and_dyes("pyutest_core:black", "Black", "black")
PyuTestCore.make_wool_and_dyes("pyutest_core:brown", "Brown", "brown")
PyuTestCore.make_wool_and_dyes("pyutest_core:red", "Red", "red")
PyuTestCore.make_wool_and_dyes("pyutest_core:orange", "Orange", "orange")
PyuTestCore.make_wool_and_dyes("pyutest_core:yellow", "Yellow", "yellow")
PyuTestCore.make_wool_and_dyes("pyutest_core:green", "Green", "green")
PyuTestCore.make_wool_and_dyes("pyutest_core:blue", "Blue", "blue")
PyuTestCore.make_wool_and_dyes("pyutest_core:purple", "Purple", "purple")
PyuTestCore.make_wool_and_dyes("pyutest_core:pink", "Pink", "pink")