add opaque group to light-sensitive dirt types

Mineclone adds the "opaque" group only to non-light nodes, and torches check for the opaque group to decide whether they can be placed there. light-sensitive nodes need the "light" paramtype to work, though. So adding the opaque group manually to these.
This commit is contained in:
FaceDeer 2022-08-15 16:15:47 -06:00
parent 8a0d4d0c56
commit bec874826a
3 changed files with 13 additions and 14 deletions

View File

@ -45,7 +45,7 @@ minetest.register_node("df_mapitems:dirt_with_cave_moss", {
is_ground_content = false,
light_source = 2,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, handy=1,shovely=1,dirt=2, soil_sapling=2, soil_sugarcane=1, cultivatable=1, enderman_takable=1, building_block=1, compostability=30},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, handy=1,shovely=1,dirt=2, soil_sapling=2, soil_sugarcane=1, cultivatable=1, enderman_takable=1, building_block=1, compostability=30, opaque=1},
sounds = df_dependencies.sound_dirt({footstep = {name = df_dependencies.soundfile_grass_footstep, gain = 0.25},}),
soil = {
base = "df_mapitems:dirt_with_cave_moss",
@ -73,7 +73,7 @@ minetest.register_node("df_mapitems:sand_scum", {
is_ground_content = false,
light_source = 2,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, handy=1,shovely=1, falling_node=1, sand=1, soil_sugarcane=1, enderman_takable=1, building_block=1, material_sand=1},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, handy=1,shovely=1, falling_node=1, sand=1, soil_sugarcane=1, enderman_takable=1, building_block=1, material_sand=1, opaque=1},
sounds = df_dependencies.sound_sand({footstep = {name = "dfcaverns_squish", gain = 0.25},}),
_dfcaverns_dead_node = sand_node,
_mcl_blast_resistance = 0.5,
@ -96,7 +96,7 @@ minetest.register_node("df_mapitems:dirt_with_pebble_fungus", {
is_ground_content = false,
light_source = 2,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, handy=1,shovely=1,dirt=2, soil_sapling=2, soil_sugarcane=1, cultivatable=1, enderman_takable=1, building_block=1, compostability=30},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, handy=1,shovely=1,dirt=2, soil_sapling=2, soil_sugarcane=1, cultivatable=1, enderman_takable=1, building_block=1, compostability=30, opaque=1},
sounds = df_dependencies.sound_dirt(),
soil = {
base = "df_mapitems:dirt_with_pebble_fungus",
@ -124,7 +124,7 @@ minetest.register_node("df_mapitems:dirt_with_stillworm", {
is_ground_content = false,
light_source = 2,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, handy=1,shovely=1,dirt=2, soil_sapling=2, soil_sugarcane=1, cultivatable=1, enderman_takable=1, building_block=1, compostability=30},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, handy=1,shovely=1,dirt=2, soil_sapling=2, soil_sugarcane=1, cultivatable=1, enderman_takable=1, building_block=1, compostability=30, opaque=1},
sounds = df_dependencies.sound_dirt({footstep = {name = df_dependencies.soundfile_grass_footstep, gain = 0.25},}),
soil = {
base = "df_mapitems:dirt_with_stillworm",
@ -149,7 +149,7 @@ minetest.register_node("df_mapitems:spongestone", {
drop = dirt_node,
is_ground_content = false,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, shovely=1,dirt=2, enderman_takable=1, building_block=1, compostability=10},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, shovely=1,dirt=2, enderman_takable=1, building_block=1, compostability=10, opaque=1},
sounds = df_dependencies.sound_dirt(),
soil = {
base = "df_mapitems:spongestone",
@ -172,7 +172,7 @@ minetest.register_node("df_mapitems:rock_rot", {
is_ground_content = false,
light_source = 2,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, shovely=1,dirt=2, enderman_takable=1, building_block=1, compostability=5},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8, shovely=1,dirt=2, enderman_takable=1, building_block=1, compostability=5, opaque=1},
sounds = df_dependencies.sound_dirt(),
_dfcaverns_dead_node = stone_node,
_mcl_blast_resistance = 3,
@ -193,9 +193,9 @@ minetest.register_node("df_mapitems:cobble_with_floor_fungus", {
_doc_items_usagehelp = df_mapitems.doc.floor_fungus_usage,
tiles = {df_dependencies.texture_cobble .. "^dfcaverns_floor_fungus.png"},
drop = cobble_node,
is_ground_content = false,
paramtype = "light",
groups = {cracky = 3, stone = 2, slippery = 1, light_sensitive_fungus = 8, df_caverns_floor_fungus = 1, pickaxey=1, building_block=1, material_stone=1},
is_ground_content = false,
groups = {cracky = 3, stone = 2, slippery = 1, light_sensitive_fungus = 8, df_caverns_floor_fungus = 1, pickaxey=1, building_block=1, material_stone=1, opaque=1},
_dfcaverns_dead_node = df_dependencies.node_name_cobble,
sounds = df_dependencies.sound_stone({footstep = {name = "dfcaverns_squish", gain = 0.25},}),
_mcl_blast_resistance = 6,
@ -210,9 +210,9 @@ minetest.register_node("df_mapitems:cobble_with_floor_fungus_fine", {
drop = cobble_node,
is_ground_content = false,
paramtype = "light",
groups = {cracky = 3, stone = 2, slippery = 1, light_sensitive_fungus = 8, df_caverns_floor_fungus = 1, pickaxey=1, building_block=1, material_stone=1},
groups = {cracky = 3, stone = 2, slippery = 1, light_sensitive_fungus = 8, df_caverns_floor_fungus = 1, pickaxey=1, building_block=1, material_stone=1, opaque=1},
_dfcaverns_dead_node = df_dependencies.node_name_cobble,
df_dependencies.sound_stone({footstep = {name = "dfcaverns_squish", gain = 0.25},}),
sounds = df_dependencies.sound_stone({footstep = {name = "dfcaverns_squish", gain = 0.25},}),
_mcl_blast_resistance = 6,
_mcl_hardness = 1.5,
on_timer = function(pos, elapsed)
@ -253,7 +253,7 @@ minetest.register_node("df_mapitems:ice_with_hoar_moss", {
paramtype = "light",
light_source = 2,
is_ground_content = false,
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1, slippery = 2, light_sensitive_fungus = 8, handy=1,pickaxey=1, building_block=1, ice=1},
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1, slippery = 2, light_sensitive_fungus = 8, handy=1,pickaxey=1, building_block=1, ice=1, opaque=1},
sounds = df_dependencies.sound_glass(),
_dfcaverns_dead_node = df_dependencies.node_name_ice,
_mcl_blast_resistance = 0.5,

View File

@ -137,7 +137,7 @@ minetest.register_node("df_primordial_items:dirt_with_mycelium", {
_doc_items_longdesc = df_primordial_items.doc.dirt_with_mycelium_desc,
_doc_items_usagehelp = df_primordial_items.doc.dirt_with_mycelium_usage,
tiles = {"dfcaverns_mush_soil.png"},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 13, handy=1,shovely=1, dirt=2, building_block=1},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 13, handy=1,shovely=1, dirt=2, building_block=1, opaque=1},
_dfcaverns_dead_node = df_dependencies.node_name_dirt,
is_ground_content = false,
paramtype = "light",

View File

@ -294,7 +294,7 @@ minetest.register_node("df_primordial_items:dirt_with_jungle_grass", {
_doc_items_usagehelp = df_primordial_items.doc.dirt_with_jungle_grass_usage,
tiles = {"dfcaverns_jungle_plant_grass_node_01.png"},
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 13, handy=1,shovely=1, dirt=2, building_block=1},
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 13, handy=1,shovely=1, dirt=2, building_block=1, opaque=1},
_dfcaverns_dead_node = df_dependencies.node_name_dirt,
is_ground_content = false,
drop = df_dependencies.node_name_dirt,
@ -324,7 +324,6 @@ minetest.register_node("df_primordial_items:plant_matter", {
_doc_items_usagehelp = df_primordial_items.doc.plant_matter_usage,
tiles = {"dfcaverns_jungle_plant_matter_01.png"},
is_ground_content = false,
paramtype = "light",
groups = {crumbly = 3, soil = 1, flammable = 1, handy=1,shovely=1, dirt=2, building_block=1, fire_encouragement=1, fire_flammability=1},
sounds = df_dependencies.sound_dirt(),
on_timer = function(pos, elapsed)