diff options
Diffstat (limited to 'mesecons/mesecons_lamp')
-rw-r--r-- | mesecons/mesecons_lamp/depends.txt | 1 | ||||
-rw-r--r-- | mesecons/mesecons_lamp/doc/lamp/description.html | 1 | ||||
-rw-r--r-- | mesecons/mesecons_lamp/doc/lamp/preview.png | bin | 34959 -> 0 bytes | |||
-rw-r--r-- | mesecons/mesecons_lamp/doc/lamp/recipe.png | bin | 4478 -> 0 bytes | |||
-rw-r--r-- | mesecons/mesecons_lamp/init.lua | 61 | ||||
-rw-r--r-- | mesecons/mesecons_lamp/textures/jeija_meselamp.png | bin | 260 -> 0 bytes | |||
-rw-r--r-- | mesecons/mesecons_lamp/textures/jeija_meselamp_off.png | bin | 253 -> 0 bytes | |||
-rw-r--r-- | mesecons/mesecons_lamp/textures/jeija_meselamp_on.png | bin | 307 -> 0 bytes |
8 files changed, 0 insertions, 63 deletions
diff --git a/mesecons/mesecons_lamp/depends.txt b/mesecons/mesecons_lamp/depends.txt deleted file mode 100644 index acaa924..0000000 --- a/mesecons/mesecons_lamp/depends.txt +++ /dev/null @@ -1 +0,0 @@ -mesecons diff --git a/mesecons/mesecons_lamp/doc/lamp/description.html b/mesecons/mesecons_lamp/doc/lamp/description.html deleted file mode 100644 index 5bfe6c5..0000000 --- a/mesecons/mesecons_lamp/doc/lamp/description.html +++ /dev/null @@ -1 +0,0 @@ -Lamps are effectors that if powered emit light. diff --git a/mesecons/mesecons_lamp/doc/lamp/preview.png b/mesecons/mesecons_lamp/doc/lamp/preview.png Binary files differdeleted file mode 100644 index a581cb3..0000000 --- a/mesecons/mesecons_lamp/doc/lamp/preview.png +++ /dev/null diff --git a/mesecons/mesecons_lamp/doc/lamp/recipe.png b/mesecons/mesecons_lamp/doc/lamp/recipe.png Binary files differdeleted file mode 100644 index 77570bd..0000000 --- a/mesecons/mesecons_lamp/doc/lamp/recipe.png +++ /dev/null diff --git a/mesecons/mesecons_lamp/init.lua b/mesecons/mesecons_lamp/init.lua deleted file mode 100644 index 362453c..0000000 --- a/mesecons/mesecons_lamp/init.lua +++ /dev/null @@ -1,61 +0,0 @@ --- MESELAMPS --- A lamp is "is an electrical device used to create artificial light" (wikipedia) --- guess what? - -mesecon_lamp_box = { - type = "wallmounted", - wall_top = {-0.3125,0.375,-0.3125,0.3125,0.5,0.3125}, - wall_bottom = {-0.3125,-0.5,-0.3125,0.3125,-0.375,0.3125}, - wall_side = {-0.375,-0.3125,-0.3125,-0.5,0.3125,0.3125}, -} - -minetest.register_node("mesecons_lamp:lamp_on", { - drawtype = "nodebox", - tiles = {"jeija_meselamp_on.png"}, - paramtype = "light", - paramtype2 = "wallmounted", - legacy_wallmounted = true, - sunlight_propagates = true, - walkable = true, - light_source = default.LIGHT_MAX, - node_box = mesecon_lamp_box, - selection_box = mesecon_lamp_box, - groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon_effector_on = 1}, - drop="mesecons_lamp:lamp_off 1", - sounds = default.node_sound_glass_defaults(), - mesecons = {effector = { - action_off = function (pos, node) - minetest.swap_node(pos, {name = "mesecons_lamp:lamp_off", param2 = node.param2}) - end - }} -}) - -minetest.register_node("mesecons_lamp:lamp_off", { - drawtype = "nodebox", - tiles = {"jeija_meselamp_off.png"}, - inventory_image = "jeija_meselamp.png", - wield_image = "jeija_meselamp.png", - paramtype = "light", - paramtype2 = "wallmounted", - sunlight_propagates = true, - walkable = true, - node_box = mesecon_lamp_box, - selection_box = mesecon_lamp_box, - groups = {dig_immediate=3, mesecon_receptor_off = 1, mesecon_effector_off = 1}, - description="Meselamp", - sounds = default.node_sound_glass_defaults(), - mesecons = {effector = { - action_on = function (pos, node) - minetest.swap_node(pos, {name = "mesecons_lamp:lamp_on", param2 = node.param2}) - end - }} -}) - -minetest.register_craft({ - output = "mesecons_lamp:lamp_off 1", - recipe = { - {"", "default:glass", ""}, - {"group:mesecon_conductor_craftable", "default:steel_ingot", "group:mesecon_conductor_craftable"}, - {"", "default:glass", ""}, - } -}) diff --git a/mesecons/mesecons_lamp/textures/jeija_meselamp.png b/mesecons/mesecons_lamp/textures/jeija_meselamp.png Binary files differdeleted file mode 100644 index 5456ee9..0000000 --- a/mesecons/mesecons_lamp/textures/jeija_meselamp.png +++ /dev/null diff --git a/mesecons/mesecons_lamp/textures/jeija_meselamp_off.png b/mesecons/mesecons_lamp/textures/jeija_meselamp_off.png Binary files differdeleted file mode 100644 index 67bd7fd..0000000 --- a/mesecons/mesecons_lamp/textures/jeija_meselamp_off.png +++ /dev/null diff --git a/mesecons/mesecons_lamp/textures/jeija_meselamp_on.png b/mesecons/mesecons_lamp/textures/jeija_meselamp_on.png Binary files differdeleted file mode 100644 index 2316e00..0000000 --- a/mesecons/mesecons_lamp/textures/jeija_meselamp_on.png +++ /dev/null |