Replace old wall button with a fancy new 3d button

This commit is contained in:
Jeija 2012-06-21 16:38:48 +02:00
parent 1712523772
commit 3a6b099ae1
3 changed files with 18 additions and 8 deletions

View File

@ -1,27 +1,37 @@
-- WALL BUTTON -- WALL BUTTON
minetest.register_node("mesecons_button:button_off", { minetest.register_node("mesecons_button:button_off", {
drawtype = "signlike", drawtype = "nodebox",
tile_images = {"jeija_wall_button_off.png"}, tile_images = {"jeija_wall_button_off.png"},
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "facedir",
legacy_wallmounted = true, legacy_wallmounted = true,
walkable = false, walkable = false,
selection_box = { selection_box = {
type = "wallmounted", type = "fixed",
fixed = {-0.2, -0.15, 0.3, 0.2, 0.15, 0.5},
},
node_box = {
type = "fixed",
fixed = {-0.2, -0.15, 0.3, 0.2, 0.15, 0.5},
}, },
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 = "signlike", drawtype = "nodebox",
tile_images = {"jeija_wall_button_on.png"}, tile_images = {"jeija_wall_button_on.png"},
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "facedir",
legacy_wallmounted = true, legacy_wallmounted = true,
walkable = false, walkable = false,
selection_box = { selection_box = {
type = "wallmounted", type = "fixed",
}, fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5},
},
node_box = {
type = "fixed",
fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5},
},
groups = {dig_immediate=2}, groups = {dig_immediate=2},
drop = 'mesecons_button:button_off', drop = 'mesecons_button:button_off',
description = "Button", description = "Button",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 B

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 B

After

Width:  |  Height:  |  Size: 563 B