create some new ground cover types

This commit is contained in:
FaceDeer
2020-02-27 15:28:47 -07:00
parent c328f05de4
commit 53605f1005
12 changed files with 247 additions and 2 deletions

View File

@ -10,7 +10,7 @@ minetest.register_node("df_mapitems:dirt_with_cave_moss", {
_doc_items_longdesc = df_mapitems.doc.cave_moss_desc,
_doc_items_usagehelp = df_mapitems.doc.cave_moss_usage,
tiles = {"default_dirt.png^dfcaverns_cave_moss.png", "default_dirt.png",
{name = "default_dirt.png^dfcaverns_cave_moss_side.png",
{name = "default_dirt.png^(dfcaverns_cave_moss.png^[mask:dfcaverns_ground_cover_side_mask.png)",
tileable_vertical = false}},
drop = "default:dirt",
is_ground_content = false,
@ -43,6 +43,100 @@ minetest.register_abm{
end,
}
---------------------------------------------------------------
-- Sand scum
minetest.register_node("df_mapitems:sand_scum", {
description = S("Sand Scum"),
_doc_items_longdesc = df_mapitems.doc.sand_scum_desc,
_doc_items_usagehelp = df_mapitems.doc.sand_scum_usage,
tiles = {"dfcaverns_ground_cover_sand_scum.png", "default_sand.png",
{name = "default_sand.png^(dfcaverns_ground_cover_sand_scum.png^[mask:dfcaverns_ground_cover_side_mask.png)",
tileable_vertical = false}},
drop = "default:sand",
is_ground_content = false,
light_source = 2,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8},
sounds = default.node_sound_sand_defaults({
footstep = {name = "dfcaverns_squish", gain = 0.25},
}),
_dfcaverns_dead_node = "default:sand",
})
---------------------------------------------------------------
-- Spongestone
minetest.register_node("df_mapitems:spongestone", {
description = S("Spongestone"),
_doc_items_longdesc = df_mapitems.doc.sponge_stone_desc,
_doc_items_usagehelp = df_mapitems.doc.sponge_stone_usage,
tiles = {"dfcaverns_ground_cover_sponge_stone.png"},
is_ground_content = false,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8},
sounds = default.node_sound_dirt_defaults(),
soil = {
base = "df_mapitems:spongestone",
dry = "farming:soil",
wet = "farming:soil_wet"
},
_dfcaverns_dead_node = "default:dirt",
})
---------------------------------------------------------------
-- Pebble fungus
minetest.register_node("df_mapitems:dirt_with_pebble_fungus", {
description = S("Dirt with Pebble Fungus"),
_doc_items_longdesc = df_mapitems.doc.pebble_fungus_desc,
_doc_items_usagehelp = df_mapitems.doc.pebble_fungus_usage,
tiles = {"dfcaverns_ground_cover_pebble_fungus.png", "default_dirt.png",
{name = "default_dirt.png^(dfcaverns_ground_cover_pebble_fungus.png^[mask:dfcaverns_ground_cover_side_mask.png)",
tileable_vertical = false}},
drop = "default:dirt",
is_ground_content = false,
light_source = 2,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8},
sounds = default.node_sound_dirt_defaults(),
soil = {
base = "df_mapitems:dirt_with_pebble_fungus",
dry = "farming:soil",
wet = "farming:soil_wet"
},
_dfcaverns_dead_node = "default:dirt",
})
---------------------------------------------------------------
-- Stillworm
minetest.register_node("df_mapitems:dirt_with_stillworm", {
description = S("Dirt with Stillworm"),
_doc_items_longdesc = df_mapitems.doc.stillworm_desc,
_doc_items_usagehelp = df_mapitems.doc.stillworm_usage,
tiles = {"default_dirt.png^dfcaverns_ground_cover_stillworm.png", "default_dirt.png",
{name = "default_dirt.png^(dfcaverns_ground_cover_stillworm.png^[mask:dfcaverns_ground_cover_side_mask.png)",
tileable_vertical = false}},
drop = "default:dirt",
is_ground_content = false,
light_source = 2,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25},
}),
soil = {
base = "df_mapitems:dirt_with_stillworm",
dry = "farming:soil",
wet = "farming:soil_wet"
},
_dfcaverns_dead_node = "default:dirt",
})
----------------------------------------------------------------
-- Footprint-capable nodes
if minetest.get_modpath("footprints") then
local HARDPACK_PROBABILITY = tonumber(minetest.settings:get("footprints_hardpack_probability")) or 0.9 -- Chance walked dirt/grass is worn and compacted to footprints:trail.
local HARDPACK_COUNT = tonumber(minetest.settings:get("footprints_hardpack_count")) or 10 -- Number of times the above chance needs to be passed for soil to compact.
@ -53,9 +147,57 @@ if minetest.get_modpath("footprints") then
footprint_opacity = 128,
hard_pack_probability = HARDPACK_PROBABILITY,
hard_pack_count = HARDPACK_COUNT,
})
})
footprints.register_trample_node("df_mapitems:sand_scum", {
trampled_node_def_override = {description = S("Sand Scum with Footprint"),},
hard_pack_node_name = "default:sand",
footprint_opacity = 128,
hard_pack_probability = HARDPACK_PROBABILITY,
hard_pack_count = HARDPACK_COUNT * 0.5,
})
footprints.register_trample_node("df_mapitems:spongestone", {
trampled_node_def_override = {description = S("Spongestone with Footprint"),},
hard_pack_node_name = "footprints:trail",
hard_pack_probability = HARDPACK_PROBABILITY,
hard_pack_count = HARDPACK_COUNT * 2,
})
footprints.register_trample_node("df_mapitems:dirt_with_pebble_fungus", {
trampled_node_def_override = {description = S("Dirt with Pebble Fungus and Footprint"),},
hard_pack_node_name = "footprints:trail",
hard_pack_probability = HARDPACK_PROBABILITY,
hard_pack_count = HARDPACK_COUNT,
})
footprints.register_trample_node("df_mapitems:dirt_with_stillworm", {
trampled_node_def_override = {description = S("Dirt with Stillworm and Footprint"),},
hard_pack_node_name = "footprints:trail",
hard_pack_probability = HARDPACK_PROBABILITY,
hard_pack_count = HARDPACK_COUNT,
})
end
---------------------------------------------------------------
-- Rock rot
minetest.register_node("df_mapitems:rock_rot", {
description = S("Rock Rot"),
_doc_items_longdesc = df_mapitems.doc.rock_rot_desc,
_doc_items_usagehelp = df_mapitems.doc.rock_rot_usage,
tiles = {"default_stone.png^dfcaverns_ground_cover_rock_rot.png", "default_stone.png",
{name = "default_stone.png^(dfcaverns_ground_cover_rock_rot.png^[mask:dfcaverns_ground_cover_side_mask.png)",
tileable_vertical = false}},
drop = "default:stone",
is_ground_content = false,
light_source = 2,
paramtype = "light",
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8},
sounds = default.node_sound_dirt_defaults(),
_dfcaverns_dead_node = "default:stone",
})
--------------------------------------------------
-- floor fungus