Experimental 3D Delayer

This commit is contained in:
Jeija 2012-06-21 20:33:01 +02:00
parent bfc594a8d0
commit 87442f0c31
9 changed files with 96 additions and 16 deletions

View File

@ -1,49 +1,89 @@
minetest.register_node("mesecons_delayer:delayer_off_1", { minetest.register_node("mesecons_delayer:delayer_off_1", {
description = "Delayer", description = "Delayer",
drawtype = "raillike", drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_1.png"}, tile_images = {"mesecons_delayer_off_1.png"},
inventory_image = "mesecons_delayer_off_1.png", inventory_image = "mesecons_delayer_off_1.png",
wield_image = "mesecons_delayer_off_1.png", wield_image = "mesecons_delayer_off_1.png",
walkable = false, 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}, groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1', drop = 'mesecons_delayer:delayer_off_1',
}) })
minetest.register_node("mesecons_delayer:delayer_off_2", { minetest.register_node("mesecons_delayer:delayer_off_2", {
description = "Delayer", description = "Delayer",
drawtype = "raillike", drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_2.png"}, tile_images = {"mesecons_delayer_off_2.png"},
inventory_image = "mesecons_delayer_off_2.png", inventory_image = "mesecons_delayer_off_2.png",
walkable = false, 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}, groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1', drop = 'mesecons_delayer:delayer_off_1',
}) })
minetest.register_node("mesecons_delayer:delayer_off_3", { minetest.register_node("mesecons_delayer:delayer_off_3", {
description = "Delayer", description = "Delayer",
drawtype = "raillike", drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_3.png"}, tile_images = {"mesecons_delayer_off_3.png"},
inventory_image = "mesecons_delayer_off_3.png", inventory_image = "mesecons_delayer_off_3.png",
walkable = false, 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}, groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1', drop = 'mesecons_delayer:delayer_off_1',
}) })
minetest.register_node("mesecons_delayer:delayer_off_4", { minetest.register_node("mesecons_delayer:delayer_off_4", {
description = "Delayer", description = "Delayer",
drawtype = "raillike", drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_4.png"}, tile_images = {"mesecons_delayer_off_4.png"},
inventory_image = "mesecons_delayer_off_4.png", inventory_image = "mesecons_delayer_off_4.png",
walkable = false, 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}, groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1', 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", { minetest.register_node("mesecons_delayer:delayer_on_1", {
description = "Delayer", description = "Delayer",
drawtype = "raillike", drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_1.png"}, tile_images = {"mesecons_delayer_on_1.png"},
inventory_image = "mesecons_delayer_on_1.png", inventory_image = "mesecons_delayer_on_1.png",
walkable = false, 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}, groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1', drop = 'mesecons_delayer:delayer_off_1',
}) })
minetest.register_node("mesecons_delayer:delayer_on_2", { minetest.register_node("mesecons_delayer:delayer_on_2", {
description = "Delayer", description = "Delayer",
drawtype = "raillike", drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_2.png"}, tile_images = {"mesecons_delayer_on_2.png"},
inventory_image = "mesecons_delayer_on_2.png", inventory_image = "mesecons_delayer_on_2.png",
walkable = false, 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}, groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1', drop = 'mesecons_delayer:delayer_off_1',
}) })
minetest.register_node("mesecons_delayer:delayer_on_3", { minetest.register_node("mesecons_delayer:delayer_on_3", {
description = "Delayer", description = "Delayer",
drawtype = "raillike", drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_3.png"}, tile_images = {"mesecons_delayer_on_3.png"},
inventory_image = "mesecons_delayer_on_3.png", inventory_image = "mesecons_delayer_on_3.png",
walkable = false, 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}, groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1', drop = 'mesecons_delayer:delayer_off_1',
}) })
minetest.register_node("mesecons_delayer:delayer_on_4", { minetest.register_node("mesecons_delayer:delayer_on_4", {
description = "Delayer", description = "Delayer",
drawtype = "raillike", drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_4.png"}, tile_images = {"mesecons_delayer_on_4.png"},
inventory_image = "mesecons_delayer_on_4.png", inventory_image = "mesecons_delayer_on_4.png",
walkable = false, 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}, groups = {bendy=2,snappy=1,dig_immediate=2},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = true,
drop = 'mesecons_delayer:delayer_off_1', drop = 'mesecons_delayer:delayer_off_1',
}) })

Binary file not shown.

Before

Width:  |  Height:  |  Size: 600 B

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 594 B

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 603 B

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 B

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 594 B

After

Width:  |  Height:  |  Size: 242 B