diff options
Diffstat (limited to 'mesecons/mesecons_lightstone')
32 files changed, 68 insertions, 0 deletions
diff --git a/mesecons/mesecons_lightstone/depends.txt b/mesecons/mesecons_lightstone/depends.txt new file mode 100644 index 0000000..f9705e0 --- /dev/null +++ b/mesecons/mesecons_lightstone/depends.txt @@ -0,0 +1,2 @@ +mesecons +dye diff --git a/mesecons/mesecons_lightstone/doc/lightstone_blue/description.html b/mesecons/mesecons_lightstone/doc/lightstone_blue/description.html new file mode 100644 index 0000000..813e6ea --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_blue/description.html @@ -0,0 +1 @@ +Effector, glows blue when powered. diff --git a/mesecons/mesecons_lightstone/doc/lightstone_blue/preview.png b/mesecons/mesecons_lightstone/doc/lightstone_blue/preview.png Binary files differnew file mode 100644 index 0000000..579f719 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_blue/preview.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_blue/recipe.png b/mesecons/mesecons_lightstone/doc/lightstone_blue/recipe.png Binary files differnew file mode 100644 index 0000000..ce8ebd7 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_blue/recipe.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_darkgrey/description.html b/mesecons/mesecons_lightstone/doc/lightstone_darkgrey/description.html new file mode 100644 index 0000000..826ca0f --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_darkgrey/description.html @@ -0,0 +1 @@ +Effector, glows dark grey when powered. diff --git a/mesecons/mesecons_lightstone/doc/lightstone_darkgrey/preview.png b/mesecons/mesecons_lightstone/doc/lightstone_darkgrey/preview.png Binary files differnew file mode 100644 index 0000000..56fe6ea --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_darkgrey/preview.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_darkgrey/recipe.png b/mesecons/mesecons_lightstone/doc/lightstone_darkgrey/recipe.png Binary files differnew file mode 100644 index 0000000..fed0db2 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_darkgrey/recipe.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_green/description.html b/mesecons/mesecons_lightstone/doc/lightstone_green/description.html new file mode 100644 index 0000000..cb5b515 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_green/description.html @@ -0,0 +1 @@ +Effector, glows green when powered. diff --git a/mesecons/mesecons_lightstone/doc/lightstone_green/preview.png b/mesecons/mesecons_lightstone/doc/lightstone_green/preview.png Binary files differnew file mode 100644 index 0000000..9efc774 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_green/preview.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_green/recipe.png b/mesecons/mesecons_lightstone/doc/lightstone_green/recipe.png Binary files differnew file mode 100644 index 0000000..6690064 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_green/recipe.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_lightgrey/description.html b/mesecons/mesecons_lightstone/doc/lightstone_lightgrey/description.html new file mode 100644 index 0000000..990b501 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_lightgrey/description.html @@ -0,0 +1 @@ +Effector, glows light grey when powered. diff --git a/mesecons/mesecons_lightstone/doc/lightstone_lightgrey/preview.png b/mesecons/mesecons_lightstone/doc/lightstone_lightgrey/preview.png Binary files differnew file mode 100644 index 0000000..0084fa3 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_lightgrey/preview.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_lightgrey/recipe.png b/mesecons/mesecons_lightstone/doc/lightstone_lightgrey/recipe.png Binary files differnew file mode 100644 index 0000000..e790012 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_lightgrey/recipe.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_red/description.html b/mesecons/mesecons_lightstone/doc/lightstone_red/description.html new file mode 100644 index 0000000..699b1ee --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_red/description.html @@ -0,0 +1 @@ +Effector, glows red when powered. diff --git a/mesecons/mesecons_lightstone/doc/lightstone_red/preview.png b/mesecons/mesecons_lightstone/doc/lightstone_red/preview.png Binary files differnew file mode 100644 index 0000000..5fd3eba --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_red/preview.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_red/recipe.png b/mesecons/mesecons_lightstone/doc/lightstone_red/recipe.png Binary files differnew file mode 100644 index 0000000..7791a99 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_red/recipe.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_yellow/description.html b/mesecons/mesecons_lightstone/doc/lightstone_yellow/description.html new file mode 100644 index 0000000..2bed7f2 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_yellow/description.html @@ -0,0 +1 @@ +Effector, glows yellow when powered. diff --git a/mesecons/mesecons_lightstone/doc/lightstone_yellow/preview.png b/mesecons/mesecons_lightstone/doc/lightstone_yellow/preview.png Binary files differnew file mode 100644 index 0000000..fb9f644 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_yellow/preview.png diff --git a/mesecons/mesecons_lightstone/doc/lightstone_yellow/recipe.png b/mesecons/mesecons_lightstone/doc/lightstone_yellow/recipe.png Binary files differnew file mode 100644 index 0000000..f17e9d4 --- /dev/null +++ b/mesecons/mesecons_lightstone/doc/lightstone_yellow/recipe.png diff --git a/mesecons/mesecons_lightstone/init.lua b/mesecons/mesecons_lightstone/init.lua new file mode 100644 index 0000000..da7cc41 --- /dev/null +++ b/mesecons/mesecons_lightstone/init.lua @@ -0,0 +1,60 @@ +local lightstone_rules = { + {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=-1}, + {x=0, y=-1, z=0}, +} + +function mesecon.lightstone_add(name, base_item, texture_off, texture_on) + minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_off", { + tiles = {texture_off}, + groups = {cracky=2, mesecon_effector_off = 1, mesecon = 2}, + description=name.." Lightstone", + sounds = default.node_sound_stone_defaults(), + mesecons = {effector = { + rules = lightstone_rules, + action_on = function (pos, node) + minetest.swap_node(pos, {name = "mesecons_lightstone:lightstone_" .. name .. "_on", param2 = node.param2}) + end, + }} + }) + minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_on", { + tiles = {texture_on}, + groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2}, + drop = "mesecons_lightstone:lightstone_" .. name .. "_off", + light_source = default.LIGHT_MAX-2, + sounds = default.node_sound_stone_defaults(), + mesecons = {effector = { + rules = lightstone_rules, + action_off = function (pos, node) + minetest.swap_node(pos, {name = "mesecons_lightstone:lightstone_" .. name .. "_off", param2 = node.param2}) + end, + }} + }) + + minetest.register_craft({ + output = "mesecons_lightstone:lightstone_" .. name .. "_off", + recipe = { + {"",base_item,""}, + {base_item,"default:torch",base_item}, + {"","group:mesecon_conductor_craftable",""} + } + }) +end + + +mesecon.lightstone_add("red", "dye:red", "jeija_lightstone_red_off.png", "jeija_lightstone_red_on.png") +mesecon.lightstone_add("green", "dye:green", "jeija_lightstone_green_off.png", "jeija_lightstone_green_on.png") +mesecon.lightstone_add("blue", "dye:blue", "jeija_lightstone_blue_off.png", "jeija_lightstone_blue_on.png") +mesecon.lightstone_add("gray", "dye:grey", "jeija_lightstone_gray_off.png", "jeija_lightstone_gray_on.png") +mesecon.lightstone_add("darkgray", "dye:dark_grey", "jeija_lightstone_darkgray_off.png", "jeija_lightstone_darkgray_on.png") +mesecon.lightstone_add("yellow", "dye:yellow", "jeija_lightstone_yellow_off.png", "jeija_lightstone_yellow_on.png") diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_off.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_off.png Binary files differnew file mode 100644 index 0000000..09acc22 --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_off.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_on.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_on.png Binary files differnew file mode 100644 index 0000000..93c8638 --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_on.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png Binary files differnew file mode 100644 index 0000000..7e5aae7 --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png Binary files differnew file mode 100644 index 0000000..e6d4d00 --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_off.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_off.png Binary files differnew file mode 100644 index 0000000..f168fc2 --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_off.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_on.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_on.png Binary files differnew file mode 100644 index 0000000..24c5470 --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_on.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_off.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_off.png Binary files differnew file mode 100644 index 0000000..2f214fa --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_off.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_on.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_on.png Binary files differnew file mode 100644 index 0000000..225bf4e --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_on.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_off.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_off.png Binary files differnew file mode 100644 index 0000000..3c828b2 --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_off.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_on.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_on.png Binary files differnew file mode 100644 index 0000000..512b0fe --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_on.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_off.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_off.png Binary files differnew file mode 100644 index 0000000..2e7fed0 --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_off.png diff --git a/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_on.png b/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_on.png Binary files differnew file mode 100644 index 0000000..8943aca --- /dev/null +++ b/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_on.png |