forked from Mirrorlandia_minetest/mesecons
Set is_ground_content to false (#386)
This commit is contained in:
parent
db39eef2f6
commit
ff0bd76efe
@ -4,7 +4,7 @@ minetest.register_node("mesecons:mesecon_off", {
|
|||||||
inventory_image = "jeija_mesecon_off.png",
|
inventory_image = "jeija_mesecon_off.png",
|
||||||
wield_image = "jeija_mesecon_off.png",
|
wield_image = "jeija_mesecon_off.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -22,7 +22,7 @@ minetest.register_node("mesecons:mesecon_on", {
|
|||||||
drawtype = "raillike",
|
drawtype = "raillike",
|
||||||
tiles = {"jeija_mesecon_on.png", "jeija_mesecon_curved_on.png", "jeija_mesecon_t_junction_on.png", "jeija_mesecon_crossing_on.png"},
|
tiles = {"jeija_mesecon_on.png", "jeija_mesecon_curved_on.png", "jeija_mesecon_t_junction_on.png", "jeija_mesecon_crossing_on.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -24,6 +24,7 @@ mesecon.register_node("mesecons_blinkyplant:blinky_plant", {
|
|||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
inventory_image = "jeija_blinky_plant_off.png",
|
inventory_image = "jeija_blinky_plant_off.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
|
@ -25,6 +25,7 @@ minetest.register_node("mesecons_button:button_off", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
on_rotate = mesecon.buttonlike_onrotate,
|
on_rotate = mesecon.buttonlike_onrotate,
|
||||||
@ -68,6 +69,7 @@ minetest.register_node("mesecons_button:button_on", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
on_rotate = false,
|
on_rotate = false,
|
||||||
|
@ -181,6 +181,7 @@ minetest.register_node("mesecons_commandblock:commandblock_off", {
|
|||||||
description = "Command Block",
|
description = "Command Block",
|
||||||
tiles = {"jeija_commandblock_off.png"},
|
tiles = {"jeija_commandblock_off.png"},
|
||||||
inventory_image = minetest.inventorycube("jeija_commandblock_off.png"),
|
inventory_image = minetest.inventorycube("jeija_commandblock_off.png"),
|
||||||
|
is_ground_content = false,
|
||||||
groups = {cracky=2, mesecon_effector_off=1},
|
groups = {cracky=2, mesecon_effector_off=1},
|
||||||
on_construct = construct,
|
on_construct = construct,
|
||||||
after_place_node = after_place,
|
after_place_node = after_place,
|
||||||
@ -195,6 +196,7 @@ minetest.register_node("mesecons_commandblock:commandblock_off", {
|
|||||||
|
|
||||||
minetest.register_node("mesecons_commandblock:commandblock_on", {
|
minetest.register_node("mesecons_commandblock:commandblock_on", {
|
||||||
tiles = {"jeija_commandblock_on.png"},
|
tiles = {"jeija_commandblock_on.png"},
|
||||||
|
is_ground_content = false,
|
||||||
groups = {cracky=2, mesecon_effector_on=1, not_in_creative_inventory=1},
|
groups = {cracky=2, mesecon_effector_on=1, not_in_creative_inventory=1},
|
||||||
light_source = 10,
|
light_source = 10,
|
||||||
drop = "mesecons_commandblock:commandblock_off",
|
drop = "mesecons_commandblock:commandblock_off",
|
||||||
|
@ -87,7 +87,7 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
drop = 'mesecons_delayer:delayer_off_1',
|
drop = 'mesecons_delayer:delayer_off_1',
|
||||||
on_punch = function (pos, node)
|
on_punch = function (pos, node)
|
||||||
if node.name=="mesecons_delayer:delayer_off_1" then
|
if node.name=="mesecons_delayer:delayer_off_1" then
|
||||||
@ -143,7 +143,7 @@ minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
drop = 'mesecons_delayer:delayer_off_1',
|
drop = 'mesecons_delayer:delayer_off_1',
|
||||||
on_punch = function (pos, node)
|
on_punch = function (pos, node)
|
||||||
if node.name=="mesecons_delayer:delayer_on_1" then
|
if node.name=="mesecons_delayer:delayer_on_1" then
|
||||||
|
@ -66,6 +66,7 @@ local object_detector_digiline = {
|
|||||||
minetest.register_node("mesecons_detector:object_detector_off", {
|
minetest.register_node("mesecons_detector:object_detector_off", {
|
||||||
tiles = {"default_steel_block.png", "default_steel_block.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png"},
|
tiles = {"default_steel_block.png", "default_steel_block.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
description="Player Detector",
|
description="Player Detector",
|
||||||
@ -83,6 +84,7 @@ minetest.register_node("mesecons_detector:object_detector_off", {
|
|||||||
minetest.register_node("mesecons_detector:object_detector_on", {
|
minetest.register_node("mesecons_detector:object_detector_on", {
|
||||||
tiles = {"default_steel_block.png", "default_steel_block.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png"},
|
tiles = {"default_steel_block.png", "default_steel_block.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = {cracky=3,not_in_creative_inventory=1},
|
groups = {cracky=3,not_in_creative_inventory=1},
|
||||||
drop = 'mesecons_detector:object_detector_off',
|
drop = 'mesecons_detector:object_detector_off',
|
||||||
@ -227,6 +229,7 @@ minetest.register_node("mesecons_detector:node_detector_off", {
|
|||||||
tiles = {"default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "jeija_node_detector_off.png"},
|
tiles = {"default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "jeija_node_detector_off.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
description="Node Detector",
|
description="Node Detector",
|
||||||
@ -244,6 +247,7 @@ minetest.register_node("mesecons_detector:node_detector_on", {
|
|||||||
tiles = {"default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "jeija_node_detector_on.png"},
|
tiles = {"default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "jeija_node_detector_on.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = {cracky=3,not_in_creative_inventory=1},
|
groups = {cracky=3,not_in_creative_inventory=1},
|
||||||
drop = 'mesecons_detector:node_detector_off',
|
drop = 'mesecons_detector:node_detector_off',
|
||||||
|
@ -33,6 +33,7 @@ minetest.register_node("mesecons_extrawires:corner_on", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = corner_selectionbox,
|
selection_box = corner_selectionbox,
|
||||||
@ -61,6 +62,7 @@ minetest.register_node("mesecons_extrawires:corner_off", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = corner_selectionbox,
|
selection_box = corner_selectionbox,
|
||||||
|
@ -29,6 +29,7 @@ minetest.register_node("mesecons_extrawires:crossover_off", {
|
|||||||
"jeija_insulated_wire_ends_off.png"
|
"jeija_insulated_wire_ends_off.png"
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
||||||
@ -54,6 +55,7 @@ minetest.register_node("mesecons_extrawires:crossover_01", {
|
|||||||
"jeija_insulated_wire_ends_off.png"
|
"jeija_insulated_wire_ends_off.png"
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
||||||
@ -79,6 +81,7 @@ minetest.register_node("mesecons_extrawires:crossover_10", {
|
|||||||
"jeija_insulated_wire_ends_on.png"
|
"jeija_insulated_wire_ends_on.png"
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
||||||
@ -104,6 +107,7 @@ minetest.register_node("mesecons_extrawires:crossover_on", {
|
|||||||
"jeija_insulated_wire_ends_on.png"
|
"jeija_insulated_wire_ends_on.png"
|
||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
||||||
|
@ -34,6 +34,7 @@ minetest.register_node("mesecons_extrawires:tjunction_on", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = tjunction_selectionbox,
|
selection_box = tjunction_selectionbox,
|
||||||
@ -62,6 +63,7 @@ minetest.register_node("mesecons_extrawires:tjunction_off", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = tjunction_selectionbox,
|
selection_box = tjunction_selectionbox,
|
||||||
|
@ -81,6 +81,7 @@ mesecon.register_node("mesecons_extrawires:vertical", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = vertical_box,
|
selection_box = vertical_box,
|
||||||
node_box = vertical_box,
|
node_box = vertical_box,
|
||||||
@ -112,6 +113,7 @@ mesecon.register_node("mesecons_extrawires:vertical_top", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {dig_immediate=3, not_in_creative_inventory=1},
|
groups = {dig_immediate=3, not_in_creative_inventory=1},
|
||||||
selection_box = top_box,
|
selection_box = top_box,
|
||||||
@ -142,6 +144,7 @@ mesecon.register_node("mesecons_extrawires:vertical_bottom", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {dig_immediate = 3, not_in_creative_inventory = 1},
|
groups = {dig_immediate = 3, not_in_creative_inventory = 1},
|
||||||
selection_box = bottom_box,
|
selection_box = bottom_box,
|
||||||
|
@ -69,6 +69,7 @@ plg.register_nodes({
|
|||||||
"jeija_fpga_sides.png"
|
"jeija_fpga_sides.png"
|
||||||
},
|
},
|
||||||
inventory_image = "", -- replaced later
|
inventory_image = "", -- replaced later
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = true,
|
walkable = true,
|
||||||
|
@ -65,6 +65,7 @@ local function register_gate(name, inputnumber, assess, recipe, description)
|
|||||||
inventory_image = "jeija_gate_off.png^jeija_gate_"..name..".png",
|
inventory_image = "jeija_gate_off.png^jeija_gate_"..name..".png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
drop = basename.."_off",
|
drop = basename.."_off",
|
||||||
selection_box = nodebox,
|
selection_box = nodebox,
|
||||||
|
@ -13,6 +13,7 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
|
|||||||
"jeija_hydro_turbine_turbine_misc_off.png"
|
"jeija_hydro_turbine_turbine_misc_off.png"
|
||||||
},
|
},
|
||||||
inventory_image = "jeija_hydro_turbine_inv.png",
|
inventory_image = "jeija_hydro_turbine_inv.png",
|
||||||
|
is_ground_content = false,
|
||||||
wield_scale = {x=0.75, y=0.75, z=0.75},
|
wield_scale = {x=0.75, y=0.75, z=0.75},
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2},
|
||||||
description="Water Turbine",
|
description="Water Turbine",
|
||||||
@ -30,6 +31,7 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
|
|||||||
|
|
||||||
minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
|
minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
|
is_ground_content = false,
|
||||||
mesh = "jeija_hydro_turbine_on.obj",
|
mesh = "jeija_hydro_turbine_on.obj",
|
||||||
wield_scale = {x=0.75, y=0.75, z=0.75},
|
wield_scale = {x=0.75, y=0.75, z=0.75},
|
||||||
tiles = {
|
tiles = {
|
||||||
|
@ -20,6 +20,7 @@ minetest.register_node("mesecons_insulated:insulated_on", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
@ -53,6 +54,7 @@ minetest.register_node("mesecons_insulated:insulated_off", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
|
@ -14,6 +14,7 @@ minetest.register_node("mesecons_lamp:lamp_on", {
|
|||||||
tiles = {"jeija_meselamp_on.png"},
|
tiles = {"jeija_meselamp_on.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
|
is_ground_content = false,
|
||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
@ -39,6 +40,7 @@ minetest.register_node("mesecons_lamp:lamp_off", {
|
|||||||
wield_image = "jeija_meselamp.png",
|
wield_image = "jeija_meselamp.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
node_box = mesecon_lamp_box,
|
node_box = mesecon_lamp_box,
|
||||||
|
@ -20,6 +20,7 @@ function mesecon.lightstone_add(name, base_item, texture_off, texture_on, desc)
|
|||||||
end
|
end
|
||||||
minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_off", {
|
minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_off", {
|
||||||
tiles = {texture_off},
|
tiles = {texture_off},
|
||||||
|
is_ground_content = false,
|
||||||
groups = {cracky = 2, mesecon_effector_off = 1, mesecon = 2},
|
groups = {cracky = 2, mesecon_effector_off = 1, mesecon = 2},
|
||||||
description = desc,
|
description = desc,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -33,6 +34,7 @@ function mesecon.lightstone_add(name, base_item, texture_off, texture_on, desc)
|
|||||||
})
|
})
|
||||||
minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_on", {
|
minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_on", {
|
||||||
tiles = {texture_on},
|
tiles = {texture_on},
|
||||||
|
is_ground_content = false,
|
||||||
groups = {cracky = 2, not_in_creative_inventory = 1, mesecon = 2},
|
groups = {cracky = 2, not_in_creative_inventory = 1, mesecon = 2},
|
||||||
drop = "mesecons_lightstone:lightstone_" .. name .. "_off",
|
drop = "mesecons_lightstone:lightstone_" .. name .. "_off",
|
||||||
light_source = minetest.LIGHT_MAX - 2,
|
light_source = minetest.LIGHT_MAX - 2,
|
||||||
|
@ -625,6 +625,7 @@ for d = 0, 1 do
|
|||||||
},
|
},
|
||||||
inventory_image = top,
|
inventory_image = top,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
drop = BASENAME.."0000",
|
drop = BASENAME.."0000",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
@ -672,6 +673,7 @@ minetest.register_node(BASENAME .. "_burnt", {
|
|||||||
inventory_image = "jeija_luacontroller_burnt_top.png",
|
inventory_image = "jeija_luacontroller_burnt_top.png",
|
||||||
is_burnt = true,
|
is_burnt = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
groups = {dig_immediate=2, not_in_creative_inventory=1},
|
groups = {dig_immediate=2, not_in_creative_inventory=1},
|
||||||
drop = BASENAME.."0000",
|
drop = BASENAME.."0000",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
@ -69,6 +69,7 @@ minetest.register_node(nodename, {
|
|||||||
|
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
drop = "mesecons_microcontroller:microcontroller0000 1",
|
drop = "mesecons_microcontroller:microcontroller0000 1",
|
||||||
|
@ -70,6 +70,8 @@ function mesecon.register_movestone(name, def, is_sticky, is_vertical)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def.is_ground_content = false
|
||||||
|
|
||||||
def.mesecons = {effector = {
|
def.mesecons = {effector = {
|
||||||
action_on = function(pos, node, rulename)
|
action_on = function(pos, node, rulename)
|
||||||
if rulename and not minetest.get_node_timer(pos):is_started() then
|
if rulename and not minetest.get_node_timer(pos):is_started() then
|
||||||
@ -90,8 +92,6 @@ function mesecon.register_movestone(name, def, is_sticky, is_vertical)
|
|||||||
|
|
||||||
def.on_blast = mesecon.on_blastnode
|
def.on_blast = mesecon.on_blastnode
|
||||||
|
|
||||||
def.on_blast = mesecon.on_blastnode
|
|
||||||
|
|
||||||
minetest.register_node(name, def)
|
minetest.register_node(name, def)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
minetest.register_node("mesecons_noteblock:noteblock", {
|
minetest.register_node("mesecons_noteblock:noteblock", {
|
||||||
description = "Noteblock",
|
description = "Noteblock",
|
||||||
tiles = {"mesecons_noteblock.png"},
|
tiles = {"mesecons_noteblock.png"},
|
||||||
|
is_ground_content = false,
|
||||||
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
|
||||||
on_punch = function(pos, node) -- change sound when punched
|
on_punch = function(pos, node) -- change sound when punched
|
||||||
node.param2 = (node.param2+1)%12
|
node.param2 = (node.param2+1)%12
|
||||||
|
@ -264,6 +264,7 @@ minetest.register_node("mesecons_pistons:piston_normal_off", {
|
|||||||
},
|
},
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
after_place_node = piston_orientate,
|
after_place_node = piston_orientate,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
@ -289,6 +290,7 @@ minetest.register_node("mesecons_pistons:piston_normal_on", {
|
|||||||
groups = {cracky = 3, not_in_creative_inventory = 1},
|
groups = {cracky = 3, not_in_creative_inventory = 1},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
drop = "mesecons_pistons:piston_normal_off",
|
drop = "mesecons_pistons:piston_normal_off",
|
||||||
after_dig_node = piston_remove_pusher,
|
after_dig_node = piston_remove_pusher,
|
||||||
node_box = piston_on_box,
|
node_box = piston_on_box,
|
||||||
@ -317,6 +319,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", {
|
|||||||
groups = {not_in_creative_inventory = 1},
|
groups = {not_in_creative_inventory = 1},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
diggable = false,
|
diggable = false,
|
||||||
selection_box = piston_pusher_box,
|
selection_box = piston_pusher_box,
|
||||||
node_box = piston_pusher_box,
|
node_box = piston_pusher_box,
|
||||||
@ -338,6 +341,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", {
|
|||||||
},
|
},
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
after_place_node = piston_orientate,
|
after_place_node = piston_orientate,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
@ -363,6 +367,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", {
|
|||||||
groups = {cracky = 3, not_in_creative_inventory = 1},
|
groups = {cracky = 3, not_in_creative_inventory = 1},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
drop = "mesecons_pistons:piston_sticky_off",
|
drop = "mesecons_pistons:piston_sticky_off",
|
||||||
after_dig_node = piston_remove_pusher,
|
after_dig_node = piston_remove_pusher,
|
||||||
node_box = piston_on_box,
|
node_box = piston_on_box,
|
||||||
@ -391,6 +396,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
|
|||||||
groups = {not_in_creative_inventory = 1},
|
groups = {not_in_creative_inventory = 1},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
diggable = false,
|
diggable = false,
|
||||||
selection_box = piston_pusher_box,
|
selection_box = piston_pusher_box,
|
||||||
node_box = piston_pusher_box,
|
node_box = piston_pusher_box,
|
||||||
|
@ -7,6 +7,7 @@ minetest.register_node("mesecons_powerplant:power_plant", {
|
|||||||
tiles = {"jeija_power_plant.png"},
|
tiles = {"jeija_power_plant.png"},
|
||||||
inventory_image = "jeija_power_plant.png",
|
inventory_image = "jeija_power_plant.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {dig_immediate=3, mesecon = 2},
|
groups = {dig_immediate=3, mesecon = 2},
|
||||||
light_source = default.LIGHT_MAX-9,
|
light_source = default.LIGHT_MAX-9,
|
||||||
|
@ -49,6 +49,7 @@ function mesecon.register_pressure_plate(basename, description, textures_off, te
|
|||||||
inventory_image = image_i,
|
inventory_image = image_i,
|
||||||
wield_image = image_w,
|
wield_image = image_w,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
description = description,
|
description = description,
|
||||||
pressureplate_basename = basename,
|
pressureplate_basename = basename,
|
||||||
on_timer = pp_on_timer,
|
on_timer = pp_on_timer,
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
minetest.register_node("mesecons_random:removestone", {
|
minetest.register_node("mesecons_random:removestone", {
|
||||||
tiles = {"jeija_removestone.png"},
|
tiles = {"jeija_removestone.png"},
|
||||||
|
is_ground_content = false,
|
||||||
inventory_image = minetest.inventorycube("jeija_removestone_inv.png"),
|
inventory_image = minetest.inventorycube("jeija_removestone_inv.png"),
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
description="Removestone",
|
description="Removestone",
|
||||||
@ -30,7 +31,7 @@ minetest.register_craft({
|
|||||||
minetest.register_node("mesecons_random:ghoststone", {
|
minetest.register_node("mesecons_random:ghoststone", {
|
||||||
description="Ghoststone",
|
description="Ghoststone",
|
||||||
tiles = {"jeija_ghoststone.png"},
|
tiles = {"jeija_ghoststone.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
inventory_image = minetest.inventorycube("jeija_ghoststone_inv.png"),
|
inventory_image = minetest.inventorycube("jeija_ghoststone_inv.png"),
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -47,6 +48,7 @@ minetest.register_node("mesecons_random:ghoststone_active", {
|
|||||||
pointable = false,
|
pointable = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
diggable = false,
|
diggable = false,
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
drop = "mesecons_random:ghoststone",
|
drop = "mesecons_random:ghoststone",
|
||||||
|
@ -42,6 +42,7 @@ mesecon.register_node("mesecons_receiver:receiver", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
on_rotate = false,
|
on_rotate = false,
|
||||||
@ -89,6 +90,7 @@ mesecon.register_node("mesecons_receiver:receiver_up", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
on_rotate = false,
|
on_rotate = false,
|
||||||
@ -132,6 +134,7 @@ mesecon.register_node("mesecons_receiver:receiver_down", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
on_rotate = false,
|
on_rotate = false,
|
||||||
|
@ -7,7 +7,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
wall_bottom = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
|
wall_bottom = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
|
||||||
@ -39,7 +39,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
wall_bottom = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
|
wall_bottom = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
minetest.register_node("mesecons_stickyblocks:sticky_block_all", {
|
minetest.register_node("mesecons_stickyblocks:sticky_block_all", {
|
||||||
description = "All-Sides Sticky Block",
|
description = "All-Sides Sticky Block",
|
||||||
tiles = {"default_grass.png^default_footprint.png"},
|
tiles = {"default_grass.png^default_footprint.png"},
|
||||||
|
is_ground_content = false,
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2},
|
||||||
mvps_sticky = function (pos, node)
|
mvps_sticky = function (pos, node)
|
||||||
local connected = {}
|
local connected = {}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
mesecon.register_node("mesecons_switch:mesecon_switch", {
|
mesecon.register_node("mesecons_switch:mesecon_switch", {
|
||||||
paramtype2="facedir",
|
paramtype2="facedir",
|
||||||
description="Switch",
|
description="Switch",
|
||||||
|
is_ground_content = false,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
on_rightclick = function (pos, node)
|
on_rightclick = function (pos, node)
|
||||||
if(mesecon.flipstate(pos, node) == "on") then
|
if(mesecon.flipstate(pos, node) == "on") then
|
||||||
|
@ -54,6 +54,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_off", {
|
|||||||
tiles = {"jeija_torches_off.png", "jeija_torches_off_ceiling.png", "jeija_torches_off_side.png"},
|
tiles = {"jeija_torches_off.png", "jeija_torches_off_ceiling.png", "jeija_torches_off_side.png"},
|
||||||
inventory_image = "jeija_torches_off.png",
|
inventory_image = "jeija_torches_off.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
selection_box = torch_selectionbox,
|
selection_box = torch_selectionbox,
|
||||||
@ -72,6 +73,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
|
|||||||
inventory_image = "jeija_torches_on.png",
|
inventory_image = "jeija_torches_on.png",
|
||||||
wield_image = "jeija_torches_on.png",
|
wield_image = "jeija_torches_on.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
|
@ -8,6 +8,7 @@ mesecon.register_node("mesecons_walllever:wall_lever", {
|
|||||||
wield_image = "jeija_wall_lever_inv.png",
|
wield_image = "jeija_wall_lever_inv.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
|
@ -208,6 +208,7 @@ local function register_wires()
|
|||||||
wield_image = "mesecons_wire_inv.png",
|
wield_image = "mesecons_wire_inv.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = selectionbox,
|
selection_box = selectionbox,
|
||||||
node_box = nodebox,
|
node_box = nodebox,
|
||||||
|
Loading…
Reference in New Issue
Block a user