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_random/depends.txt | 1 + mesecons_random/doc/ghoststone/description.html | 1 + mesecons_random/doc/ghoststone/preview.png | Bin 0 -> 37157 bytes mesecons_random/doc/ghoststone/recipe.png | Bin 0 -> 23947 bytes mesecons_random/doc/removestone/description.html | 1 + mesecons_random/doc/removestone/preview.png | Bin 0 -> 90400 bytes mesecons_random/doc/removestone/recipe.png | Bin 0 -> 23165 bytes mesecons_random/init.lua | 85 +++++++++++++++++++++ mesecons_random/textures/jeija_ghoststone.png | Bin 0 -> 743 bytes mesecons_random/textures/jeija_ghoststone_inv.png | Bin 0 -> 777 bytes mesecons_random/textures/jeija_removestone.png | Bin 0 -> 743 bytes mesecons_random/textures/jeija_removestone_inv.png | Bin 0 -> 777 bytes 12 files changed, 88 insertions(+) create mode 100644 mesecons_random/depends.txt create mode 100644 mesecons_random/doc/ghoststone/description.html create mode 100644 mesecons_random/doc/ghoststone/preview.png create mode 100644 mesecons_random/doc/ghoststone/recipe.png create mode 100644 mesecons_random/doc/removestone/description.html create mode 100644 mesecons_random/doc/removestone/preview.png create mode 100644 mesecons_random/doc/removestone/recipe.png create mode 100644 mesecons_random/init.lua create mode 100644 mesecons_random/textures/jeija_ghoststone.png create mode 100644 mesecons_random/textures/jeija_ghoststone_inv.png create mode 100644 mesecons_random/textures/jeija_removestone.png create mode 100644 mesecons_random/textures/jeija_removestone_inv.png (limited to 'mesecons_random') diff --git a/mesecons_random/depends.txt b/mesecons_random/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mesecons_random/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mesecons_random/doc/ghoststone/description.html b/mesecons_random/doc/ghoststone/description.html new file mode 100644 index 0000000..138a2b3 --- /dev/null +++ b/mesecons_random/doc/ghoststone/description.html @@ -0,0 +1 @@ +Ghoststones disappear when powered, just like Removestones. But in contrast to Removestones, they Reappear again when not powered anymore and they are also conductive. diff --git a/mesecons_random/doc/ghoststone/preview.png b/mesecons_random/doc/ghoststone/preview.png new file mode 100644 index 0000000..4ab33fb Binary files /dev/null and b/mesecons_random/doc/ghoststone/preview.png differ diff --git a/mesecons_random/doc/ghoststone/recipe.png b/mesecons_random/doc/ghoststone/recipe.png new file mode 100644 index 0000000..3bd385d Binary files /dev/null and b/mesecons_random/doc/ghoststone/recipe.png differ diff --git a/mesecons_random/doc/removestone/description.html b/mesecons_random/doc/removestone/description.html new file mode 100644 index 0000000..d540fe9 --- /dev/null +++ b/mesecons_random/doc/removestone/description.html @@ -0,0 +1 @@ +Removestones are propably the simplest effectors possible. They simply disappear when powered. diff --git a/mesecons_random/doc/removestone/preview.png b/mesecons_random/doc/removestone/preview.png new file mode 100644 index 0000000..15caf3f Binary files /dev/null and b/mesecons_random/doc/removestone/preview.png differ diff --git a/mesecons_random/doc/removestone/recipe.png b/mesecons_random/doc/removestone/recipe.png new file mode 100644 index 0000000..f271963 Binary files /dev/null and b/mesecons_random/doc/removestone/recipe.png differ diff --git a/mesecons_random/init.lua b/mesecons_random/init.lua new file mode 100644 index 0000000..0136309 --- /dev/null +++ b/mesecons_random/init.lua @@ -0,0 +1,85 @@ +-- REMOVESTONE + +minetest.register_node("mesecons_random:removestone", { + tiles = {"jeija_removestone.png"}, + inventory_image = minetest.inventorycube("jeija_removestone_inv.png"), + groups = {cracky=3}, + description="Removestone", + sounds = default.node_sound_stone_defaults(), + mesecons = {effector = { + action_on = function (pos, node) + minetest.remove_node(pos) + mesecon.update_autoconnect(pos) + end + }} +}) + +minetest.register_craft({ + output = 'mesecons_random:removestone 4', + recipe = { + {"", "default:cobble", ""}, + {"default:cobble", "group:mesecon_conductor_craftable", "default:cobble"}, + {"", "default:cobble", ""}, + } +}) + +-- GHOSTSTONE + +minetest.register_node("mesecons_random:ghoststone", { + description="ghoststone", + tiles = {"jeija_ghoststone.png"}, + is_ground_content = true, + inventory_image = minetest.inventorycube("jeija_ghoststone_inv.png"), + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + mesecons = {conductor = { + state = mesecon.state.off, + rules = { --axes + {x = -1, y = 0, z = 0}, + {x = 1, y = 0, z = 0}, + {x = 0, y = -1, z = 0}, + {x = 0, y = 1, z = 0}, + {x = 0, y = 0, z = -1}, + {x = 0, y = 0, z = 1}, + }, + onstate = "mesecons_random:ghoststone_active" + }} +}) + +minetest.register_node("mesecons_random:ghoststone_active", { + drawtype = "airlike", + pointable = false, + walkable = false, + diggable = false, + sunlight_propagates = true, + paramtype = "light", + mesecons = {conductor = { + state = mesecon.state.on, + rules = { + {x = -1, y = 0, z = 0}, + {x = 1, y = 0, z = 0}, + {x = 0, y = -1, z = 0}, + {x = 0, y = 1, z = 0}, + {x = 0, y = 0, z = -1}, + {x = 0, y = 0, z = 1}, + }, + offstate = "mesecons_random:ghoststone" + }}, + on_construct = function(pos) + --remove shadow + pos2 = {x = pos.x, y = pos.y + 1, z = pos.z} + if ( minetest.get_node(pos2).name == "air" ) then + minetest.dig_node(pos2) + end + end +}) + + +minetest.register_craft({ + output = 'mesecons_random:ghoststone 4', + recipe = { + {"default:steel_ingot", "default:cobble", "default:steel_ingot"}, + {"default:cobble", "group:mesecon_conductor_craftable", "default:cobble"}, + {"default:steel_ingot", "default:cobble", "default:steel_ingot"}, + } +}) diff --git a/mesecons_random/textures/jeija_ghoststone.png b/mesecons_random/textures/jeija_ghoststone.png new file mode 100644 index 0000000..1917b7c Binary files /dev/null and b/mesecons_random/textures/jeija_ghoststone.png differ diff --git a/mesecons_random/textures/jeija_ghoststone_inv.png b/mesecons_random/textures/jeija_ghoststone_inv.png new file mode 100644 index 0000000..c715d7f Binary files /dev/null and b/mesecons_random/textures/jeija_ghoststone_inv.png differ diff --git a/mesecons_random/textures/jeija_removestone.png b/mesecons_random/textures/jeija_removestone.png new file mode 100644 index 0000000..1917b7c Binary files /dev/null and b/mesecons_random/textures/jeija_removestone.png differ diff --git a/mesecons_random/textures/jeija_removestone_inv.png b/mesecons_random/textures/jeija_removestone_inv.png new file mode 100644 index 0000000..c715d7f Binary files /dev/null and b/mesecons_random/textures/jeija_removestone_inv.png differ -- cgit v1.2.3