Merge pull request #9 from VanessaE/master
Better wall button nodeboxes
@ -1,36 +1,56 @@
|
||||
-- WALL BUTTON
|
||||
minetest.register_node("mesecons_button:button_off", {
|
||||
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",
|
||||
paramtype2 = "facedir",
|
||||
legacy_wallmounted = true,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
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 = {
|
||||
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},
|
||||
description = "Button",
|
||||
})
|
||||
minetest.register_node("mesecons_button:button_on", {
|
||||
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",
|
||||
paramtype2 = "facedir",
|
||||
legacy_wallmounted = true,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
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 = {
|
||||
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},
|
||||
drop = 'mesecons_button:button_off',
|
||||
|
@ -1,7 +1,10 @@
|
||||
minetest.register_node("mesecons_delayer:delayer_off_1", {
|
||||
description = "Delayer",
|
||||
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",
|
||||
wield_image = "mesecons_delayer_off_1.png",
|
||||
walkable = false,
|
||||
@ -24,7 +27,10 @@ minetest.register_node("mesecons_delayer:delayer_off_1", {
|
||||
minetest.register_node("mesecons_delayer:delayer_off_2", {
|
||||
description = "Delayer",
|
||||
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",
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
@ -46,7 +52,10 @@ minetest.register_node("mesecons_delayer:delayer_off_2", {
|
||||
minetest.register_node("mesecons_delayer:delayer_off_3", {
|
||||
description = "Delayer",
|
||||
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",
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
@ -68,7 +77,10 @@ minetest.register_node("mesecons_delayer:delayer_off_3", {
|
||||
minetest.register_node("mesecons_delayer:delayer_off_4", {
|
||||
description = "Delayer",
|
||||
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",
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
@ -90,7 +102,10 @@ minetest.register_node("mesecons_delayer:delayer_off_4", {
|
||||
minetest.register_node("mesecons_delayer:delayer_on_1", {
|
||||
description = "Delayer",
|
||||
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",
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
@ -112,7 +127,10 @@ minetest.register_node("mesecons_delayer:delayer_on_1", {
|
||||
minetest.register_node("mesecons_delayer:delayer_on_2", {
|
||||
description = "Delayer",
|
||||
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",
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
@ -134,7 +152,10 @@ minetest.register_node("mesecons_delayer:delayer_on_2", {
|
||||
minetest.register_node("mesecons_delayer:delayer_on_3", {
|
||||
description = "Delayer",
|
||||
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",
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
@ -156,7 +177,10 @@ minetest.register_node("mesecons_delayer:delayer_on_3", {
|
||||
minetest.register_node("mesecons_delayer:delayer_on_4", {
|
||||
description = "Delayer",
|
||||
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",
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
|
Before Width: | Height: | Size: 244 B After Width: | Height: | Size: 707 B |
Before Width: | Height: | Size: 249 B After Width: | Height: | Size: 709 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 710 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 729 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 724 B |
Before Width: | Height: | Size: 244 B After Width: | Height: | Size: 729 B |
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 723 B |
BIN
mesecons_delayer/textures/mesecons_delayer_sides.png
Normal file
After Width: | Height: | Size: 438 B |
@ -2,7 +2,7 @@
|
||||
--registration normal one:
|
||||
minetest.register_node("mesecons_pistons:piston_normal", {
|
||||
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},
|
||||
paramtype2 = "facedir",
|
||||
after_dig_node = function(pos, oldnode)
|
||||
@ -22,7 +22,7 @@ minetest.register_node("mesecons_pistons:piston_normal", {
|
||||
--registration sticky one:
|
||||
minetest.register_node("mesecons_pistons:piston_sticky", {
|
||||
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},
|
||||
paramtype2 = "facedir",
|
||||
after_dig_node = function(pos, oldnode)
|
||||
@ -58,7 +58,7 @@ minetest.register_craft({
|
||||
|
||||
minetest.register_node("mesecons_pistons:piston_pusher_normal", {
|
||||
drawtype = "nodebox",
|
||||
tile_images = {"jeija_piston_pusher_normal.png"},
|
||||
tiles = {"jeija_piston_pusher_normal.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
diggable = false,
|
||||
@ -83,7 +83,14 @@ mesecon:register_mvps_stopper("mesecons_pistons:piston_pusher_sticky")
|
||||
|
||||
minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
|
||||
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",
|
||||
paramtype2 = "facedir",
|
||||
diggable = false,
|
||||
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 563 B After Width: | Height: | Size: 449 B |
BIN
mesecons_textures/textures/jeija_wall_button_sides.png
Normal file
After Width: | Height: | Size: 434 B |