Merge pull request #9 from VanessaE/master

Better wall button nodeboxes
This commit is contained in:
sfan5 2012-08-07 01:43:49 -07:00
commit 9453e9ac07
15 changed files with 71 additions and 20 deletions

View File

@ -1,36 +1,56 @@
-- WALL BUTTON -- WALL BUTTON
minetest.register_node("mesecons_button:button_off", { minetest.register_node("mesecons_button:button_off", {
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"jeija_wall_button_off.png"}, tiles = {
"jeija_wall_button_sides.png",
"jeija_wall_button_sides.png",
"jeija_wall_button_sides.png",
"jeija_wall_button_sides.png",
"jeija_wall_button_sides.png",
"jeija_wall_button_off.png"
},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
legacy_wallmounted = true, legacy_wallmounted = true,
walkable = false, walkable = false,
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.2, -0.15, 0.3, 0.2, 0.15, 0.5}, fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 }
}, },
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-0.2, -0.15, 0.3, 0.2, 0.15, 0.5}, fixed = {
{ -6/16, -6/16, 7/16, 6/16, 6/16, 8/16 }, -- the thin plate behind the button
{ -4/16, -2/16, 5/16, 4/16, 2/16, 7/16 } -- the button itself
}
}, },
groups = {dig_immediate=2}, groups = {dig_immediate=2},
description = "Button", description = "Button",
}) })
minetest.register_node("mesecons_button:button_on", { minetest.register_node("mesecons_button:button_on", {
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"jeija_wall_button_on.png"}, tiles = {
"jeija_wall_button_sides.png",
"jeija_wall_button_sides.png",
"jeija_wall_button_sides.png",
"jeija_wall_button_sides.png",
"jeija_wall_button_sides.png",
"jeija_wall_button_on.png"
},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
legacy_wallmounted = true, legacy_wallmounted = true,
walkable = false, walkable = false,
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5}, fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 }
}, },
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5}, fixed = {
{ -6/16, -6/16, 7/16, 6/16, 6/16, 8/16 },
{ -4/16, -2/16, 13/32, 4/16, 2/16, 7/16 }
}
}, },
groups = {dig_immediate=2, not_in_creative_inventory=1}, groups = {dig_immediate=2, not_in_creative_inventory=1},
drop = 'mesecons_button:button_off', drop = 'mesecons_button:button_off',

View File

