forked from minetest-mods/mesecons
Better wall button nodeboxes. Also fixed the deprecated time_images lines (now
"tiles"). This also restores the textures I added a few months ago, since the ones I made are needed for a nodebox of this sort.
This commit is contained in:
parent
df7edcb35c
commit
ddbe33ed56
|
@ -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',
|
||||||
|
|
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 |
BIN
mesecons_textures/textures/jeija_wall_button_sides.png
Normal file
BIN
mesecons_textures/textures/jeija_wall_button_sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 392 B |
Loading…
Reference in New Issue
Block a user