From 888b0ebfec8c2eff9015163549a7e47443cb8665 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 21:00:20 -0400 Subject: "explode" all modpacks into their individual components (you can't have a modpack buried inside a modpack) --- mesecons_lightstone/depends.txt | 2 + .../doc/lightstone_blue/description.html | 1 + .../doc/lightstone_blue/preview.png | Bin 0 -> 36865 bytes mesecons_lightstone/doc/lightstone_blue/recipe.png | Bin 0 -> 4403 bytes .../doc/lightstone_darkgrey/description.html | 1 + .../doc/lightstone_darkgrey/preview.png | Bin 0 -> 43641 bytes .../doc/lightstone_darkgrey/recipe.png | Bin 0 -> 4575 bytes .../doc/lightstone_green/description.html | 1 + .../doc/lightstone_green/preview.png | Bin 0 -> 48733 bytes .../doc/lightstone_green/recipe.png | Bin 0 -> 4597 bytes .../doc/lightstone_lightgrey/description.html | 1 + .../doc/lightstone_lightgrey/preview.png | Bin 0 -> 45430 bytes .../doc/lightstone_lightgrey/recipe.png | Bin 0 -> 4682 bytes .../doc/lightstone_red/description.html | 1 + mesecons_lightstone/doc/lightstone_red/preview.png | Bin 0 -> 32080 bytes mesecons_lightstone/doc/lightstone_red/recipe.png | Bin 0 -> 4009 bytes .../doc/lightstone_yellow/description.html | 1 + .../doc/lightstone_yellow/preview.png | Bin 0 -> 28281 bytes .../doc/lightstone_yellow/recipe.png | Bin 0 -> 4550 bytes mesecons_lightstone/init.lua | 60 +++++++++++++++++++++ .../textures/jeija_lightstone_blue_off.png | Bin 0 -> 260 bytes .../textures/jeija_lightstone_blue_on.png | Bin 0 -> 545 bytes .../textures/jeija_lightstone_darkgray_off.png | Bin 0 -> 447 bytes .../textures/jeija_lightstone_darkgray_on.png | Bin 0 -> 667 bytes .../textures/jeija_lightstone_gray_off.png | Bin 0 -> 452 bytes .../textures/jeija_lightstone_gray_on.png | Bin 0 -> 662 bytes .../textures/jeija_lightstone_green_off.png | Bin 0 -> 446 bytes .../textures/jeija_lightstone_green_on.png | Bin 0 -> 705 bytes .../textures/jeija_lightstone_red_off.png | Bin 0 -> 408 bytes .../textures/jeija_lightstone_red_on.png | Bin 0 -> 650 bytes .../textures/jeija_lightstone_yellow_off.png | Bin 0 -> 291 bytes .../textures/jeija_lightstone_yellow_on.png | Bin 0 -> 486 bytes 32 files changed, 68 insertions(+) create mode 100644 mesecons_lightstone/depends.txt create mode 100644 mesecons_lightstone/doc/lightstone_blue/description.html create mode 100644 mesecons_lightstone/doc/lightstone_blue/preview.png create mode 100644 mesecons_lightstone/doc/lightstone_blue/recipe.png create mode 100644 mesecons_lightstone/doc/lightstone_darkgrey/description.html create mode 100644 mesecons_lightstone/doc/lightstone_darkgrey/preview.png create mode 100644 mesecons_lightstone/doc/lightstone_darkgrey/recipe.png create mode 100644 mesecons_lightstone/doc/lightstone_green/description.html create mode 100644 mesecons_lightstone/doc/lightstone_green/preview.png create mode 100644 mesecons_lightstone/doc/lightstone_green/recipe.png create mode 100644 mesecons_lightstone/doc/lightstone_lightgrey/description.html create mode 100644 mesecons_lightstone/doc/lightstone_lightgrey/preview.png create mode 100644 mesecons_lightstone/doc/lightstone_lightgrey/recipe.png create mode 100644 mesecons_lightstone/doc/lightstone_red/description.html create mode 100644 mesecons_lightstone/doc/lightstone_red/preview.png create mode 100644 mesecons_lightstone/doc/lightstone_red/recipe.png create mode 100644 mesecons_lightstone/doc/lightstone_yellow/description.html create mode 100644 mesecons_lightstone/doc/lightstone_yellow/preview.png create mode 100644 mesecons_lightstone/doc/lightstone_yellow/recipe.png create mode 100644 mesecons_lightstone/init.lua create mode 100644 mesecons_lightstone/textures/jeija_lightstone_blue_off.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_blue_on.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_gray_off.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_gray_on.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_green_off.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_green_on.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_red_off.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_red_on.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_yellow_off.png create mode 100644 mesecons_lightstone/textures/jeija_lightstone_yellow_on.png (limited to 'mesecons_lightstone') diff --git a/mesecons_lightstone/depends.txt b/mesecons_lightstone/depends.txt new file mode 100644 index 0000000..f9705e0 --- /dev/null +++ b/mesecons_lightstone/depends.txt @@ -0,0 +1,2 @@ +mesecons +dye diff --git a/mesecons_lightstone/doc/lightstone_blue/description.html b/mesecons_lightstone/doc/lightstone_blue/description.html new file mode 100644 index 0000000..813e6ea --- /dev/null +++ b/mesecons_lightstone/doc/lightstone_blue/description.html @@ -0,0 +1 @@ +Effector, glows blue when powered. diff --git a/mesecons_lightstone/doc/lightstone_blue/preview.png b/mesecons_lightstone/doc/lightstone_blue/preview.png new file mode 100644 index 0000000..579f719 Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_blue/preview.png differ diff --git a/mesecons_lightstone/doc/lightstone_blue/recipe.png b/mesecons_lightstone/doc/lightstone_blue/recipe.png new file mode 100644 index 0000000..ce8ebd7 Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_blue/recipe.png differ diff --git a/mesecons_lightstone/doc/lightstone_darkgrey/description.html b/mesecons_lightstone/doc/lightstone_darkgrey/description.html new file mode 100644 index 0000000..826ca0f --- /dev/null +++ b/mesecons_lightstone/doc/lightstone_darkgrey/description.html @@ -0,0 +1 @@ +Effector, glows dark grey when powered. diff --git a/mesecons_lightstone/doc/lightstone_darkgrey/preview.png b/mesecons_lightstone/doc/lightstone_darkgrey/preview.png new file mode 100644 index 0000000..56fe6ea Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_darkgrey/preview.png differ diff --git a/mesecons_lightstone/doc/lightstone_darkgrey/recipe.png b/mesecons_lightstone/doc/lightstone_darkgrey/recipe.png new file mode 100644 index 0000000..fed0db2 Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_darkgrey/recipe.png differ diff --git a/mesecons_lightstone/doc/lightstone_green/description.html b/mesecons_lightstone/doc/lightstone_green/description.html new file mode 100644 index 0000000..cb5b515 --- /dev/null +++ b/mesecons_lightstone/doc/lightstone_green/description.html @@ -0,0 +1 @@ +Effector, glows green when powered. diff --git a/mesecons_lightstone/doc/lightstone_green/preview.png b/mesecons_lightstone/doc/lightstone_green/preview.png new file mode 100644 index 0000000..9efc774 Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_green/preview.png differ diff --git a/mesecons_lightstone/doc/lightstone_green/recipe.png b/mesecons_lightstone/doc/lightstone_green/recipe.png new file mode 100644 index 0000000..6690064 Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_green/recipe.png differ diff --git a/mesecons_lightstone/doc/lightstone_lightgrey/description.html b/mesecons_lightstone/doc/lightstone_lightgrey/description.html new file mode 100644 index 0000000..990b501 --- /dev/null +++ b/mesecons_lightstone/doc/lightstone_lightgrey/description.html @@ -0,0 +1 @@ +Effector, glows light grey when powered. diff --git a/mesecons_lightstone/doc/lightstone_lightgrey/preview.png b/mesecons_lightstone/doc/lightstone_lightgrey/preview.png new file mode 100644 index 0000000..0084fa3 Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_lightgrey/preview.png differ diff --git a/mesecons_lightstone/doc/lightstone_lightgrey/recipe.png b/mesecons_lightstone/doc/lightstone_lightgrey/recipe.png new file mode 100644 index 0000000..e790012 Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_lightgrey/recipe.png differ diff --git a/mesecons_lightstone/doc/lightstone_red/description.html b/mesecons_lightstone/doc/lightstone_red/description.html new file mode 100644 index 0000000..699b1ee --- /dev/null +++ b/mesecons_lightstone/doc/lightstone_red/description.html @@ -0,0 +1 @@ +Effector, glows red when powered. diff --git a/mesecons_lightstone/doc/lightstone_red/preview.png b/mesecons_lightstone/doc/lightstone_red/preview.png new file mode 100644 index 0000000..5fd3eba Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_red/preview.png differ diff --git a/mesecons_lightstone/doc/lightstone_red/recipe.png b/mesecons_lightstone/doc/lightstone_red/recipe.png new file mode 100644 index 0000000..7791a99 Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_red/recipe.png differ diff --git a/mesecons_lightstone/doc/lightstone_yellow/description.html b/mesecons_lightstone/doc/lightstone_yellow/description.html new file mode 100644 index 0000000..2bed7f2 --- /dev/null +++ b/mesecons_lightstone/doc/lightstone_yellow/description.html @@ -0,0 +1 @@ +Effector, glows yellow when powered. diff --git a/mesecons_lightstone/doc/lightstone_yellow/preview.png b/mesecons_lightstone/doc/lightstone_yellow/preview.png new file mode 100644 index 0000000..fb9f644 Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_yellow/preview.png differ diff --git a/mesecons_lightstone/doc/lightstone_yellow/recipe.png b/mesecons_lightstone/doc/lightstone_yellow/recipe.png new file mode 100644 index 0000000..f17e9d4 Binary files /dev/null and b/mesecons_lightstone/doc/lightstone_yellow/recipe.png differ diff --git a/mesecons_lightstone/init.lua b/mesecons_lightstone/init.lua new file mode 100644 index 0000000..da7cc41 --- /dev/null +++ b/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_lightstone/textures/jeija_lightstone_blue_off.png b/mesecons_lightstone/textures/jeija_lightstone_blue_off.png new file mode 100644 index 0000000..09acc22 Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_blue_off.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_blue_on.png b/mesecons_lightstone/textures/jeija_lightstone_blue_on.png new file mode 100644 index 0000000..93c8638 Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_blue_on.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png b/mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png new file mode 100644 index 0000000..7e5aae7 Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png b/mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png new file mode 100644 index 0000000..e6d4d00 Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_gray_off.png b/mesecons_lightstone/textures/jeija_lightstone_gray_off.png new file mode 100644 index 0000000..f168fc2 Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_gray_off.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_gray_on.png b/mesecons_lightstone/textures/jeija_lightstone_gray_on.png new file mode 100644 index 0000000..24c5470 Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_gray_on.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_green_off.png b/mesecons_lightstone/textures/jeija_lightstone_green_off.png new file mode 100644 index 0000000..2f214fa Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_green_off.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_green_on.png b/mesecons_lightstone/textures/jeija_lightstone_green_on.png new file mode 100644 index 0000000..225bf4e Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_green_on.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_red_off.png b/mesecons_lightstone/textures/jeija_lightstone_red_off.png new file mode 100644 index 0000000..3c828b2 Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_red_off.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_red_on.png b/mesecons_lightstone/textures/jeija_lightstone_red_on.png new file mode 100644 index 0000000..512b0fe Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_red_on.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_yellow_off.png b/mesecons_lightstone/textures/jeija_lightstone_yellow_off.png new file mode 100644 index 0000000..2e7fed0 Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_yellow_off.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_yellow_on.png b/mesecons_lightstone/textures/jeija_lightstone_yellow_on.png new file mode 100644 index 0000000..8943aca Binary files /dev/null and b/mesecons_lightstone/textures/jeija_lightstone_yellow_on.png differ -- cgit v1.2.3