@ -1,7 +1,10 @@
minetest.register_node("mesecons_delayer:delayer_off_1", { minetest.register_node("mesecons_delayer:delayer_off_1", {
description = "Delayer", description = "Delayer",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_1.png"}, tiles = {
"mesecons_delayer_off_1.png",
"mesecons_delayer_sides.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,
@ -24,7 +27,10 @@ minetest.register_node("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 = "nodebox", drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_2.png"}, tiles = {
"mesecons_delayer_off_2.png",
"mesecons_delayer_sides.png"
},
inventory_image = "mesecons_delayer_off_2.png", inventory_image = "mesecons_delayer_off_2.png",
walkable = false, walkable = false,
selection_box = { selection_box = {
@ -46,7 +52,10 @@ minetest.register_node("mesecons_delayer:delayer_off_2", {
minetest.register_node("mesecons_delayer:delayer_off_3", { minetest.register_node("mesecons_delayer:delayer_off_3", {
description = "Delayer", description = "Delayer",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_3.png"}, tiles = {
"mesecons_delayer_off_3.png",
"mesecons_delayer_sides.png"
},
inventory_image = "mesecons_delayer_off_3.png", inventory_image = "mesecons_delayer_off_3.png",
walkable = false, walkable = false,
selection_box = { selection_box = {
@ -68,7 +77,10 @@ minetest.register_node("mesecons_delayer:delayer_off_3", {
minetest.register_node("mesecons_delayer:delayer_off_4", { minetest.register_node("mesecons_delayer:delayer_off_4", {
description = "Delayer", description = "Delayer",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"mesecons_delayer_off_4.png"}, tiles = {
"mesecons_delayer_off_4.png",
"mesecons_delayer_sides.png"
},
inventory_image = "mesecons_delayer_off_4.png", inventory_image = "mesecons_delayer_off_4.png",
walkable = false, walkable = false,
selection_box = { selection_box = {
@ -90,7 +102,10 @@ 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 = "nodebox", drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_1.png"}, tiles = {
"mesecons_delayer_on_1.png",
"mesecons_delayer_sides.png"
},
inventory_image = "mesecons_delayer_on_1.png", inventory_image = "mesecons_delayer_on_1.png",
walkable = false, walkable = false,
selection_box = { selection_box = {
@ -112,7 +127,10 @@ minetest.register_node("mesecons_delayer:delayer_on_1", {
minetest.register_node("mesecons_delayer:delayer_on_2", { minetest.register_node("mesecons_delayer:delayer_on_2", {
description = "Delayer", description = "Delayer",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_2.png"}, tiles = {
"mesecons_delayer_on_2.png",
"mesecons_delayer_sides.png"
},
inventory_image = "mesecons_delayer_on_2.png", inventory_image = "mesecons_delayer_on_2.png",
walkable = false, walkable = false,
selection_box = { selection_box = {
@ -134,7 +152,10 @@ minetest.register_node("mesecons_delayer:delayer_on_2", {
minetest.register_node("mesecons_delayer:delayer_on_3", { minetest.register_node("mesecons_delayer:delayer_on_3", {
description = "Delayer", description = "Delayer",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_3.png"}, tiles = {
"mesecons_delayer_on_3.png",
"mesecons_delayer_sides.png"
},
inventory_image = "mesecons_delayer_on_3.png", inventory_image = "mesecons_delayer_on_3.png",
walkable = false, walkable = false,
selection_box = { selection_box = {
@ -156,7 +177,10 @@ minetest.register_node("mesecons_delayer:delayer_on_3", {
minetest.register_node("mesecons_delayer:delayer_on_4", { minetest.register_node("mesecons_delayer:delayer_on_4", {
description = "Delayer", description = "Delayer",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"mesecons_delayer_on_4.png"}, tiles = {
"mesecons_delayer_on_4.png",
"mesecons_delayer_sides.png"
},
inventory_image = "mesecons_delayer_on_4.png", inventory_image = "mesecons_delayer_on_4.png",
walkable = false, walkable = false,
selection_box = { selection_box = {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 B

After

Width:  |  Height:  |  Size: 707 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 710 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 B

After

Width:  |  Height:  |  Size: 702 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 B

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 B

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 723 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B

View File

@ -2,7 +2,7 @@
--registration normal one: --registration normal one:
minetest.register_node("mesecons_pistons:piston_normal", { minetest.register_node("mesecons_pistons:piston_normal", {
description = "Piston", description = "Piston",
tile_images = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_side.png"}, tiles = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_side.png"},
groups = {cracky=3}, groups = {cracky=3},
paramtype2 = "facedir", paramtype2 = "facedir",
after_dig_node = function(pos, oldnode) after_dig_node = function(pos, oldnode)
@ -22,7 +22,7 @@ minetest.register_node("mesecons_pistons:piston_normal", {
--registration sticky one: --registration sticky one:
minetest.register_node("mesecons_pistons:piston_sticky", { minetest.register_node("mesecons_pistons:piston_sticky", {
description = "Sticky Piston", description = "Sticky Piston",
tile_images = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_sticky_side.png"}, tiles = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_sticky_side.png"},
groups = {cracky=3}, groups = {cracky=3},
paramtype2 = "facedir", paramtype2 = "facedir",
after_dig_node = function(pos, oldnode) after_dig_node = function(pos, oldnode)
@ -58,7 +58,7 @@ minetest.register_craft({
minetest.register_node("mesecons_pistons:piston_pusher_normal", { minetest.register_node("mesecons_pistons:piston_pusher_normal", {
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"jeija_piston_pusher_normal.png"}, tiles = {"jeija_piston_pusher_normal.png"},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
diggable = false, diggable = false,
@ -83,7 +83,14 @@ mesecon:register_mvps_stopper("mesecons_pistons:piston_pusher_sticky")
minetest.register_node("mesecons_pistons:piston_pusher_sticky", { minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"jeija_piston_pusher_sticky.png"}, tiles = {
"jeija_piston_pusher_normal.png",
"jeija_piston_pusher_normal.png",
"jeija_piston_pusher_normal.png",
"jeija_piston_pusher_normal.png",
"jeija_piston_pusher_normal.png",
"jeija_piston_pusher_sticky.png"
},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
diggable = false, diggable = false,
@ -211,4 +218,4 @@ function mesecon:piston_get_direction(node)
else --node.param2 == 0 else --node.param2 == 0
return {x=0, y=0, z=-1} return {x=0, y=0, z=-1}
end end
end end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 563 B

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B