From da66780a569712c23ae4f2996cfb4608a9f9d69d Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 20:02:19 -0400 Subject: copy all standard Dreambuilder mods in from the old subgame (exactly as last supplied there, updates to these mods will follow later) --- mesecons/mesecons_insulated/depends.txt | 1 + .../doc/insulated/description.html | 1 + .../mesecons_insulated/doc/insulated/preview.png | Bin 0 -> 44352 bytes .../mesecons_insulated/doc/insulated/recipe.png | Bin 0 -> 4679 bytes mesecons/mesecons_insulated/init.lua | 80 +++++++++++++++++++++ .../jeija_insulated_wire_crossing_tb_01.png | Bin 0 -> 305 bytes .../jeija_insulated_wire_crossing_tb_10.png | Bin 0 -> 270 bytes .../jeija_insulated_wire_crossing_tb_off.png | Bin 0 -> 293 bytes .../jeija_insulated_wire_crossing_tb_on.png | Bin 0 -> 209 bytes .../jeija_insulated_wire_curved_tb_off.png | Bin 0 -> 253 bytes .../textures/jeija_insulated_wire_curved_tb_on.png | Bin 0 -> 196 bytes .../textures/jeija_insulated_wire_ends_01x.png | Bin 0 -> 246 bytes .../textures/jeija_insulated_wire_ends_01z.png | Bin 0 -> 252 bytes .../textures/jeija_insulated_wire_ends_10x.png | Bin 0 -> 238 bytes .../textures/jeija_insulated_wire_ends_10z.png | Bin 0 -> 261 bytes .../textures/jeija_insulated_wire_ends_off.png | Bin 0 -> 142 bytes .../textures/jeija_insulated_wire_ends_on.png | Bin 0 -> 126 bytes .../textures/jeija_insulated_wire_sides_off.png | Bin 0 -> 200 bytes .../textures/jeija_insulated_wire_sides_on.png | Bin 0 -> 169 bytes .../jeija_insulated_wire_tjunction_tb_off.png | Bin 0 -> 244 bytes .../jeija_insulated_wire_tjunction_tb_on.png | Bin 0 -> 207 bytes 21 files changed, 82 insertions(+) create mode 100644 mesecons/mesecons_insulated/depends.txt create mode 100644 mesecons/mesecons_insulated/doc/insulated/description.html create mode 100644 mesecons/mesecons_insulated/doc/insulated/preview.png create mode 100644 mesecons/mesecons_insulated/doc/insulated/recipe.png create mode 100644 mesecons/mesecons_insulated/init.lua create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_01.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_10.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_off.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_on.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_curved_tb_off.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_curved_tb_on.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01x.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01z.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10x.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10z.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_off.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_on.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_off.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_on.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_tjunction_tb_off.png create mode 100644 mesecons/mesecons_insulated/textures/jeija_insulated_wire_tjunction_tb_on.png (limited to 'mesecons/mesecons_insulated') diff --git a/mesecons/mesecons_insulated/depends.txt b/mesecons/mesecons_insulated/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mesecons/mesecons_insulated/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mesecons/mesecons_insulated/doc/insulated/description.html b/mesecons/mesecons_insulated/doc/insulated/description.html new file mode 100644 index 0000000..df2a6df --- /dev/null +++ b/mesecons/mesecons_insulated/doc/insulated/description.html @@ -0,0 +1 @@ + Insulated mesecons are conductors that only conduct in one direction (and also not up or down). diff --git a/mesecons/mesecons_insulated/doc/insulated/preview.png b/mesecons/mesecons_insulated/doc/insulated/preview.png new file mode 100644 index 0000000..bf544e8 Binary files /dev/null and b/mesecons/mesecons_insulated/doc/insulated/preview.png differ diff --git a/mesecons/mesecons_insulated/doc/insulated/recipe.png b/mesecons/mesecons_insulated/doc/insulated/recipe.png new file mode 100644 index 0000000..f2a731a Binary files /dev/null and b/mesecons/mesecons_insulated/doc/insulated/recipe.png differ diff --git a/mesecons/mesecons_insulated/init.lua b/mesecons/mesecons_insulated/init.lua new file mode 100644 index 0000000..c6fc05e --- /dev/null +++ b/mesecons/mesecons_insulated/init.lua @@ -0,0 +1,80 @@ +function insulated_wire_get_rules(node) + local rules = {{x = 1, y = 0, z = 0}, + {x =-1, y = 0, z = 0}} + if node.param2 == 1 or node.param2 == 3 then + return mesecon.rotate_rules_right(rules) + end + return rules +end + +minetest.register_node("mesecons_insulated:insulated_on", { + drawtype = "nodebox", + description = "Insulated Mesecon", + tiles = { + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_ends_on.png", + "jeija_insulated_wire_ends_on.png", + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_sides_on.png" + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = { -16/32-0.001, -18/32, -7/32, 16/32+0.001, -12/32, 7/32 } + }, + node_box = { + type = "fixed", + fixed = { -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 } + }, + groups = {dig_immediate = 3, not_in_creative_inventory = 1}, + drop = "mesecons_insulated:insulated_off", + mesecons = {conductor = { + state = mesecon.state.on, + offstate = "mesecons_insulated:insulated_off", + rules = insulated_wire_get_rules + }} +}) + +minetest.register_node("mesecons_insulated:insulated_off", { + drawtype = "nodebox", + description = "Insulated Mesecon", + tiles = { + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_ends_off.png", + "jeija_insulated_wire_ends_off.png", + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_sides_off.png" + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = { -16/32-0.001, -18/32, -7/32, 16/32+0.001, -12/32, 7/32 } + }, + node_box = { + type = "fixed", + fixed = { -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 } + }, + groups = {dig_immediate = 3}, + mesecons = {conductor = { + state = mesecon.state.off, + onstate = "mesecons_insulated:insulated_on", + rules = insulated_wire_get_rules + }} +}) + +minetest.register_craft({ + output = "mesecons_insulated:insulated_off 3", + recipe = { + {"mesecons_materials:fiber", "mesecons_materials:fiber", "mesecons_materials:fiber"}, + {"mesecons:wire_00000000_off", "mesecons:wire_00000000_off", "mesecons:wire_00000000_off"}, + {"mesecons_materials:fiber", "mesecons_materials:fiber", "mesecons_materials:fiber"}, + } +}) diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_01.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_01.png new file mode 100644 index 0000000..d872b2b Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_01.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_10.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_10.png new file mode 100644 index 0000000..ae06dea Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_10.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_off.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_off.png new file mode 100644 index 0000000..41b5ff4 Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_off.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_on.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_on.png new file mode 100644 index 0000000..154288b Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_crossing_tb_on.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_curved_tb_off.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_curved_tb_off.png new file mode 100644 index 0000000..85ca90b Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_curved_tb_off.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_curved_tb_on.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_curved_tb_on.png new file mode 100644 index 0000000..772d9a6 Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_curved_tb_on.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01x.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01x.png new file mode 100644 index 0000000..b742152 Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01x.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01z.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01z.png new file mode 100644 index 0000000..497a467 Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01z.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10x.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10x.png new file mode 100644 index 0000000..d407cff Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10x.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10z.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10z.png new file mode 100644 index 0000000..830d390 Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10z.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_off.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_off.png new file mode 100644 index 0000000..89a8385 Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_off.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_on.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_on.png new file mode 100644 index 0000000..75cf435 Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_on.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_off.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_off.png new file mode 100644 index 0000000..db33f14 Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_off.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_on.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_on.png new file mode 100644 index 0000000..f76e9a8 Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_on.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_tjunction_tb_off.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_tjunction_tb_off.png new file mode 100644 index 0000000..a897b29 Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_tjunction_tb_off.png differ diff --git a/mesecons/mesecons_insulated/textures/jeija_insulated_wire_tjunction_tb_on.png b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_tjunction_tb_on.png new file mode 100644 index 0000000..8fc312b Binary files /dev/null and b/mesecons/mesecons_insulated/textures/jeija_insulated_wire_tjunction_tb_on.png differ -- cgit v1.2.3