detect mineclone/default dye recipe for agave->cyan
This commit is contained in:
parent
1d33b21cf2
commit
91fcaf9505
18
agave.lua
18
agave.lua
@ -75,10 +75,20 @@ minetest.register_node("wine:blue_agave", {
|
|||||||
|
|
||||||
|
|
||||||
-- blue agave into cyan dye
|
-- blue agave into cyan dye
|
||||||
minetest.register_craft( {
|
if minetest.get_modpath("mcl_dye") then
|
||||||
output = "dye:cyan 4",
|
|
||||||
recipe = {{"wine:blue_agave"}}
|
minetest.register_craft( {
|
||||||
})
|
output = "mcl_dye:cyan 4",
|
||||||
|
recipe = {{"wine:blue_agave"}}
|
||||||
|
})
|
||||||
|
|
||||||
|
elseif minetest.get_modpath("dye") then
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "dye:cyan 4",
|
||||||
|
recipe = {{"wine:blue_agave"}}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- blue agave as fuel
|
-- blue agave as fuel
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user