diff options
author | cheapie <no-email-for-you@example.com> | 2018-11-24 15:56:29 -0600 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2018-11-24 15:56:29 -0600 |
commit | 97765470fc876e73ad6f2e6b547bf2fc7233a562 (patch) | |
tree | df06fef7cc1babd41929e3a07ee6724565518a82 /conductors.lua | |
parent | 2711c0e80c5be9001917eedca727c5a14827addb (diff) | |
download | digistuff-97765470fc876e73ad6f2e6b547bf2fc7233a562.tar digistuff-97765470fc876e73ad6f2e6b547bf2fc7233a562.tar.gz digistuff-97765470fc876e73ad6f2e6b547bf2fc7233a562.tar.bz2 digistuff-97765470fc876e73ad6f2e6b547bf2fc7233a562.tar.xz digistuff-97765470fc876e73ad6f2e6b547bf2fc7233a562.zip |
Split components into their own files
Diffstat (limited to 'conductors.lua')
-rw-r--r-- | conductors.lua | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/conductors.lua b/conductors.lua new file mode 100644 index 0000000..77229e2 --- /dev/null +++ b/conductors.lua @@ -0,0 +1,62 @@ +minetest.register_node("digistuff:digimese", { + description = "Digimese", + tiles = {"digistuff_digimese.png"}, + paramtype = "light", + light_source = 3, + groups = {cracky = 3, level = 2}, + is_ground_content = false, + sounds = default and default.node_sound_stone_defaults(), + digiline = { wire = { 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}}}} +}) + +minetest.register_node("digistuff:junctionbox", { + description = "Digilines Junction Box", + tiles = {"digistuff_junctionbox.png"}, + paramtype = "light", + paramtype2 = "facedir", + groups = {cracky = 3}, + is_ground_content = false, + paramtype = "light", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.1,-0.15,0.35,0.1,0.15,0.5}, + } + }, + sounds = default and default.node_sound_stone_defaults(), + digiline = { + receptor = {}, + wire = { + rules = { + {x = 1,y = 0,z = 0}, + {x = -1,y = 0,z = 0}, + {x = 0,y = 0,z = 1}, + {x = 0,y = 0,z = -1}, + {x = 0,y = 1,z = 0}, + {x = 0,y = -1,z = 0}, + {x = 0,y = -2,z = 0}, + {x = 0,y = 2,z = 0}, + {x = -2,y = 0,z = 0}, + {x = 2,y = 0,z = 0}, + {x = 0,y = 0,z = -2}, + {x = 0,y = 0,z = 2}, + } + }, + }, +}) + +minetest.register_craft({ + output = "digistuff:junctionbox", + recipe = { + {"homedecor:plastic_sheeting","digilines:wire_std_00000000","homedecor:plastic_sheeting",}, + {"digilines:wire_std_00000000","digilines:wire_std_00000000","digilines:wire_std_00000000",}, + {"homedecor:plastic_sheeting","digilines:wire_std_00000000","homedecor:plastic_sheeting",}, + } +}) |