mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-06 05:44:26 -04:00
Merge 2320f23047
into 00a0d9a5d4
This commit is contained in:
commit
5d09cab3d9
1 changed files with 12 additions and 5 deletions
|
@ -39,12 +39,19 @@ for _, row in ipairs(dyelocal.dyes) do
|
|||
description = description,
|
||||
groups = groups
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = item_name.." 4",
|
||||
recipe = {"group:flower,color_"..name},
|
||||
})
|
||||
local flowers = {"white", "violet", "blue", "yellow", "orange", "red"}
|
||||
|
||||
for i=1, #flowers do
|
||||
if flowers[i] == name then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = item_name.." 4",
|
||||
recipe = {"group:flower,color_"..name},
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- manually add coal->black dye
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
|
|
Loading…
Add table
Reference in a new issue