123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802 |
- minetest.register_craftitem("meseconductors:lamp_controller", {
- description = "Lamp Controller",
- inventory_image = "meseconductors_lamp_controller.png",
- })
- if minetest.get_modpath("technic") then
- minetest.register_craft({
- output = "meseconductors:lamp_controller",
- recipe = {
- { "mesecons_torch:mesecon_torch_on", "technic:control_logic_unit", "mesecons_torch:mesecon_torch_on"},
- { "", "mesecons:mesecon", ""}
- },
- })
- else
- minetest.register_craft({
- output = "meseconductors:lamp_controller",
- recipe = {
- { "mesecons_torch:mesecon_torch_on", "mesecons_luacontroller:luacontroller0000", "mesecons_torch:mesecon_torch_on"},
- { "", "mesecons:mesecon", ""}
- },
- })
- end
- lamp_box = {
- type = "wallmounted",
- wall_top = {-0.3275,0.375,-0.3275,0.3275,0.5,0.3275},
- wall_bottom = {-0.3275,-0.5,-0.3275,0.3275,-0.375,0.3275},
- wall_side = {-0.375,-0.3275,-0.3275,-0.5,0.3275,0.3275},
- }
- rules_all =
- {{x=0, y=0, z=-1},
- {x=1, y=0, z=0},
- {x=-1, y=0, z=0},
- {x=0, y=0, z=1},
- {x=1, y=1, z=0},
- {x=1, y=-1, z=0},
- {x=-1, y=1, z=0},
- {x=-1, y=-1, z=0},
- {x=0, y=1, z=1},
- {x=0, y=-1, z=1},
- {x=0, y=1, z=-1},
- {x=0, y=1, z=0},
- {x=0, y=-1, z=0},
- {x=0, y=-1, z=-1}}
- -- Node Definition
- --to do: rename .obj and texture
- minetest.register_node("meseconductors:mese_light_off", {
- drawtype = "mesh",
- mesh = "meseconductors_wall_lamp.obj",
- tiles = {"meseconductors_wall_lamp.png"},
- groups = {cracky=3},
- paramtype = "light",
- paramtype2 = "wallmounted",
- description = "Wall / Ceiling Lamp",
- selection_box = lamp_box,
- walkable = false,
- mesecons = {effector = {
- rules = rules_all,
- action_on = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:mese_light_on", param2 = node.param2})
- --on_place = minetest.rotate_node
- end,
- }}
- })
- --to do: rename .obj and texture
- minetest.register_node("meseconductors:mese_light_on", {
- drawtype = "mesh",
- mesh = "meseconductors_wall_lamp.obj",
- tiles = {"meseconductors_wall_lamp_on.png"},
- groups = {cracky=3, not_in_creative_inventory=1},
- paramtype = "light",
- paramtype2 = "wallmounted",
- description = "Wall / Ceiling Lamp (On !!)",
- selection_box = lamp_box,
- walkable = false,
- --on_place = minetest.rotate_node,
- light_source = 15,
- drop = "meseconductors:mese_light_off",
- mesecons = {effector = {
- rules = rules_all,
- action_off = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:mese_light_off", param2 = node.param2})
- end,
- }}
- })
- rules_lamp_standing =
- {{x=0, y=-1, z=0},
- {x=1, y=0, z=0},
- {x=-1, y=0, z=0},
- {x=0, y=0, z=-1},
- {x=0, y=0, z=1}}
- rules_lamp_side =
- {{x=1, y=0, z=0},
- {x=-1, y=0, z=0},
- {x=0, y=0, z=-1},
- {x=0, y=0, z=1}}
- minetest.register_node("meseconductors:sphere_lamp_standing_off", {
- drawtype = "mesh",
- mesh = "meseconductors_sphere_lamp_standing.obj",
- tiles = {"meseconductors_sphere_lamp_standing.png"},
- groups = {cracky=3},
- paramtype = "light",
- description = "Sphere Lamp",
- use_texture_alpha = true,
- selection_box = {
- type = "fixed",
- fixed = {-0.1200,-0.5,-0.1200,0.1200,0.185,0.1200},
- },
- walkable = false,
- mesecons = {effector = {
- rules = rules_lamp_standing,
- action_on = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:sphere_lamp_standing_on", param2 = node.param2})
- --on_place = minetest.rotate_node
- end,
- }}
- })
- minetest.register_node("meseconductors:sphere_lamp_standing_on", {
- drawtype = "mesh",
- mesh = "meseconductors_sphere_lamp_standing.obj",
- tiles = {"meseconductors_sphere_lamp_standing.png"},
- groups = {cracky=3, not_in_creative_inventory=1},
- paramtype = "light",
- description = "Sphere Lamp (On)",
- use_texture_alpha = true,
- selection_box = {
- type = "fixed",
- fixed = {-0.1200,-0.5,-0.1200,0.1200,0.185,0.1200},
- },
- walkable = false,
- light_source = 12,
- on_place = minetest.rotate_node,
- drop = "meseconductors:sphere_lamp_standing_off",
- mesecons = {effector = {
- rules = rules_lamp_standing,
- action_off = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:sphere_lamp_standing_off", param2 = node.param2})
- --on_place = minetest.rotate_node
- end,
- }}
- })
- minetest.register_node("meseconductors:sphere_lamp_standing_tall_off", {
- drawtype = "mesh",
- mesh = "meseconductors_sphere_lamp_standing2.obj",
- tiles = {"meseconductors_sphere_lamp_standing.png"},
- groups = {cracky=3},
- paramtype = "light",
- description = "Sphere Lamp",
- use_texture_alpha = true,
- selection_box = {
- type = "fixed",
- fixed = {-0.1200,-0.5,-0.1200,0.1200,0.660,0.1200},
- },
- walkable = false,
- mesecons = {effector = {
- rules = rules_lamp_standing,
- action_on = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:sphere_lamp_standing_tall_on", param2 = node.param2})
- --on_place = minetest.rotate_node
- end,
- }}
- })
- minetest.register_node("meseconductors:sphere_lamp_standing_tall_on", {
- drawtype = "mesh",
- mesh = "meseconductors_sphere_lamp_standing2.obj",
- tiles = {"meseconductors_sphere_lamp_standing.png"},
- groups = {cracky=3, not_in_creative_inventory=1},
- paramtype = "light",
- description = "Sphere Lamp (On)",
- use_texture_alpha = true,
- selection_box = {
- type = "fixed",
- fixed = {-0.1200,-0.5,-0.1200,0.1200,0.660,0.1200},
- },
- walkable = false,
- light_source = 12,
- on_place = minetest.rotate_node,
- drop = "meseconductors:sphere_lamp_standing_tall_off",
- mesecons = {effector = {
- rules = rules_lamp_standing,
- action_off = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:sphere_lamp_standing_tall_off", param2 = node.param2})
- --on_place = minetest.rotate_node
- end,
- }}
- })
- minetest.register_node("meseconductors:sphere_lamp_wall_off", {
- description = "Sphere Lamp",
- drawtype = "mesh",
- mesh = "meseconductors_sphere_lamp_wall.obj",
- tiles = {"meseconductors_sphere_lamp_standing.png"},
- use_texture_alpha = true,
- groups = {cracky=3},
- paramtype = "light",
- paramtype2 = "facedir",
- --on_place = minetest.rotate_node,
- selection_box = {
- type = "fixed",
- fixed = {-0.17,-0.26,-0.08,0.17,0.4,0.5},
- },
- walkable = false,
- mesecons = {effector = {
- rules = rules_lamp_side,
- action_on = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:sphere_lamp_wall_on", param2 = node.param2})
- end,
- }}
- })
- minetest.register_node("meseconductors:sphere_lamp_wall_on", {
- description = "Sphere Lamp (On)",
- drawtype = "mesh",
- mesh = "meseconductors_sphere_lamp_wall.obj",
- tiles = {"meseconductors_sphere_lamp_standing.png"},
- use_texture_alpha = true,
- groups = {cracky=3, not_in_creative_inventory=1},
- paramtype = "light",
- paramtype2 = "facedir",
- selection_box = {
- type = "fixed",
- fixed = {-0.17,-0.26,-0.08,0.17,0.4,0.5},
- },
- walkable = false,
- light_source = 12,
- --on_place = minetest.rotate_node,
- drop = "meseconductors:sphere_lamp_wall_off",
- mesecons = {effector = {
- rules = rules_lamp_side,
- action_off = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:sphere_lamp_wall_off", param2 = node.param2})
- end,
- }}
- })
- minetest.register_node("meseconductors:diamond_lamp_off", {
- description = "Diamond Lamp",
- drawtype = "mesh",
- mesh = "meseconductors_diamond_lamp.obj",
- tiles = {"meseconductors_diamond_lamp.png"},
- groups = {cracky=3},
- paramtype = "light",
- mesecons = {effector = {
- rules = rules_all,
- action_on = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:diamond_lamp_on", param2 = node.param2})
- end,
- }}
- })
- minetest.register_node("meseconductors:diamond_lamp_on", {
- description = "Diamond Lamp",
- drawtype = "mesh",
- mesh = "meseconductors_diamond_lamp.obj",
- tiles = {"meseconductors_diamond_lamp_on.png"},
- groups = {cracky=3, not_in_creative_inventory=1},
- paramtype = "light",
- light_source = 14,
- drop = "meseconductors:diamond_lamp_off",
- mesecons = {effector = {
- rules = rules_all,
- action_off = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:diamond_lamp_off", param2 = node.param2})
- end,
- }}
- })
- minetest.register_node("meseconductors:garden_lamp_off", {
- description = "Garden Lamp",
- drawtype = "mesh",
- mesh = "meseconductors_garden_lamp.obj",
- tiles = {"meseconductors_garden_lamp.png"},
- groups = {cracky=3},
- paramtype = "light",
- paramtype2 = "facedir",
- walkable = false,
- selection_box = {
- type = "fixed",
- fixed = {-0.1500,-0.5,-0.1500,0.1500,-0.1,0.1500},
- },
- mesecons = {effector = {
- rules = rules_lamp_standing,
- action_on = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:garden_lamp_on", param2 = node.param2})
- end,
- }}
- })
- minetest.register_node("meseconductors:garden_lamp_on", {
- description = "Garden Lamp (on)",
- drawtype = "mesh",
- mesh = "meseconductors_garden_lamp.obj",
- tiles = {"meseconductors_garden_lamp_on.png"},
- groups = {cracky=3, not_in_creative_inventory=1},
- paramtype = "light",
- paramtype2 = "facedir",
- walkable = false,
- selection_box = {
- type = "fixed",
- fixed = {-0.1500,-0.5,-0.1500,0.1500,-0.1,0.1500},
- },
- light_source = 12,
- drop = "meseconductors:garden_lamp_off",
- mesecons = {effector = {
- rules = rules_lamp_standing,
- action_off = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:garden_lamp_off", param2 = node.param2})
- end,
- }}
- })
- minetest.register_craft({
- output = "meseconductors:mese_light_off 2",
- recipe = {
- { "default:glass", "default:glass", "default:glass"},
- { "group:wood", "default:torch", "group:wood"},
- { "", "meseconductors:lamp_controller", ""}
- },
- })
- if minetest.get_modpath("homedecor") then
- minetest.register_craft({
- output = "meseconductors:sphere_lamp_standing_off 2",
- recipe = {
- { "default:glass", "default:torch", "default:glass"},
- { "", "homedecor:pole_wrought_iron", ""},
- { "homedecor:plastic_sheeting", "meseconductors:lamp_controller", "homedecor:plastic_sheeting"}
- },
- })
- minetest.register_craft({
- output = "meseconductors:diamond_lamp_off",
- recipe = {
- { "default:steel_ingot", "default:diamond", "default:obsidian_glass"},
- { "default:diamond", "homedecor:power_crystal", "default:diamond"},
- { "default:obsidian_glass", "meseconductors:lamp_controller", "default:steel_ingot"}
- },
- })
- minetest.register_craft({
- output = "meseconductors:garden_lamp_off 6",
- recipe = {
- { "default:obsidian_shard", "homedecor:glowlight_small_cube", "default:obsidian_shard"},
- { "", "default:steel_ingot", ""},
- { "", "meseconductors:lamp_controller", ""}
- },
- })
- minetest.register_craft({
- output = "meseconductors:sphere_lamp_standing_tall_off",
- recipe = {
- {"meseconductors:sphere_lamp_standing_off"},
- {"homedecor:pole_wrought_iron"}
- },
- })
- else
- minetest.register_craft({
- output = "meseconductors:sphere_lamp_standing_off 2",
- recipe = {
- { "default:glass", "default:torch", "default:glass"},
- { "", "default:steel_ingot", ""},
- { "default:paper", "meseconductors:lamp_controller", "default:paper"}
- },
- })
- minetest.register_craft({
- output = "meseconductors:sphere_lamp_standing_tall_off",
- recipe = {
- {"meseconductors:sphere_lamp_standing_off"},
- {"default:steel_ingot"}
- },
- })
- minetest.register_craft({
- output = "meseconductors:diamond_lamp_off",
- recipe = {
- { "default:steel_ingot", "default:diamond", "default:obsidian_glass"},
- { "default:diamond", "default:torch", "default:diamond"},
- { "default:obsidian_glass", "meseconductors:lamp_controller", "default:steel_ingot"}
- },
- })
- minetest.register_craft({
- output = "meseconductors:garden_lamp_off 6",
- recipe = {
- { "default:obsidian_shard", "default:torch", "default:obsidian_shard"},
- { "", "default:steel_ingot", ""},
- { "", "meseconductors:lamp_controller", ""}
- },
- })
- end
- minetest.register_craft({
- output = "meseconductors:sphere_lamp_wall_off",
- recipe = {
- {"default:steel_ingot", "meseconductors:sphere_lamp_standing_off"}
- },
- })
- function meseconductors:register_lamp(mod, node)
- if minetest.get_modpath(mod) then
-
- local node2 = node
- if minetest.registered_nodes[mod ..":"..node] == nil then
- print("[Meseconductors] - Warning: The mod " .. mod .." has no node ".. node .. " (anymore?)")
- return false
- end
-
- local offstate = "meseconductors:"..mod.."_"..node .. "_off"
- local onstate = "meseconductors:"..mod.."_"..node
- local description = minetest.registered_nodes[mod ..":"..node].description .. " (mesecons)"
- local description_on = minetest.registered_nodes[mod ..":"..node].description .. " (mesecons on)"
- local tiles = minetest.registered_nodes[mod ..":"..node].tiles
- local overlay_tiles = minetest.registered_nodes[mod ..":"..node].overlay_tiles
- local groups = table.copy(minetest.registered_nodes[mod ..":"..node].groups)
- if node == "lava_source" then
- groups = {snappy=3}
- description = "Fake Lava Source"
- description_on = "Fake Lava Source"
- end
- if node == "corium_source" then
- groups = {snappy=3}
- description = "Chernobylite Lamp"
- description_on = "Chernobylite Lamp"
- end
- local use_texture_alpha = minetest.registered_nodes[mod ..":"..node].use_texture_alpha
- local palette = minetest.registered_nodes[mod ..":"..node].palette
- local after_place_node = minetest.registered_nodes[mod ..":"..node].after_place_node
- local drawtype = minetest.registered_nodes[mod ..":"..node].drawtype
- local paramtype = minetest.registered_nodes[mod ..":"..node].paramtype
- local paramtype2 = minetest.registered_nodes[mod ..":"..node].paramtype2
- local sounds = minetest.registered_nodes[mod ..":"..node].sounds
- local sunlight_propagates = minetest.registered_nodes[mod ..":"..node].sunlight_propagates
- local light_source = minetest.registered_nodes[mod ..":"..node].light_source
- local selection_box = minetest.registered_nodes[mod ..":"..node].selection_box
- local collision_box = minetest.registered_nodes[mod ..":"..node].collision_box
- local node_box = minetest.registered_nodes[mod ..":"..node].node_box
- local on_place = minetest.registered_nodes[mod ..":"..node].on_place
- local mesh = minetest.registered_nodes[mod ..":"..node].mesh
- local wield_image = minetest.registered_nodes[mod ..":"..node].wield_image
- local inventory_image = minetest.registered_nodes[mod ..":"..node].inventory_image
- local walkable = minetest.registered_nodes[mod ..":"..node].walkable
- minetest.register_node(offstate, {
- tiles = tiles,
- overlay_tiles = overlay_tiles,
- description = description,
- use_texture_alpha = use_texture_alpha,
- drawtype = drawtype,
- paramtype = paramtype,
- paramtype2 = paramtype2,
- groups = groups,
- sounds = sounds,
- sunlight_propagates = sunlight_propagates,
- selection_box = selection_box,
- collision_box = collision_box,
- node_box = node_box,
- on_place = on_place,
- mesh = mesh,
- wield_image = wield_image,
- inventory_image = inventory_image,
- walkable = walkable,
- palette = palette,
- after_place_node = after_place_node,
- mesecons = {effector = {
- rules = rules_all,
- action_on = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:"..mod.."_"..node2, param2 = node.param2})
- end,
- }}
- })
- local groups_on = table.copy(groups)
- groups_on["not_in_creative_inventory"] = 1
- minetest.register_node(onstate, {
- tiles = tiles,
- overlay_tiles = overlay_tiles,
- drop = offstate,
- description = description_on,
- use_texture_alpha = use_texture_alpha,
- drawtype = drawtype,
- groups = groups_on,
- paramtype = paramtype,
- paramtype2 = paramtype2,
- sounds = sounds,
- selection_box = selection_box,
- collision_box = collision_box,
- node_box = node_box,
- on_place = on_place,
- mesh = mesh,
- wield_image = wield_image,
- inventory_image = inventory_image,
- sunlight_propagates = sunlight_propagates,
- light_source = light_source,
- walkable = walkable,
- palette = palette,
- after_place_node = after_place_node,
- mesecons = {effector = {
- rules = rules_all,
- action_off = function (pos, node)
- minetest.swap_node(pos, {name = "meseconductors:"..mod.."_"..node2.."_off", param2 = node.param2})
- end,
- }}
- })
- end
- end
- meseconductors:register_lamp("default", "meselamp")
- meseconductors:register_lamp("default", "mese_post_light")
- meseconductors:register_lamp("ethereal", "glostone")
- meseconductors:register_lamp("homedecor", "glowlight_half")
- meseconductors:register_lamp("homedecor", "glowlight_quarter")
- meseconductors:register_lamp("homedecor", "glowlight_small_cube")
- meseconductors:register_lamp("homedecor", "lattice_lantern_large")
- meseconductors:register_lamp("homedecor", "lattice_lantern_small")
- meseconductors:register_lamp("homedecor", "ceiling_lamp")
- meseconductors:register_lamp("default", "lava_source")
- meseconductors:register_lamp("technic", "corium_source")
- meseconductors:register_lamp("castle", "light")
- minetest.register_craft({
- output = "meseconductors:default_lava_source_off",
- recipe = {
- { "", "default:obsidian_glass", ""},
- { "default:obsidian_glass", "bucket:bucket_lava", "default:obsidian_glass"},
- { "", "default:obsidian_glass", ""},
- },
- replacements = {
- {"bucket:bucket_lava", "bucket:bucket_empty"}
- }
- })
- if minetest.get_modpath("technic") then
- minetest.register_craft({
- output = "meseconductors:technic_corium_source_off",
- recipe = {
- { "", "technic:uranium_ingot", ""},
- { "technic:uranium_ingot", "bucket:bucket_lava", "technic:uranium_ingot"},
- { "", "technic:uranium_ingot", ""},
- },
- replacements = {
- {"bucket:bucket_lava", "bucket:bucket_empty"}
- }
- })
- minetest.register_craft({
- output = "meseconductors:technic_corium_source_off",
- recipe = {
- { "", "default:glass", ""},
- { "default:glass", "technic:bucket_corium", "default:glass"},
- { "", "default:glass", ""},
- },
- replacements = {
- {"bucket_corium", "bucket:bucket_empty"}
- }
- })
- end
- minetest.register_craft({
- output = "meseconductors:default_meselamp_off",
- recipe = {
- { "default:glass", "meseconductors:lamp_controller"},
- { "default:mese_crystal", ""}
- },
- })
- minetest.register_craft({
- output = "meseconductors:default_mese_post_light_off",
- type = "shapeless",
- recipe = {"default:mese_post_light", "meseconductors:lamp_controller"},
- })
- minetest.register_craft({
- output = "meseconductors:default_mese_post_light_off",
- recipe = {
- { "meseconductors:lamp_controller", "default:glass", ""},
- { "default:mese_crystal", "default:mese_crystal", "default:mese_crystal"},
- { "", "group:wood", ""}
- },
- })
- minetest.register_craft({
- output = "meseconductors:default_meselamp_off",
- type = "shapeless",
- recipe = {"default:meselamp", "meseconductors:lamp_controller"},
- })
- if minetest.get_modpath("ethereal") then
- minetest.register_craft({
- output = "meseconductors:ethereal_glostone_off",
- recipe = {
- { "default:torch", "default:stone", "dye:yellow"},
- { "", "meseconductors:lamp_controller", ""}
- },
- })
- minetest.register_craft({
- output = "meseconductors:ethereal_glostone_off",
- type = "shapeless",
- recipe = {"ethereal:glostone", "meseconductors:lamp_controller"},
- })
- end
- if minetest.get_modpath("castle") then
- minetest.register_craft({
- output = "meseconductors:castle_light_off",
- recipe = {
- { "default:stick", "default:glass", "default:stick"},
- { "default:glass", "default:torch", "default:glass"},
- { "default:stick", "meseconductors:lamp_controller", "default:stick"}
- },
- })
- minetest.register_craft({
- output = "meseconductors:castle_light_off",
- type = "shapeless",
- recipe = {"castle:light", "meseconductors:lamp_controller"},
- })
- end
- if minetest.get_modpath("homedecor") then
- minetest.register_craft({
- output = "meseconductors:homedecor_glowlight_half_off 6",
- recipe = {
- { "dye:white", "dye:white", "dye:white"},
- { "default:glass", "homedecor:power_crystal", "default:glass"},
- { "", "meseconductors:lamp_controller", ""}
- },
- })
- minetest.register_craft({
- output = "meseconductors:homedecor_glowlight_half_off",
- type = "shapeless",
- recipe = {"homedecor:glowlight_half", "meseconductors:lamp_controller"},
- })
- minetest.register_craft({
- output = "meseconductors:homedecor_glowlight_quarter_off",
- type = "shapeless",
- recipe = {"homedecor:glowlight_quarter", "meseconductors:lamp_controller"},
- })
- minetest.register_craft({
- output = "meseconductors:homedecor_glowlight_small_cube_off",
- type = "shapeless",
- recipe = {"homedecor:glowlight_small_cube", "meseconductors:lamp_controller"},
- })
- minetest.register_craft({
- output = "meseconductors:homedecor_glowlight_small_cube_off 8",
- recipe = {
- { "", "", ""},
- { "default:glass", "homedecor:power_crystal", "default:glass"},
- { "dye:white", "meseconductors:lamp_controller", "dye:white"}
- },
- })
- minetest.register_craft({
- output = "meseconductors:homedecor_lattice_lantern_large_off 2",
- recipe = {
- { "dye:black", "dye:yellow", "dye:black"},
- { "default:stick", "meseconductors:lamp_controller", "default:stick"},
- { "default:stick", "homedecor:power_crystal", "default:stick"}
- },
- })
- minetest.register_craft({
- output = "meseconductors:homedecor_lattice_lantern_large_off",
- type = "shapeless",
- recipe = {"homedecor:lattice_lantern_large", "meseconductors:lamp_controller"},
- })
- minetest.register_craft({
- output = "meseconductors:homedecor_lattice_lantern_small_off",
- type = "shapeless",
- recipe = {"homedecor:lattice_lantern_small", "meseconductors:lamp_controller"},
- })
- minetest.register_craft({
- output = "meseconductors:homedecor_lattice_lantern_small_off 8",
- recipe = {
- { "dye:black", "dye:yellow", "dye:black"},
- { "default:stick", "meseconductors:lamp_controller", "default:stick"},
- { "default:glass", "homedecor:power_crystal", "default:glass"}
- },
- })
- minetest.register_craft({
- output = "meseconductors:homedecor_ceiling_lamp_off",
- recipe = {
- { "", "chains:chain_top_brass", ""},
- { "default:glass", "meseconductors:homedecor_glowlight_small_cube_off", "default:glass"}
- },
- })
- minetest.register_craft({
- output = "meseconductors:homedecor_ceiling_lamp_off",
- type = "shapeless",
- recipe = {"homedecor:ceiling_lamp", "meseconductors:lamp_controller"},
- })
- if minetest.get_modpath("technic") then
- minetest.register_craft({
- output = "meseconductors:homedecor_ceiling_lamp_off",
- recipe = {
- { "", "technic:brass_ingot", ""},
- { "", "homedecor:chainlink_brass", ""},
- { "default:glass", "meseconductors:homedecor_glowlight_small_off", "default:glass"}
- },
- })
- end
- end
|