fix up some crafts
This commit is contained in:
parent
47f8b44a85
commit
f14fc58b50
@ -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",
|
||||
|
@ -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
|
||||
@ -269,3 +269,12 @@ minetest.register_node("fl_workshop:furnace_active", {
|
||||
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"},
|
||||
},
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user