fix up some crafts

This commit is contained in:
unknown 2022-01-01 22:53:37 -05:00
parent 47f8b44a85
commit f14fc58b50
2 changed files with 20 additions and 4 deletions

View File

@ -10,6 +10,13 @@ local function register_ore(name, ingot_toggle, block_groups)
description = name .. " ingot",
inventory_image = "farlands_" .. name .. "_ingot.png",
})
minetest.register_craft({
type = "cooking",
output = "fl_ores:" .. name .. "_ingot",
recipe = "fl_ores:" .. name .. "_ore",
cooktime = 5,
})
end
minetest.register_node("fl_ores:" .. name .. "_block", {
description = name .. " block",

View File

@ -124,7 +124,7 @@ local function on_timer(pos, elapsed)
meta:set_float("burn_time", burn_time)
ifuel[1]:take_item()
inv:set_list("fuel", ifuel)
minetest.chat_send_all("fuel")
--minetest.chat_send_all("fuel")
elseif burn_time <= 0 then
meta:set_float("burn_time", 0)
return swap_node(pos, {name = "fl_workshop:furnace", param2 = minetest.get_node(pos).param2})
@ -135,7 +135,7 @@ local function on_timer(pos, elapsed)
if coutput.time > total_time then
minetest.get_node_timer(pos):start(1.0)
meta:set_float("total_time", total_time)
minetest.chat_send_all("trigger1")
--minetest.chat_send_all("trigger1")
return swap_node(pos, {name = "fl_workshop:furnace_active", param2 = minetest.get_node(pos).param2})
else
meta:set_float("total_time", 0)
@ -150,7 +150,7 @@ local function on_timer(pos, elapsed)
inv:set_list("input", iinput)
if not iinput[1]:is_empty() then minetest.get_node_timer(pos):start(1.0) end
minetest.chat_send_all("trigger2")
--minetest.chat_send_all("trigger2")
return swap_node(pos, {name = "fl_workshop:furnace_active", param2 = minetest.get_node(pos).param2})
end
end
@ -268,4 +268,13 @@ minetest.register_node("fl_workshop:furnace_active", {
return
end
--]]
--end)
--end)
minetest.register_craft({
output = "fl_workshop:furnace",
recipe = {
{"group:stone", "group:stone", "group:stone"},
{"group:stone", "", "group:stone"},
{"group:stone", "group:stone", "group:stone"},
},
})