From 87442f0c31dd4d4ae0d31ff9415f29502d5c1975 Mon Sep 17 00:00:00 2001 From: Jeija Date: Thu, 21 Jun 2012 20:33:01 +0200 Subject: Experimental 3D Delayer --- mesecons_delayer/init.lua | 112 ++++++++++++++++++--- .../textures/mesecons_delayer_off_1.png | Bin 600 -> 244 bytes .../textures/mesecons_delayer_off_2.png | Bin 593 -> 249 bytes .../textures/mesecons_delayer_off_3.png | Bin 594 -> 245 bytes .../textures/mesecons_delayer_off_4.png | Bin 589 -> 243 bytes .../textures/mesecons_delayer_on_1.png | Bin 603 -> 243 bytes .../textures/mesecons_delayer_on_2.png | Bin 596 -> 245 bytes .../textures/mesecons_delayer_on_3.png | Bin 598 -> 244 bytes .../textures/mesecons_delayer_on_4.png | Bin 594 -> 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_off_1.png and b/mesecons_delayer/textures/mesecons_delayer_off_1.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_off_2.png and b/mesecons_delayer/textures/mesecons_delayer_off_2.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_off_3.png and b/mesecons_delayer/textures/mesecons_delayer_off_3.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_off_4.png and b/mesecons_delayer/textures/mesecons_delayer_off_4.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_on_1.png and b/mesecons_delayer/textures/mesecons_delayer_on_1.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_on_2.png and b/mesecons_delayer/textures/mesecons_delayer_on_2.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_on_3.png and b/mesecons_delayer/textures/mesecons_delayer_on_3.png 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 Binary files a/mesecons_delayer/textures/mesecons_delayer_on_4.png and b/mesecons_delayer/textures/mesecons_delayer_on_4.png differ -- cgit v1.2.3