Commit d720fd3d authored by Peter Nerlich's avatar Peter Nerlich
Browse files

rename stuff to fsr

parent 4e44bbe5
minetest.register_tool("kif_custom:pick_salad", { minetest.register_tool("fsr_custom:pick_salad", {
description = "Pickaxe of questionable quality", description = "Pickaxe of questionable quality",
inventory_image = "kif_custom_tool_picksalad.png", inventory_image = "fsr_custom_tool_picksalad.png",
stack_max = 1, stack_max = 1,
sound = {breaks = "kif_custom_salad_splotch"}, sound = {breaks = "fsr_custom_salad_splotch"},
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
if user ~= nil then if user ~= nil then
minetest.sound_play({ minetest.sound_play({
name = "kif_custom_salad_splotch", name = "fsr_custom_salad_splotch",
}, { }, {
object = user object = user
}) })
...@@ -16,8 +16,8 @@ minetest.register_tool("kif_custom:pick_salad", { ...@@ -16,8 +16,8 @@ minetest.register_tool("kif_custom:pick_salad", {
end end
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "kif_custom:pick_salad", output = "fsr_custom:pick_salad",
recipe = { recipe = {
{"farming:potato_salad", "farming:potato_salad", "farming:potato_salad"}, {"farming:potato_salad", "farming:potato_salad", "farming:potato_salad"},
{"", "default:stick", ""}, {"", "default:stick", ""},
......
local DISABLE_TIMEOUT = tonumber(minetest.settings:get("kif_custom.advtrains.disable_timeout")) or 60 * 60 local DISABLE_TIMEOUT = tonumber(minetest.settings:get("fsr_custom.advtrains.disable_timeout")) or 60 * 60
local trains_disabled = #minetest.get_connected_players() == 0 local trains_disabled = #minetest.get_connected_players() == 0
local disable_job = nil local disable_job = nil
...@@ -11,7 +11,7 @@ minetest.register_on_joinplayer(function(player, last_login) ...@@ -11,7 +11,7 @@ minetest.register_on_joinplayer(function(player, last_login)
disable_job = nil disable_job = nil
end end
if trains_disabled then if trains_disabled then
minetest.log("action", "[kif_custom] Enabling trains.") minetest.log("action", "[fsr_custom] Enabling trains.")
trains_disabled = false trains_disabled = false
end end
end) end)
...@@ -21,7 +21,7 @@ minetest.register_on_leaveplayer(function(player, timed_out) ...@@ -21,7 +21,7 @@ minetest.register_on_leaveplayer(function(player, timed_out)
-- deactivate trains -- deactivate trains
if disable_job == nil then if disable_job == nil then
disable_job = minetest.after(DISABLE_TIMEOUT, function() disable_job = minetest.after(DISABLE_TIMEOUT, function()
minetest.log("action", "[kif_custom] No player logged in for a time. Disabling trains.") minetest.log("action", "[fsr_custom] No player logged in for a time. Disabling trains.")
trains_disabled = true trains_disabled = true
disable_job = nil disable_job = nil
end) end)
......
...@@ -3,35 +3,35 @@ local greens = {"dye:green", "dye:light_green", "dye:medium_green", "dye:dark_gr ...@@ -3,35 +3,35 @@ local greens = {"dye:green", "dye:light_green", "dye:medium_green", "dye:dark_gr
-- track stuff -- track stuff
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_interlocking:tcb_node", output = "advtrains_interlocking:tcb_node",
recipe = {{"default:mese_crystal_fragment"}, recipe = {{"default:mese_crystal_fragment"},
{"default:steel_ingot"}} {"default:steel_ingot"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_interlocking:tcb_node 9", output = "advtrains_interlocking:tcb_node 9",
recipe = {{"default:mese_crystal"}, recipe = {{"default:mese_crystal"},
{"default:steelblock"}} {"default:steelblock"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_line_automation:dtrack_stop_placer", output = "advtrains_line_automation:dtrack_stop_placer",
recipe = {{"dye:black"}, recipe = {{"dye:black"},
{"default:mese_crystal_fragment"}, {"default:mese_crystal_fragment"},
{"advtrains:dtrack_placer"}} {"advtrains:dtrack_placer"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_interlocking:dtrack_npr_placer", output = "advtrains_interlocking:dtrack_npr_placer",
recipe = {{"advtrains_line_automation:dtrack_stop_placer"}} recipe = {{"advtrains_line_automation:dtrack_stop_placer"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_interlocking:dtrack_npr_placer", output = "advtrains_interlocking:dtrack_npr_placer",
recipe = {{"advtrains_line_automation:dtrack_stop_placer"}} recipe = {{"advtrains_line_automation:dtrack_stop_placer"}}
}) })
--[[ --[[
-- TODO: fix crash in advtrains before adding recipe -- TODO: fix crash in advtrains before adding recipe
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:dtrack_atc_placer", output = "advtrains:dtrack_atc_placer",
recipe = {{"dye:blue"}, recipe = {{"dye:blue"},
{"default:mese_crystal_fragment"}, {"default:mese_crystal_fragment"},
...@@ -39,35 +39,35 @@ kif.register_craft_if_items_exist({ ...@@ -39,35 +39,35 @@ kif.register_craft_if_items_exist({
}) })
]]-- ]]--
for i,color in ipairs(greens) do for i,color in ipairs(greens) do
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:dtrack_unload_placer", output = "advtrains:dtrack_unload_placer",
recipe = {{color}, recipe = {{color},
{"default:mese_crystal_fragment"}, {"default:mese_crystal_fragment"},
{"advtrains:dtrack_placer"}} {"advtrains:dtrack_placer"}}
}) })
end end
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:dtrack_load_placer", output = "advtrains:dtrack_load_placer",
recipe = {{"dye:red"}, recipe = {{"dye:red"},
{"default:mese_crystal_fragment"}, {"default:mese_crystal_fragment"},
{"advtrains:dtrack_placer"}} {"advtrains:dtrack_placer"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:dtrack_load_placer", output = "advtrains:dtrack_load_placer",
recipe = {{"advtrains:dtrack_unload_placer"}} recipe = {{"advtrains:dtrack_unload_placer"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:dtrack_unload_placer", output = "advtrains:dtrack_unload_placer",
recipe = {{"advtrains:dtrack_load_placer"}} recipe = {{"advtrains:dtrack_load_placer"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_luaautomation:dtrack_placer", output = "advtrains_luaautomation:dtrack_placer",
recipe = {{"dye:blue"}, recipe = {{"dye:blue"},
{"mesecons_microcontroller:microcontroller0000"}, {"mesecons_microcontroller:microcontroller0000"},
{"advtrains:dtrack_placer"}} {"advtrains:dtrack_placer"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_luaautomation:oppanel", output = "advtrains_luaautomation:oppanel",
recipe = { recipe = {
{"default:steel_ingot","dye:blue","default:steel_ingot"}, {"default:steel_ingot","dye:blue","default:steel_ingot"},
...@@ -77,12 +77,12 @@ kif.register_craft_if_items_exist({ ...@@ -77,12 +77,12 @@ kif.register_craft_if_items_exist({
-- train stuff -- train stuff
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:engine_japan", output = "advtrains:engine_japan",
recipe = {{"advtrains:wagon_japan"}, recipe = {{"advtrains:wagon_japan"},
{"default:mese"}} {"default:mese"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:wagon_japan", output = "advtrains:wagon_japan",
recipe = { recipe = {
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"}, {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
...@@ -90,14 +90,14 @@ kif.register_craft_if_items_exist({ ...@@ -90,14 +90,14 @@ kif.register_craft_if_items_exist({
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"}} {"default:steel_ingot","default:steel_ingot","default:steel_ingot"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:engine_industrial", output = "advtrains:engine_industrial",
recipe = { recipe = {
{"dye:red", "advtrains:driver_cab"}, {"dye:red", "advtrains:driver_cab"},
{"default:steelblock", "default:mese_crystal"}, {"default:steelblock", "default:mese_crystal"},
{"advtrains:wheel", "advtrains:wheel"}} {"advtrains:wheel", "advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:engine_industrial_big", output = "advtrains:engine_industrial_big",
recipe = { recipe = {
{"dye:red", "advtrains:driver_cab", "default:steelblock"}, {"dye:red", "advtrains:driver_cab", "default:steelblock"},
...@@ -105,14 +105,14 @@ kif.register_craft_if_items_exist({ ...@@ -105,14 +105,14 @@ kif.register_craft_if_items_exist({
{"advtrains:wheel", "advtrains:wheel", "advtrains:wheel"}} {"advtrains:wheel", "advtrains:wheel", "advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:wagon_wood", output = "advtrains:wagon_wood",
recipe = { recipe = {
{"default:steel_ingot","","default:steel_ingot"}, {"default:steel_ingot","","default:steel_ingot"},
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"}, {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
{"advtrains:wheel","advtrains:wheel","advtrains:wheel"}} {"advtrains:wheel","advtrains:wheel","advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:wagon_tank", output = "advtrains:wagon_tank",
recipe = { recipe = {
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"}, {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
...@@ -120,42 +120,42 @@ kif.register_craft_if_items_exist({ ...@@ -120,42 +120,42 @@ kif.register_craft_if_items_exist({
{"advtrains:wheel","advtrains:wheel","advtrains:wheel"}} {"advtrains:wheel","advtrains:wheel","advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:engine_railbus", output = "advtrains:engine_railbus",
recipe = { recipe = {
{"","basic_materials:steel_bar"}, {"","basic_materials:steel_bar"},
{"dye:red","advtrains:subway_wagon"}} {"dye:red","advtrains:subway_wagon"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:diesel_lokomotive", output = "advtrains:diesel_lokomotive",
recipe = { recipe = {
{"dye:cyan", "advtrains:driver_cab"}, {"dye:cyan", "advtrains:driver_cab"},
{"default:steelblock", "default:mese_crystal"}, {"default:steelblock", "default:mese_crystal"},
{"advtrains:wheel", "advtrains:wheel"}} {"advtrains:wheel", "advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:wagon_track", output = "advtrains:wagon_track",
recipe = { recipe = {
{"advtrains:dtrack_placer", "advtrains:dtrack_placer", "advtrains:dtrack_placer"}, {"advtrains:dtrack_placer", "advtrains:dtrack_placer", "advtrains:dtrack_placer"},
{"default:stick", "default:stick", "default:stick"}, {"default:stick", "default:stick", "default:stick"},
{"advtrains:wheel", "", "advtrains:wheel"}} {"advtrains:wheel", "", "advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:wagon_gravel", output = "advtrains:wagon_gravel",
recipe = { recipe = {
{"group:wood", "default:gravel", "group:wood"}, {"group:wood", "default:gravel", "group:wood"},
{"group:wood", "group:wood", "group:wood"}, {"group:wood", "group:wood", "group:wood"},
{"advtrains:wheel", "", "advtrains:wheel"}} {"advtrains:wheel", "", "advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:wagon_tree", output = "advtrains:wagon_tree",
recipe = { recipe = {
{"", "group:tree", ""}, {"", "group:tree", ""},
{"default:stick", "default:stick", "default:stick"}, {"default:stick", "default:stick", "default:stick"},
{"advtrains:wheel", "", "advtrains:wheel"}} {"advtrains:wheel", "", "advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:wagon_lava", output = "advtrains:wagon_lava",
recipe = { recipe = {
{"default:stick", "bucket:bucket_lava", "default:stick"}, {"default:stick", "bucket:bucket_lava", "default:stick"},
...@@ -163,27 +163,27 @@ kif.register_craft_if_items_exist({ ...@@ -163,27 +163,27 @@ kif.register_craft_if_items_exist({
{"advtrains:wheel", "", "advtrains:wheel"}} {"advtrains:wheel", "", "advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:SaHa_E231", output = "advtrains:SaHa_E231",
recipe = { recipe = {
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"}, {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
{"default:steel_ingot","dye:green","default:steel_ingot"}, {"default:steel_ingot","dye:green","default:steel_ingot"},
{"advtrains:wheel","","advtrains:wheel"}} {"advtrains:wheel","","advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:MoHa_E230", output = "advtrains:MoHa_E230",
recipe = { recipe = {
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"}, {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
{"default:steel_ingot","dye:green","default:steel_ingot"}, {"default:steel_ingot","dye:green","default:steel_ingot"},
{"advtrains:wheel","default:mese","advtrains:wheel"}} {"advtrains:wheel","default:mese","advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:MoHa_E231", output = "advtrains:MoHa_E231",
recipe = { recipe = {
{"basic_materials:steel_bar"}, {"basic_materials:steel_bar"},
{"advtrains:MoHa_E230"}}, {"advtrains:MoHa_E230"}},
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:KuHa_E231", output = "advtrains:KuHa_E231",
recipe = { recipe = {
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"}, {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
...@@ -191,14 +191,14 @@ kif.register_craft_if_items_exist({ ...@@ -191,14 +191,14 @@ kif.register_craft_if_items_exist({
{"advtrains:wheel","default:mese","advtrains:wheel"}} {"advtrains:wheel","default:mese","advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:under_s7dm", output = "advtrains:under_s7dm",
recipe = { recipe = {
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"}, {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
{"default:steel_ingot","dye:red","default:steel_ingot"}, {"default:steel_ingot","dye:red","default:steel_ingot"},
{"advtrains:wheel","dye:blue","advtrains:wheel"}} {"advtrains:wheel","dye:blue","advtrains:wheel"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:under_s7ndm", output = "advtrains:under_s7ndm",
recipe = { recipe = {
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"}, {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
...@@ -209,73 +209,73 @@ kif.register_craft_if_items_exist({ ...@@ -209,73 +209,73 @@ kif.register_craft_if_items_exist({
-- signal stuff -- signal stuff
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_signals_ks:mast_mast_0", output = "advtrains_signals_ks:mast_mast_0",
recipe = {{"default:steel_ingot"}, recipe = {{"default:steel_ingot"},
{"default:steel_ingot"}, {"default:steel_ingot"},
{"default:steel_ingot"}} {"default:steel_ingot"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_signals_ks:hs_danger_0 2", output = "advtrains_signals_ks:hs_danger_0 2",
type = "shapeless", type = "shapeless",
recipe = {"advtrains:signal_off", "advtrains:signal_off", "dye:white", "dye:yellow"} recipe = {"advtrains:signal_off", "advtrains:signal_off", "dye:white", "dye:yellow"}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_signals_ks:ra_danger_0 2", output = "advtrains_signals_ks:ra_danger_0 2",
type = "shapeless", type = "shapeless",
recipe = {"advtrains:signal_off", "advtrains:signal_off", "dye:white"} recipe = {"advtrains:signal_off", "advtrains:signal_off", "dye:white"}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:signal_wall_l_off", output = "advtrains:signal_wall_l_off",
recipe = {{"advtrains:signal_wall_t_off"}} recipe = {{"advtrains:signal_wall_t_off"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:signal_wall_r_off", output = "advtrains:signal_wall_r_off",
recipe = {{"advtrains:signal_wall_l_off"}} recipe = {{"advtrains:signal_wall_l_off"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:signal_wall_t_off", output = "advtrains:signal_wall_t_off",
recipe = {{"advtrains:signal_wall_r_off"}} recipe = {{"advtrains:signal_wall_r_off"}}
}) })
for i,color in ipairs(greens) do for i,color in ipairs(greens) do
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:signal_wall_l_off 2", output = "advtrains:signal_wall_l_off 2",
recipe = {{"default:steel_ingot", "dye:red"}, recipe = {{"default:steel_ingot", "dye:red"},
{"", color}, {"", color},
{"default:steel_ingot", "default:steel_ingot"}} {"default:steel_ingot", "default:steel_ingot"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:signal_wall_r_off 2", output = "advtrains:signal_wall_r_off 2",
recipe = {{"dye:red", "default:steel_ingot"}, recipe = {{"dye:red", "default:steel_ingot"},
{color, ""}, {color, ""},
{"default:steel_ingot", "default:steel_ingot"}} {"default:steel_ingot", "default:steel_ingot"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:signal_wall_t_off 2", output = "advtrains:signal_wall_t_off 2",
recipe = {{"default:steel_ingot", "", "default:steel_ingot"}, recipe = {{"default:steel_ingot", "", "default:steel_ingot"},
{"default:steel_ingot", color, "dye:red"}} {"default:steel_ingot", color, "dye:red"}}
}) })
end end
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_signals_ks:sign_8_0 2", output = "advtrains_signals_ks:sign_8_0 2",
type = "shapeless", type = "shapeless",
recipe = {"default:sign_wall_steel", "default:sign_wall_steel", "default:steel_ingot", "dye:white", "dye:black"} recipe = {"default:sign_wall_steel", "default:sign_wall_steel", "default:steel_ingot", "dye:white", "dye:black"}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_signals_ks:sign_8_0 2", output = "advtrains_signals_ks:sign_8_0 2",
type = "shapeless", type = "shapeless",
recipe = {"basic_signs:sign_wall_steel_white_black", "default:steel_ingot"} recipe = {"basic_signs:sign_wall_steel_white_black", "default:steel_ingot"}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_signals_ks:sign_8_0 2", output = "advtrains_signals_ks:sign_8_0 2",
recipe = {{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, recipe = {{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"dye:black", "default:steel_ingot", "dye:white"}} {"dye:black", "default:steel_ingot", "dye:white"}}
}) })
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains_signals_ks:sign_8_0 2", output = "advtrains_signals_ks:sign_8_0 2",
recipe = {{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, recipe = {{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
...@@ -292,7 +292,7 @@ for rot = 0, 3 do ...@@ -292,7 +292,7 @@ for rot = 0, 3 do
return "dye:red" return "dye:red"
end end
end end
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:across_off 2", output = "advtrains:across_off 2",
recipe = { recipe = {
{pos(3), "", pos(2)}, {pos(3), "", pos(2)},
...@@ -303,7 +303,7 @@ end ...@@ -303,7 +303,7 @@ end
-- add recipe with normal green for signal -- add recipe with normal green for signal
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "advtrains:signal_off 2", output = "advtrains:signal_off 2",
recipe = { recipe = {
{"", "dye:red", "default:steel_ingot"}, {"", "dye:red", "default:steel_ingot"},
......
kif = {} fsr = {}
local MP = minetest.get_modpath("kif_custom") local MP = minetest.get_modpath("fsr_custom")
-- utilities -- utilities
dofile(MP.."/util.lua") dofile(MP.."/util.lua")
......
kif.register_craft_if_items_exist({ fsr.register_craft_if_items_exist({
output = "digilines:lightsensor", output = "digilines:lightsensor",
recipe = { recipe = {
{"basic_materials:plastic_sheet", "xpanes:pane_flat", "basic_materials:plastic_sheet"}, {"basic_materials:plastic_sheet", "xpanes:pane_flat", "basic_materials:plastic_sheet"},