Skip to content

Commit

Permalink
Set is_ground_content to false (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
Desour authored and numberZero committed Oct 31, 2017
1 parent db39eef commit ff0bd76
Show file tree
Hide file tree
Showing 31 changed files with 63 additions and 10 deletions.
4 changes: 2 additions & 2 deletions mesecons/oldwires.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions mesecons_blinkyplant/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ mesecon.register_node("mesecons_blinkyplant:blinky_plant", {
drawtype = "plantlike",
inventory_image = "jeija_blinky_plant_off.png",
paramtype = "light",
is_ground_content = false,
walkable = false,
sounds = default.node_sound_leaves_defaults(),
selection_box = {
Expand Down
2 changes: 2 additions & 0 deletions mesecons_button/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ minetest.register_node("mesecons_button:button_off", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
legacy_wallmounted = true,
walkable = false,
on_rotate = mesecon.buttonlike_onrotate,
Expand Down Expand Up @@ -68,6 +69,7 @@ minetest.register_node("mesecons_button:button_on", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
legacy_wallmounted = true,
walkable = false,
on_rotate = false,
Expand Down
2 changes: 2 additions & 0 deletions mesecons_commandblock/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ minetest.register_node("mesecons_commandblock:commandblock_off", {
description = "Command Block",
tiles = {"jeija_commandblock_off.png"},
inventory_image = minetest.inventorycube("jeija_commandblock_off.png"),
is_ground_content = false,
groups = {cracky=2, mesecon_effector_off=1},
on_construct = construct,
after_place_node = after_place,
Expand All @@ -195,6 +196,7 @@ minetest.register_node("mesecons_commandblock:commandblock_off", {

minetest.register_node("mesecons_commandblock:commandblock_on", {
tiles = {"jeija_commandblock_on.png"},
is_ground_content = false,
groups = {cracky=2, mesecon_effector_on=1, not_in_creative_inventory=1},
light_source = 10,
drop = "mesecons_commandblock:commandblock_off",
Expand Down
4 changes: 2 additions & 2 deletions mesecons_delayer/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,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
Expand Down Expand Up @@ -143,7 +143,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
Expand Down
4 changes: 4 additions & 0 deletions mesecons_detector/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ local object_detector_digiline = {
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"},
paramtype = "light",
is_ground_content = false,
walkable = true,
groups = {cracky=3},
description="Player Detector",
Expand All @@ -83,6 +84,7 @@ minetest.register_node("mesecons_detector:object_detector_off", {
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"},
paramtype = "light",
is_ground_content = false,
walkable = true,
groups = {cracky=3,not_in_creative_inventory=1},
drop = 'mesecons_detector:object_detector_off',
Expand Down Expand Up @@ -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"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
walkable = true,
groups = {cracky=3},
description="Node Detector",
Expand All @@ -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"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
walkable = true,
groups = {cracky=3,not_in_creative_inventory=1},
drop = 'mesecons_detector:node_detector_off',
Expand Down
2 changes: 2 additions & 0 deletions mesecons_extrawires/corner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ minetest.register_node("mesecons_extrawires:corner_on", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
walkable = false,
sunlight_propagates = true,
selection_box = corner_selectionbox,
Expand Down Expand Up @@ -61,6 +62,7 @@ minetest.register_node("mesecons_extrawires:corner_off", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
walkable = false,
sunlight_propagates = true,
selection_box = corner_selectionbox,
Expand Down
4 changes: 4 additions & 0 deletions mesecons_extrawires/crossover.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ minetest.register_node("mesecons_extrawires:crossover_off", {
"jeija_insulated_wire_ends_off.png"
},
paramtype = "light",
is_ground_content = false,
walkable = false,
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}},
Expand All @@ -54,6 +55,7 @@ minetest.register_node("mesecons_extrawires:crossover_01", {
"jeija_insulated_wire_ends_off.png"
},
paramtype = "light",
is_ground_content = false,
walkable = false,
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}},
Expand All @@ -79,6 +81,7 @@ minetest.register_node("mesecons_extrawires:crossover_10", {
"jeija_insulated_wire_ends_on.png"
},
paramtype = "light",
is_ground_content = false,
walkable = false,
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}},
Expand All @@ -104,6 +107,7 @@ minetest.register_node("mesecons_extrawires:crossover_on", {
"jeija_insulated_wire_ends_on.png"
},
paramtype = "light",
is_ground_content = false,
walkable = false,
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}},
Expand Down
2 changes: 2 additions & 0 deletions mesecons_extrawires/tjunction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ minetest.register_node("mesecons_extrawires:tjunction_on", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
walkable = false,
sunlight_propagates = true,
selection_box = tjunction_selectionbox,
Expand Down Expand Up @@ -62,6 +63,7 @@ minetest.register_node("mesecons_extrawires:tjunction_off", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
walkable = false,
sunlight_propagates = true,
selection_box = tjunction_selectionbox,
Expand Down
3 changes: 3 additions & 0 deletions mesecons_extrawires/vertical.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ mesecon.register_node("mesecons_extrawires:vertical", {
drawtype = "nodebox",
walkable = false,
paramtype = "light",
is_ground_content = false,
sunlight_propagates = true,
selection_box = vertical_box,
node_box = vertical_box,
Expand Down Expand Up @@ -112,6 +113,7 @@ mesecon.register_node("mesecons_extrawires:vertical_top", {
drawtype = "nodebox",
walkable = false,
paramtype = "light",
is_ground_content = false,
sunlight_propagates = true,
groups = {dig_immediate=3, not_in_creative_inventory=1},
selection_box = top_box,
Expand Down Expand Up @@ -142,6 +144,7 @@ mesecon.register_node("mesecons_extrawires:vertical_bottom", {
drawtype = "nodebox",
walkable = false,
paramtype = "light",
is_ground_content = false,
sunlight_propagates = true,
groups = {dig_immediate = 3, not_in_creative_inventory = 1},
selection_box = bottom_box,
Expand Down
1 change: 1 addition & 0 deletions mesecons_fpga/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ plg.register_nodes({
"jeija_fpga_sides.png"
},
inventory_image = "", -- replaced later
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
walkable = true,
Expand Down
1 change: 1 addition & 0 deletions mesecons_gates/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ local function register_gate(name, inputnumber, assess, recipe, description)
inventory_image = "jeija_gate_off.png^jeija_gate_"..name..".png",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
drawtype = "nodebox",
drop = basename.."_off",
selection_box = nodebox,
Expand Down
2 changes: 2 additions & 0 deletions mesecons_hydroturbine/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
"jeija_hydro_turbine_turbine_misc_off.png"
},
inventory_image = "jeija_hydro_turbine_inv.png",
is_ground_content = false,
wield_scale = {x=0.75, y=0.75, z=0.75},
groups = {dig_immediate=2},
description="Water Turbine",
Expand All @@ -30,6 +31,7 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {

minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
drawtype = "mesh",
is_ground_content = false,
mesh = "jeija_hydro_turbine_on.obj",
wield_scale = {x=0.75, y=0.75, z=0.75},
tiles = {
Expand Down
2 changes: 2 additions & 0 deletions mesecons_insulated/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ minetest.register_node("mesecons_insulated:insulated_on", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
walkable = false,
sunlight_propagates = true,
selection_box = {
Expand Down Expand Up @@ -53,6 +54,7 @@ minetest.register_node("mesecons_insulated:insulated_off", {
},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
walkable = false,
sunlight_propagates = true,
selection_box = {
Expand Down
2 changes: 2 additions & 0 deletions mesecons_lamp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ minetest.register_node("mesecons_lamp:lamp_on", {
tiles = {"jeija_meselamp_on.png"},
paramtype = "light",
paramtype2 = "wallmounted",
is_ground_content = false,
legacy_wallmounted = true,
sunlight_propagates = true,
walkable = true,
Expand All @@ -39,6 +40,7 @@ minetest.register_node("mesecons_lamp:lamp_off", {
wield_image = "jeija_meselamp.png",
paramtype = "light",
paramtype2 = "wallmounted",
is_ground_content = false,
sunlight_propagates = true,
walkable = true,
node_box = mesecon_lamp_box,
Expand Down
2 changes: 2 additions & 0 deletions mesecons_lightstone/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function mesecon.lightstone_add(name, base_item, texture_off, texture_on, desc)
end
minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_off", {
tiles = {texture_off},
is_ground_content = false,
groups = {cracky = 2, mesecon_effector_off = 1, mesecon = 2},
description = desc,
sounds = default.node_sound_stone_defaults(),
Expand All @@ -33,6 +34,7 @@ function mesecon.lightstone_add(name, base_item, texture_off, texture_on, desc)
})
minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_on", {
tiles = {texture_on},
is_ground_content = false,
groups = {cracky = 2, not_in_creative_inventory = 1, mesecon = 2},
drop = "mesecons_lightstone:lightstone_" .. name .. "_off",
light_source = minetest.LIGHT_MAX - 2,
Expand Down
2 changes: 2 additions & 0 deletions mesecons_luacontroller/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ for d = 0, 1 do
},
inventory_image = top,
paramtype = "light",
is_ground_content = false,
groups = groups,
drop = BASENAME.."0000",
sunlight_propagates = true,
Expand Down Expand Up @@ -672,6 +673,7 @@ minetest.register_node(BASENAME .. "_burnt", {
inventory_image = "jeija_luacontroller_burnt_top.png",
is_burnt = true,
paramtype = "light",
is_ground_content = false,
groups = {dig_immediate=2, not_in_creative_inventory=1},
drop = BASENAME.."0000",
sunlight_propagates = true,
Expand Down
1 change: 1 addition & 0 deletions mesecons_microcontroller/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ minetest.register_node(nodename, {

sunlight_propagates = true,
paramtype = "light",
is_ground_content = false,
walkable = true,
groups = groups,
drop = "mesecons_microcontroller:microcontroller0000 1",
Expand Down
4 changes: 2 additions & 2 deletions mesecons_movestones/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ function mesecon.register_movestone(name, def, is_sticky, is_vertical)
end
end

def.is_ground_content = false

def.mesecons = {effector = {
action_on = function(pos, node, rulename)
if rulename and not minetest.get_node_timer(pos):is_started() then
Expand All @@ -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

minetest.register_node(name, def)
end

Expand Down
1 change: 1 addition & 0 deletions mesecons_noteblock/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
minetest.register_node("mesecons_noteblock:noteblock", {
description = "Noteblock",
tiles = {"mesecons_noteblock.png"},
is_ground_content = false,
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
on_punch = function(pos, node) -- change sound when punched
node.param2 = (node.param2+1)%12
Expand Down
6 changes: 6 additions & 0 deletions mesecons_pistons/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ minetest.register_node("mesecons_pistons:piston_normal_off", {
},
groups = {cracky = 3},
paramtype2 = "facedir",
is_ground_content = false,
after_place_node = piston_orientate,
sounds = default.node_sound_wood_defaults(),
mesecons = {effector={
Expand All @@ -289,6 +290,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,
Expand Down Expand Up @@ -317,6 +319,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", {
groups = {not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
selection_box = piston_pusher_box,
node_box = piston_pusher_box,
Expand All @@ -338,6 +341,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", {
},
groups = {cracky = 3},
paramtype2 = "facedir",
is_ground_content = false,
after_place_node = piston_orientate,
sounds = default.node_sound_wood_defaults(),
mesecons = {effector={
Expand All @@ -363,6 +367,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_sticky_off",
after_dig_node = piston_remove_pusher,
node_box = piston_on_box,
Expand Down Expand Up @@ -391,6 +396,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
groups = {not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
selection_box = piston_pusher_box,
node_box = piston_pusher_box,
Expand Down
1 change: 1 addition & 0 deletions mesecons_powerplant/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ minetest.register_node("mesecons_powerplant:power_plant", {
tiles = {"jeija_power_plant.png"},
inventory_image = "jeija_power_plant.png",
paramtype = "light",
is_ground_content = false,
walkable = false,
groups = {dig_immediate=3, mesecon = 2},
light_source = default.LIGHT_MAX-9,
Expand Down
3 changes: 2 additions & 1 deletion mesecons_pressureplates/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ function mesecon.register_pressure_plate(basename, description, textures_off, te
inventory_image = image_i,
wield_image = image_w,
paramtype = "light",
description = description,
is_ground_content = false,
description = description,
pressureplate_basename = basename,
on_timer = pp_on_timer,
on_construct = function(pos)
Expand Down
Loading

0 comments on commit ff0bd76

Please sign in to comment.