summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesecons_isolated/init.lua43
-rw-r--r--mesecons_textures/textures/jeija_isolated_wire_ends_off.pngbin0 -> 213 bytes
-rw-r--r--mesecons_textures/textures/jeija_isolated_wire_ends_on.pngbin0 -> 211 bytes
-rw-r--r--mesecons_textures/textures/jeija_isolated_wire_sides.pngbin0 -> 200 bytes
4 files changed, 41 insertions, 2 deletions
diff --git a/mesecons_isolated/init.lua b/mesecons_isolated/init.lua
index ad98ea8..f36dcc7 100644
--- a/mesecons_isolated/init.lua
+++ b/mesecons_isolated/init.lua
@@ -1,13 +1,52 @@
minetest.register_node("mesecons_isolated:isolated_on", {
+ drawtype = "nodebox",
description = "isolated mesecons",
- tiles = {"default_stone.png"},
+ tiles = {
+ "jeija_isolated_wire_sides.png",
+ "jeija_isolated_wire_sides.png",
+ "jeija_isolated_wire_ends_on.png",
+ "jeija_isolated_wire_ends_on.png",
+ "jeija_isolated_wire_sides.png",
+ "jeija_isolated_wire_sides.png"
+ },
+ paramtype = "light",
+ walkable = false,
+ stack_max = 99,
+ selection_box = {
+ type = "fixed",
+ fixed = { -16/32-0.001, -19/32, -5/32, 16/32+0.001, -11/32, 5/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, mesecon = 3, mesecon_conductor_craftable=1},
drop = "mesecons_isolated:isolated_off",
+
})
minetest.register_node("mesecons_isolated:isolated_off", {
+ drawtype = "nodebox",
description = "isolated mesecons",
- tiles = {"default_wood.png"},
+ tiles = {
+ "jeija_isolated_wire_sides.png",
+ "jeija_isolated_wire_sides.png",
+ "jeija_isolated_wire_ends_off.png",
+ "jeija_isolated_wire_ends_off.png",
+ "jeija_isolated_wire_sides.png",
+ "jeija_isolated_wire_sides.png"
+ },
+ paramtype = "light",
+ walkable = false,
+ stack_max = 99,
+ selection_box = {
+ type = "fixed",
+ fixed = { -16/32-0.001, -19/32, -5/32, 16/32+0.001, -11/32, 5/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, mesecon = 3, mesecon_conductor_craftable=1, not_in_creative_inventory = 1},
})
diff --git a/mesecons_textures/textures/jeija_isolated_wire_ends_off.png b/mesecons_textures/textures/jeija_isolated_wire_ends_off.png
new file mode 100644
index 0000000..2196fdf
--- /dev/null
+++ b/mesecons_textures/textures/jeija_isolated_wire_ends_off.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_isolated_wire_ends_on.png b/mesecons_textures/textures/jeija_isolated_wire_ends_on.png
new file mode 100644
index 0000000..1f127f1
--- /dev/null
+++ b/mesecons_textures/textures/jeija_isolated_wire_ends_on.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_isolated_wire_sides.png b/mesecons_textures/textures/jeija_isolated_wire_sides.png
new file mode 100644
index 0000000..db33f14
--- /dev/null
+++ b/mesecons_textures/textures/jeija_isolated_wire_sides.png
Binary files differ