summaryrefslogtreecommitdiff
path: root/mesecons_delayer
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_delayer')
-rw-r--r--mesecons_delayer/init.lua112
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_off_1.pngbin600 -> 244 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_off_2.pngbin593 -> 249 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_off_3.pngbin594 -> 245 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_off_4.pngbin589 -> 243 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_on_1.pngbin603 -> 243 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_on_2.pngbin596 -> 245 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_on_3.pngbin598 -> 244 bytes
-rw-r--r--mesecons_delayer/textures/mesecons_delayer_on_4.pngbin594 -> 242 bytes
9 files changed, 96 insertions, 16 deletions
diff --git a/mesecons_delayer/init.lua b/mesecons_delayer/init.lua
index 6eb9d7b..1a0da70 100644
--- a/mesecons_delayer/init.lua
+++ b/mesecons_delayer/init.lua
@@ -1,49 +1,89 @@
minetest.register_node("mesecons_delayer:delayer_off_1", {
description = "Delayer",
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_1.png"},
inventory_image = "mesecons_delayer_off_1.png",
wield_image = "mesecons_delayer_off_1.png",
walkable = false,
- selection_box = {type = "fixed",},
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1',
})
minetest.register_node("mesecons_delayer:delayer_off_2", {
description = "Delayer",
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_2.png"},
inventory_image = "mesecons_delayer_off_2.png",
walkable = false,
- selection_box = {type = "fixed",},
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1',
})
minetest.register_node("mesecons_delayer:delayer_off_3", {
description = "Delayer",
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_3.png"},
inventory_image = "mesecons_delayer_off_3.png",
walkable = false,
- selection_box = {type = "fixed",},
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1',
})
minetest.register_node("mesecons_delayer:delayer_off_4", {
description = "Delayer",
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_4.png"},
inventory_image = "mesecons_delayer_off_4.png",
walkable = false,
- selection_box = {type = "fixed",},
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1',
})
@@ -53,49 +93,89 @@ minetest.register_node("mesecons_delayer:delayer_off_4", {
minetest.register_node("mesecons_delayer:delayer_on_1", {
description = "Delayer",
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_1.png"},
inventory_image = "mesecons_delayer_on_1.png",
walkable = false,
- selection_box = {type = "fixed",},
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1',
})
minetest.register_node("mesecons_delayer:delayer_on_2", {
description = "Delayer",
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_2.png"},
inventory_image = "mesecons_delayer_on_2.png",
walkable = false,
- selection_box = {type = "fixed",},
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1',
})
minetest.register_node("mesecons_delayer:delayer_on_3", {
description = "Delayer",
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_3.png"},
inventory_image = "mesecons_delayer_on_3.png",
walkable = false,
- selection_box = {type = "fixed",},
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1',
})
minetest.register_node("mesecons_delayer:delayer_on_4", {
description = "Delayer",
- drawtype = "raillike",
+ drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_4.png"},
inventory_image = "mesecons_delayer_on_4.png",
walkable = false,
- selection_box = {type = "fixed",},
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
+ },
groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1',
})
diff --git a/mesecons_delayer/textures/mesecons_delayer_off_1.png b/mesecons_delayer/textures/mesecons_delayer_off_1.png
index e93db1e..7c58076 100644
--- a/mesecons_delayer/textures/mesecons_delayer_off_1.png
+++ b/mesecons_delayer/textures/mesecons_delayer_off_1.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_off_2.png b/mesecons_delayer/textures/mesecons_delayer_off_2.png
index dae0f40..91f2b6b 100644
--- a/mesecons_delayer/textures/mesecons_delayer_off_2.png
+++ b/mesecons_delayer/textures/mesecons_delayer_off_2.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_off_3.png b/mesecons_delayer/textures/mesecons_delayer_off_3.png
index 3704a60..6564bcf 100644
--- a/mesecons_delayer/textures/mesecons_delayer_off_3.png
+++ b/mesecons_delayer/textures/mesecons_delayer_off_3.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_off_4.png b/mesecons_delayer/textures/mesecons_delayer_off_4.png
index 96248b5..ef05d3c 100644
--- a/mesecons_delayer/textures/mesecons_delayer_off_4.png
+++ b/mesecons_delayer/textures/mesecons_delayer_off_4.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_on_1.png b/mesecons_delayer/textures/mesecons_delayer_on_1.png
index 0a4b466..5804969 100644
--- a/mesecons_delayer/textures/mesecons_delayer_on_1.png
+++ b/mesecons_delayer/textures/mesecons_delayer_on_1.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_on_2.png b/mesecons_delayer/textures/mesecons_delayer_on_2.png
index b85f7a0..02eb698 100644
--- a/mesecons_delayer/textures/mesecons_delayer_on_2.png
+++ b/mesecons_delayer/textures/mesecons_delayer_on_2.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_on_3.png b/mesecons_delayer/textures/mesecons_delayer_on_3.png
index 0d6f805..c0e8376 100644
--- a/mesecons_delayer/textures/mesecons_delayer_on_3.png
+++ b/mesecons_delayer/textures/mesecons_delayer_on_3.png
Binary files differ
diff --git a/mesecons_delayer/textures/mesecons_delayer_on_4.png b/mesecons_delayer/textures/mesecons_delayer_on_4.png
index 86847be..1e1273e 100644
--- a/mesecons_delayer/textures/mesecons_delayer_on_4.png
+++ b/mesecons_delayer/textures/mesecons_delayer_on_4.png
Binary files differ