From 005b509938a125651b23ef8bf21c109b6c795cdf Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 11 Mar 2017 16:36:05 +0100 Subject: [PATCH] Add is_ground_content=false to some nodes --- mods/ENTITIES/mobs/spawner.lua | 1 + mods/HUD/mcl_inventory/init.lua | 1 + mods/ITEMS/mcl_cauldrons/init.lua | 2 ++ mods/ITEMS/mcl_core/nodes.lua | 11 +++++++++-- mods/ITEMS/mcl_farming/pumpkin.lua | 1 + mods/ITEMS/mcl_flowerpots/nodes.lua | 3 +++ mods/ITEMS/mcl_hoppers/init.lua | 2 ++ mods/ITEMS/mcl_jukebox/init.lua | 1 + mods/ITEMS/mcl_minecarts/rails.lua | 2 +- mods/ITEMS/mcl_torches/init.lua | 2 ++ 10 files changed, 23 insertions(+), 3 deletions(-) diff --git a/mods/ENTITIES/mobs/spawner.lua b/mods/ENTITIES/mobs/spawner.lua index 51522f81d5..d195f5f986 100644 --- a/mods/ENTITIES/mobs/spawner.lua +++ b/mods/ENTITIES/mobs/spawner.lua @@ -12,6 +12,7 @@ minetest.register_node("mobs:spawner", { walkable = true, description = S("Monster Spawner"), groups = {pickaxey=1, not_in_creative_inventory = 1, material_stone=1}, + is_ground_content = false, drop = "", on_construct = function(pos) diff --git a/mods/HUD/mcl_inventory/init.lua b/mods/HUD/mcl_inventory/init.lua index 9990d3d026..0f172ed2a7 100644 --- a/mods/HUD/mcl_inventory/init.lua +++ b/mods/HUD/mcl_inventory/init.lua @@ -185,6 +185,7 @@ minetest.register_node("mcl_inventory:workbench", { description = "Crafting Table", _doc_items_longdesc = "A crafting table is a block which grants you access to a 3×3 crafting grid which allows you to perform advanced crafts.", _doc_items_usagehelp = "Rightclick the crafting table to access the 3×3 crafting grid.", + is_ground_content = false, tiles = {"crafting_workbench_top.png", "default_wood.png", "crafting_workbench_side.png", "crafting_workbench_side.png", "crafting_workbench_front.png", "crafting_workbench_front.png"}, paramtype2 = "facedir", diff --git a/mods/ITEMS/mcl_cauldrons/init.lua b/mods/ITEMS/mcl_cauldrons/init.lua index a3974d7c7f..47cd8a44a1 100644 --- a/mods/ITEMS/mcl_cauldrons/init.lua +++ b/mods/ITEMS/mcl_cauldrons/init.lua @@ -49,6 +49,7 @@ minetest.register_node("mcl_cauldrons:cauldron", { inventory_image = "mcl_cauldrons_cauldron.png", drawtype = "nodebox", paramtype = "light", + is_ground_content = false, sunlight_propagates = true, groups = {pickaxey=1, deco_block=1}, node_box = cauldron_nodeboxes[0], @@ -70,6 +71,7 @@ local register_filled_cauldron = function(water_level, description) _doc_items_create_entry = false, drawtype = "nodebox", paramtype = "light", + is_ground_content = false, sunlight_propagates = true, groups = {pickaxey=1, not_in_creative_inventory=1}, node_box = cauldron_nodeboxes[water_level], diff --git a/mods/ITEMS/mcl_core/nodes.lua b/mods/ITEMS/mcl_core/nodes.lua index f6ff1efe7a..ad685c0fef 100644 --- a/mods/ITEMS/mcl_core/nodes.lua +++ b/mods/ITEMS/mcl_core/nodes.lua @@ -241,6 +241,7 @@ minetest.register_node("mcl_core:stonebrick", { stack_max = 64, groups = {pickaxey=1, stone=1, stonebrick=1, building_block=1, deco_block=1, material_stone=1}, sounds = mcl_sounds.node_sound_stone_defaults(), + is_ground_content = false, _mcl_blast_resistance = 30, _mcl_hardness = 1.5, }) @@ -252,6 +253,7 @@ minetest.register_node("mcl_core:stonebrickcarved", { stack_max = 64, groups = {pickaxey=1, stone=1, stonebrick=1, building_block=1, deco_block=1, material_stone=1}, sounds = mcl_sounds.node_sound_stone_defaults(), + is_ground_content = false, _mcl_blast_resistance = 30, _mcl_hardness = 1.5, }) @@ -263,6 +265,7 @@ minetest.register_node("mcl_core:stonebrickcracked", { stack_max = 64, groups = {pickaxey=1, stone=1, stonebrick=1, building_block=1, deco_block=1, material_stone=1}, sounds = mcl_sounds.node_sound_stone_defaults(), + is_ground_content = false, _mcl_blast_resistance = 30, _mcl_hardness = 1.5, }) @@ -273,6 +276,7 @@ minetest.register_node("mcl_core:stonebrickmossy", { stack_max = 64, groups = {pickaxey=1, stone=1, stonebrick=1, building_block=1, deco_block=1, material_stone=1}, sounds = mcl_sounds.node_sound_stone_defaults(), + is_ground_content = false, _mcl_blast_resistance = 30, _mcl_hardness = 1.5, }) @@ -294,6 +298,7 @@ minetest.register_node("mcl_core:granite_smooth", { _doc_items_longdesc = "Polished granite is a decorational building block made from granite.", tiles = {"default_granite_smooth.png"}, stack_max = 64, + is_ground_content = false, groups = {pickaxey=1, stone=1, building_block=1, material_stone=1}, sounds = mcl_sounds.node_sound_stone_defaults(), _mcl_blast_resistance = 30, @@ -316,6 +321,7 @@ minetest.register_node("mcl_core:andesite_smooth", { description = "Polished Andesite", _doc_items_longdesc = "Polished andesite is a decorational building block made from andesite.", tiles = {"default_andesite_smooth.png"}, + is_ground_content = false, stack_max = 64, groups = {pickaxey=1, stone=1, building_block=1, material_stone=1}, sounds = mcl_sounds.node_sound_stone_defaults(), @@ -339,6 +345,7 @@ minetest.register_node("mcl_core:diorite_smooth", { description = "Polished Diorite", _doc_items_longdesc = "Polished diorite is a decorational building block made from diorite.", tiles = {"default_diorite_smooth.png"}, + is_ground_content = false, stack_max = 64, groups = {pickaxey=1, stone=1, building_block=1, material_stone=1}, sounds = mcl_sounds.node_sound_stone_defaults(), @@ -1500,7 +1507,7 @@ minetest.register_node("mcl_core:lava_source", { minetest.register_node("mcl_core:cobble", { description = "Cobblestone", tiles = {"default_cobble.png"}, - is_ground_content = true, + is_ground_content = false, stack_max = 64, groups = {pickaxey=1, building_block=1, deco_block=1, material_stone=1}, sounds = mcl_sounds.node_sound_stone_defaults(), @@ -1511,7 +1518,7 @@ minetest.register_node("mcl_core:cobble", { minetest.register_node("mcl_core:mossycobble", { description = "Moss Stone", tiles = {"default_mossycobble.png"}, - is_ground_content = true, + is_ground_content = false, stack_max = 64, groups = {pickaxey=1, building_block=1, material_stone=1}, sounds = mcl_sounds.node_sound_stone_defaults(), diff --git a/mods/ITEMS/mcl_farming/pumpkin.lua b/mods/ITEMS/mcl_farming/pumpkin.lua index f035d18cb5..39247c44f8 100644 --- a/mods/ITEMS/mcl_farming/pumpkin.lua +++ b/mods/ITEMS/mcl_farming/pumpkin.lua @@ -306,6 +306,7 @@ minetest.register_abm({ minetest.register_node("mcl_farming:pumpkin_face_light", { description = "Jack o'Lantern", + is_ground_content = false, stack_max = 64, paramtype2 = "facedir", -- Real light level: 15 (Minetest caps at 14) diff --git a/mods/ITEMS/mcl_flowerpots/nodes.lua b/mods/ITEMS/mcl_flowerpots/nodes.lua index 2c19a59c08..888d61f700 100644 --- a/mods/ITEMS/mcl_flowerpots/nodes.lua +++ b/mods/ITEMS/mcl_flowerpots/nodes.lua @@ -47,6 +47,7 @@ minetest.register_node("mcl_flowerpots:flower_pot", { type = "fixed", fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2} }, + is_ground_content = false, inventory_image = "mcl_flowerpots_flowerpot_inventory.png", groups = {dig_immediate=3, deco_block=1, attached_node=1, flower_pot=1}, sounds = mcl_sounds.node_sound_stone_defaults(), @@ -108,6 +109,7 @@ minetest.register_node("mcl_flowerpots:flower_pot_"..flower, { type = "fixed", fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2} }, + is_ground_content = false, groups = {dig_immediate=3, attached_node=1, not_in_creative_inventory=1, flower_pot=2}, sounds = mcl_sounds.node_sound_stone_defaults(), on_rightclick = function(pos, item, clicker) @@ -145,6 +147,7 @@ minetest.register_node("mcl_flowerpots:flower_pot_"..flower, { type = "fixed", fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2} }, + is_ground_content = false, groups = {dig_immediate=3, attached_node=1, not_in_creative_inventory=1, flower_pot=2}, sounds = mcl_sounds.node_sound_stone_defaults(), on_rightclick = function(pos, item, clicker) diff --git a/mods/ITEMS/mcl_hoppers/init.lua b/mods/ITEMS/mcl_hoppers/init.lua index 3459f2550a..df97e685f8 100644 --- a/mods/ITEMS/mcl_hoppers/init.lua +++ b/mods/ITEMS/mcl_hoppers/init.lua @@ -43,6 +43,7 @@ Hoppers interact with containers the following way: {-0.15, -0.3, -0.15, 0.15, -0.5, 0.15}, }, }, + is_ground_content = false, on_construct = function(pos) local meta = minetest.get_meta(pos) @@ -156,6 +157,7 @@ minetest.register_node("mcl_hoppers:hopper_side", { {-0.7, -0.3, -0.15, 0.15, 0.0, 0.15}, }, }, + is_ground_content = false, on_construct = function(pos) local meta = minetest.get_meta(pos) diff --git a/mods/ITEMS/mcl_jukebox/init.lua b/mods/ITEMS/mcl_jukebox/init.lua index a085a32291..02d9644c90 100644 --- a/mods/ITEMS/mcl_jukebox/init.lua +++ b/mods/ITEMS/mcl_jukebox/init.lua @@ -92,6 +92,7 @@ minetest.register_node("mcl_jukebox:jukebox", { tiles = {"mcl_jukebox_top.png", "mcl_jukebox_side.png", "mcl_jukebox_side.png"}, sounds = mcl_sounds.node_sound_wood_defaults(), groups = {handy=1,axey=1, deco_block=1, material_wood=1}, + is_ground_content = false, on_construct = function(pos) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() diff --git a/mods/ITEMS/mcl_minecarts/rails.lua b/mods/ITEMS/mcl_minecarts/rails.lua index f2f8ef7dcb..62167891b4 100644 --- a/mods/ITEMS/mcl_minecarts/rails.lua +++ b/mods/ITEMS/mcl_minecarts/rails.lua @@ -37,7 +37,7 @@ minetest.register_node("mcl_minecarts:golden_rail", { inventory_image = "carts_rail_pwr.png", wield_image = "carts_rail_pwr.png", paramtype = "light", - is_ground_content = true, + is_ground_content = false, walkable = false, selection_box = { type = "fixed", diff --git a/mods/ITEMS/mcl_torches/init.lua b/mods/ITEMS/mcl_torches/init.lua index 87efe1df21..24bf8c199d 100644 --- a/mods/ITEMS/mcl_torches/init.lua +++ b/mods/ITEMS/mcl_torches/init.lua @@ -28,6 +28,7 @@ mcl_torches.register_torch = function(substring, description, icon, mesh_floor, paramtype = "light", paramtype2 = "wallmounted", sunlight_propagates = true, + is_ground_content = false, walkable = false, liquids_pointable = false, light_source = light, @@ -134,6 +135,7 @@ mcl_torches.register_torch = function(substring, description, icon, mesh_floor, paramtype = "light", paramtype2 = "wallmounted", sunlight_propagates = true, + is_ground_content = false, walkable = false, light_source = light, groups = groups_wall,