Fix bad is_ground_content across all mods

This commit is contained in:
Wuzzy 2017-01-04 22:36:51 +01:00
parent af36c9876c
commit 7e980234ce
32 changed files with 161 additions and 52 deletions

View file

@ -4,7 +4,7 @@ minetest.register_node("mesecons:mesecon_off", {
inventory_image = "jeija_mesecon_off.png",
wield_image = "jeija_mesecon_off.png",
paramtype = "light",
is_ground_content = true,
is_ground_content = false,
walkable = false,
selection_box = {
type = "fixed",
@ -22,7 +22,7 @@ minetest.register_node("mesecons:mesecon_on", {
drawtype = "raillike",
tiles = {"jeija_mesecon_on.png", "jeija_mesecon_curved_on.png", "jeija_mesecon_t_junction_on.png", "jeija_mesecon_crossing_on.png"},
paramtype = "light",
is_ground_content = true,
is_ground_content = false,
walkable = false,
selection_box = {
type = "fixed",

View file

@ -99,6 +99,7 @@ for zmy=0, 1 do
description = "Redstone Dust",
drawtype = "nodebox",
tiles = tiles_off,
is_ground_content = false,
-- inventory_image = "wires_inv.png",
-- wield_image = "wires_inv.png",
inventory_image = "default_redstone_dust.png",
@ -128,6 +129,7 @@ for zmy=0, 1 do
description = "Redstone Dust",
drawtype = "nodebox",
tiles = tiles_on,
is_ground_content = false,
-- inventory_image = "wires_inv.png",
-- wield_image = "wires_inv.png",
inventory_image = "default_redstone_dust.png",

View file

@ -26,6 +26,7 @@ minetest.register_node("mesecons_button:button_stone_off", {
paramtype = "light",
paramtype2 = "facedir",
legacy_wallmounted = true,
is_ground_content = false,
walkable = false,
sunlight_propagates = true,
selection_box = {
@ -57,6 +58,7 @@ minetest.register_node("mesecons_button:button_stone_on", {
paramtype = "light",
paramtype2 = "facedir",
legacy_wallmounted = true,
is_ground_content = false,
walkable = false,
sunlight_propagates = true,
selection_box = {
@ -83,6 +85,7 @@ minetest.register_node("mesecons_button:button_wood_off", {
paramtype = "light",
paramtype2 = "facedir",
legacy_wallmounted = true,
is_ground_content = false,
walkable = false,
sunlight_propagates = true,
selection_box = {
@ -114,6 +117,7 @@ minetest.register_node("mesecons_button:button_wood_on", {
paramtype = "light",
paramtype2 = "facedir",
legacy_wallmounted = true,
is_ground_content = false,
walkable = false,
sunlight_propagates = true,
selection_box = {

View file

@ -82,6 +82,7 @@ function doors:register_door(name, def)
tiles = {tb[2], tb[2], tb[2], tb[2], tb[1], tb[1].."^[transformfx"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
drop = name,
drawtype = "nodebox",
node_box = {
@ -116,6 +117,7 @@ function doors:register_door(name, def)
tiles = {tb[2], tb[2], tb[2], tb[2], tb[1].."^[transformfx", tb[1]},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
drop = name,
drawtype = "nodebox",
node_box = {

View file

@ -110,7 +110,7 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = true,
is_ground_content = false,
drop = 'mesecons_delayer:delayer_off_1',
on_punch = function (pos, node)
if node.name=="mesecons_delayer:delayer_off_1" then
@ -165,7 +165,7 @@ minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), {
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = true,
is_ground_content = false,
drop = 'mesecons_delayer:delayer_off_1',
on_punch = function (pos, node)
if node.name=="mesecons_delayer:delayer_on_1" then

View file

@ -2,6 +2,7 @@ minetest.register_node("mesecons_lightstone:lightstone_off", {
tiles = {"jeija_lightstone_gray_off.png"},
inventory_image = minetest.inventorycube("jeija_lightstone_gray_off.png"),
groups = {cracky=2, mesecon_effector_off = 1, mesecon = 2},
is_ground_content = false,
description= "Redstone Lamp",
sounds = default.node_sound_stone_defaults(),
mesecons = {effector = {
@ -16,6 +17,7 @@ minetest.register_node("mesecons_lightstone:lightstone_on", {
inventory_image = minetest.inventorycube("jeija_lightstone_gray_off.png"),
groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2},
drop = "node mesecons_lightstone:lightstone_off",
is_ground_content = false,
light_source = 14,
sounds = default.node_sound_stone_defaults(),
mesecons = {effector = {

View file

@ -5,6 +5,7 @@ minetest.register_node("mesecons_noteblock:noteblock", {
drawtype = "allfaces_optional",
visual_scale = 1.3,
paramtype="light",
is_ground_content = false,
after_place_node = function(pos)
minetest.env:add_node(pos, {name="mesecons_noteblock:noteblock", param2=0})
end,

View file

@ -154,6 +154,7 @@ minetest.register_node("mesecons_pistons:piston_normal_off", {
},
groups = {cracky = 3},
paramtype2 = "facedir",
is_ground_content = false,
after_place_node = piston_orientate,
mesecons_piston = pistonspec_normal,
sounds = default.node_sound_wood_defaults(),
@ -179,6 +180,7 @@ minetest.register_node("mesecons_pistons:piston_normal_on", {
groups = {cracky = 3, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
after_dig_node = piston_remove_pusher,
node_box = piston_on_box,
@ -204,6 +206,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
corresponding_piston = "mesecons_pistons:piston_normal_on",
selection_box = piston_pusher_box,
@ -235,6 +238,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", {
},
groups = {cracky = 3},
paramtype2 = "facedir",
is_ground_content = false,
after_place_node = piston_orientate,
mesecons_piston = pistonspec_sticky,
sounds = default.node_sound_wood_defaults(),
@ -260,6 +264,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", {
groups = {cracky = 3, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
after_dig_node = piston_remove_pusher,
node_box = piston_on_box,
@ -285,6 +290,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
corresponding_piston = "mesecons_pistons:piston_sticky_on",
selection_box = piston_pusher_box,
@ -335,6 +341,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_off", {
wield_image = "mesecons_piston_top.png",
groups = {cracky = 3, not_in_creative_inventory = 1},
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
mesecons_piston = pistonspec_normal_up,
mesecons = {effector={
@ -359,6 +366,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", {
groups = {cracky = 3, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
after_dig_node = piston_remove_pusher,
node_box = piston_up_on_box,
@ -384,6 +392,7 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_normal", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
corresponding_piston = "mesecons_pistons:piston_up_normal_on",
selection_box = piston_up_pusher_box,
@ -418,6 +427,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", {
wield_image = "mesecons_piston_top.png",
groups = {cracky = 3, not_in_creative_inventory = 1},
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_sticky_off",
mesecons_piston = pistonspec_sticky_up,
sounds = default.node_sound_wood_defaults(),
@ -443,6 +453,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", {
groups = {cracky = 3, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
after_dig_node = piston_remove_pusher,
node_box = piston_up_on_box,
@ -468,6 +479,7 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_sticky", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
corresponding_piston = "mesecons_pistons:piston_up_sticky_on",
selection_box = piston_up_pusher_box,
@ -520,6 +532,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", {
wield_image = "mesecons_piston_top.png",
groups = {cracky = 3, not_in_creative_inventory = 1},
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
mesecons_piston = pistonspec_normal_down,
sounds = default.node_sound_wood_defaults(),
@ -545,6 +558,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", {
groups = {cracky = 3, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
after_dig_node = piston_remove_pusher,
node_box = piston_down_on_box,
@ -570,6 +584,7 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_normal", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
corresponding_piston = "mesecons_pistons:piston_down_normal_on",
selection_box = piston_down_pusher_box,
@ -600,6 +615,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", {
wield_image = "mesecons_piston_top.png",
groups = {cracky = 3, not_in_creative_inventory = 1},
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_sticky_off",
mesecons_piston = pistonspec_sticky_down,
sounds = default.node_sound_wood_defaults(),
@ -625,6 +641,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", {
groups = {cracky = 3, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_sticky_off",
after_dig_node = piston_remove_pusher,
node_box = piston_down_on_box,
@ -650,6 +667,7 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_sticky", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
corresponding_piston = "mesecons_pistons:piston_down_sticky_on",
selection_box = piston_down_pusher_box,

View file

@ -63,6 +63,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
selection_box = pp_box_off,
node_box = pp_box_off,
groups = {snappy = 2, oddly_breakable_by_hand = 3},
is_ground_content = false,
description = description,
pressureplate = ppspec,
on_timer = pp_on_timer,
@ -81,6 +82,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
selection_box = pp_box_on,
node_box = pp_box_on,
groups = {snappy = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1},
is_ground_content = false,
drop = offstate,
pressureplate = ppspec,
on_timer = pp_on_timer,

View file

@ -8,7 +8,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", {
wield_image = "jeija_solar_panel.png",
paramtype = "light",
walkable = false,
is_ground_content = true,
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = boxes
@ -33,8 +33,8 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", {
wield_image = "jeija_solar_panel.png",
paramtype = "light",
walkable = false,
is_ground_content = true,
selection_box = {
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = boxes
},
@ -97,7 +97,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", {
wield_image = "jeija_solar_panel_inverted.png",
paramtype = "light",
walkable = false,
is_ground_content = true,
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = boxes
@ -122,8 +122,8 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_off", {
wield_image = "jeija_solar_panel_inverted.png",
paramtype = "light",
walkable = false,
is_ground_content = true,
selection_box = {
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = boxes
},

View file

@ -56,6 +56,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_off", {
paramtype = "light",
walkable = false,
paramtype2 = "wallmounted",
is_ground_content = false,
selection_box = torch_selectionbox,
groups = {dig_immediate = 3, not_in_creative_inventory = 1},
drop = "mesecons_torch:mesecon_torch_on",
@ -75,6 +76,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
sunlight_propagates = true,
walkable = false,
paramtype2 = "wallmounted",
is_ground_content = false,
selection_box = torch_selectionbox,
groups = {dig_immediate=3},
light_source = 6,
@ -91,6 +93,7 @@ minetest.register_node("mesecons_torch:redstoneblock", {
stack_max = 64,
groups = {cracky=1},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
mesecons = {receptor = {
state = mesecon.state.on,
rules = torch_get_output_rules

View file

@ -28,6 +28,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
{ -1/16, -8/16, 7/16, 1/16, 0/16, 5/16 }} -- the lever itself.
},
groups = {dig_immediate=2},
is_ground_content = false,
description="Lever",
on_punch = function (pos, node)
mesecon:swap_node(pos, "mesecons_walllever:wall_lever_on")
@ -66,6 +67,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
{ -1/16, 0/16, 7/16, 1/16, 8/16, 5/16 }} -- the lever itself.
},
groups = {dig_immediate = 2, not_in_creative_inventory = 1},
is_ground_content = false,
drop = '"mesecons_walllever:wall_lever_off" 1',
description="Lever",
on_punch = function (pos, node)