summaryrefslogtreecommitdiff
path: root/mesecons_lamp
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:00:20 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:10:04 -0400
commit888b0ebfec8c2eff9015163549a7e47443cb8665 (patch)
tree915080159bfaa6ba6e226087c7ce0e8d5464b518 /mesecons_lamp
parentda66780a569712c23ae4f2996cfb4608a9f9d69d (diff)
downloaddreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.gz
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.bz2
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.xz
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.zip
"explode" all modpacks into their individual components
(you can't have a modpack buried inside a modpack)
Diffstat (limited to 'mesecons_lamp')
-rw-r--r--mesecons_lamp/depends.txt1
-rw-r--r--mesecons_lamp/doc/lamp/description.html1
-rw-r--r--mesecons_lamp/doc/lamp/preview.pngbin0 -> 34959 bytes
-rw-r--r--mesecons_lamp/doc/lamp/recipe.pngbin0 -> 4478 bytes
-rw-r--r--mesecons_lamp/init.lua61
-rw-r--r--mesecons_lamp/textures/jeija_meselamp.pngbin0 -> 260 bytes
-rw-r--r--mesecons_lamp/textures/jeija_meselamp_off.pngbin0 -> 253 bytes
-rw-r--r--mesecons_lamp/textures/jeija_meselamp_on.pngbin0 -> 307 bytes
8 files changed, 63 insertions, 0 deletions
diff --git a/mesecons_lamp/depends.txt b/mesecons_lamp/depends.txt
new file mode 100644
index 0000000..acaa924
--- /dev/null
+++ b/mesecons_lamp/depends.txt
@@ -0,0 +1 @@
+mesecons
diff --git a/mesecons_lamp/doc/lamp/description.html b/mesecons_lamp/doc/lamp/description.html
new file mode 100644
index 0000000..5bfe6c5
--- /dev/null
+++ b/mesecons_lamp/doc/lamp/description.html
@@ -0,0 +1 @@
+Lamps are effectors that if powered emit light.
diff --git a/mesecons_lamp/doc/lamp/preview.png b/mesecons_lamp/doc/lamp/preview.png
new file mode 100644
index 0000000..a581cb3
--- /dev/null
+++ b/mesecons_lamp/doc/lamp/preview.png
Binary files differ
diff --git a/mesecons_lamp/doc/lamp/recipe.png b/mesecons_lamp/doc/lamp/recipe.png
new file mode 100644
index 0000000..77570bd
--- /dev/null
+++ b/mesecons_lamp/doc/lamp/recipe.png
Binary files differ
diff --git a/mesecons_lamp/init.lua b/mesecons_lamp/init.lua
new file mode 100644
index 0000000..362453c
--- /dev/null
+++ b/mesecons_lamp/init.lua
@@ -0,0 +1,61 @@
+-- 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_lamp/textures/jeija_meselamp.png b/mesecons_lamp/textures/jeija_meselamp.png
new file mode 100644
index 0000000..5456ee9
--- /dev/null
+++ b/mesecons_lamp/textures/jeija_meselamp.png
Binary files differ
diff --git a/mesecons_lamp/textures/jeija_meselamp_off.png b/mesecons_lamp/textures/jeija_meselamp_off.png
new file mode 100644
index 0000000..67bd7fd
--- /dev/null
+++ b/mesecons_lamp/textures/jeija_meselamp_off.png
Binary files differ
diff --git a/mesecons_lamp/textures/jeija_meselamp_on.png b/mesecons_lamp/textures/jeija_meselamp_on.png
new file mode 100644
index 0000000..2316e00
--- /dev/null
+++ b/mesecons_lamp/textures/jeija_meselamp_on.png
Binary files differ