forked from minetest-mods/mesecons
Make lamps and pressure plates walkable
This commit is contained in:
parent
80b2da6c85
commit
df7edcb35c
@ -6,7 +6,7 @@ minetest.register_node("mesecons_lamp:lamp_on", {
|
|||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = true,
|
||||||
light_source = LIGHT_MAX,
|
light_source = LIGHT_MAX,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
@ -32,7 +32,7 @@ minetest.register_node("mesecons_lamp:lamp_off", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = true,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
wall_top = {-0.3125,0.375,-0.3125,0.3125,0.5,0.3125},
|
wall_top = {-0.3125,0.375,-0.3125,0.3125,0.5,0.3125},
|
||||||
@ -70,4 +70,4 @@ mesecon:register_on_signal_off(function(pos, node)
|
|||||||
minetest.env:add_node(pos, {name="mesecons_lamp:lamp_off", param2 = node.param2})
|
minetest.env:add_node(pos, {name="mesecons_lamp:lamp_off", param2 = node.param2})
|
||||||
nodeupdate(pos)
|
nodeupdate(pos)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
@ -7,7 +7,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", {
|
|||||||
wield_image = "jeija_pressure_plate_wood_off.png",
|
wield_image = "jeija_pressure_plate_wood_off.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
walkable = false,
|
walkable = true,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.45, -0.5, -0.45, 0.45, -0.45, 0.45},
|
fixed = {-0.45, -0.5, -0.45, 0.45, -0.45, 0.45},
|
||||||
@ -25,7 +25,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", {
|
|||||||
tile_images = {"jeija_pressure_plate_wood_on.png"},
|
tile_images = {"jeija_pressure_plate_wood_on.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
walkable = false,
|
walkable = true,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.45, -0.5, -0.45, 0.45, -0.48, 0.45},
|
fixed = {-0.45, -0.5, -0.45, 0.45, -0.48, 0.45},
|
||||||
@ -89,7 +89,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_off", {
|
|||||||
wield_image = "jeija_pressure_plate_stone_off.png",
|
wield_image = "jeija_pressure_plate_stone_off.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
walkable = false,
|
walkable = true,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.45, -0.5, -0.45, 0.45, -0.45, 0.45},
|
fixed = {-0.45, -0.5, -0.45, 0.45, -0.45, 0.45},
|
||||||
@ -107,7 +107,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", {
|
|||||||
tile_images = {"jeija_pressure_plate_stone_on.png"},
|
tile_images = {"jeija_pressure_plate_stone_on.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
walkable = false,
|
walkable = true,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.45, -0.5, -0.45, 0.45, -0.48, 0.45},
|
fixed = {-0.45, -0.5, -0.45, 0.45, -0.48, 0.45},
|
||||||
|
Loading…
Reference in New Issue
Block a user