switch trail mod to footprints mod

This commit is contained in:
FaceDeer
2020-02-19 21:07:15 -07:00
parent 947cb72f5a
commit 7ddf1ff7cb
23 changed files with 62 additions and 336 deletions

View File

@ -129,14 +129,14 @@ minetest.register_abm{
end,
}
if minetest.get_modpath("trail") and trail and trail.register_trample_node then
local HARDPACK_PROBABILITY = minetest.settings:get("trail_hardpack_probability") or 0.5 -- Chance walked dirt/grass is worn and compacted to trail:trail.
local HARDPACK_COUNT = minetest.settings:get("trail_hardpack_count") or 5 -- Number of times the above chance needs to be passed for soil to compact.
if minetest.get_modpath("footprints") then
local HARDPACK_PROBABILITY = minetest.settings:get("footprints_hardpack_probability") or 0.9 -- Chance walked dirt/grass is worn and compacted to footprints:trail.
local HARDPACK_COUNT = minetest.settings:get("footprints_hardpack_count") or 10 -- Number of times the above chance needs to be passed for soil to compact.
trail.register_trample_node("df_primordial_items:dirt_with_mycelium", {
footprints.register_trample_node("df_primordial_items:dirt_with_mycelium", {
trampled_node_def_override = {description = S("Dirt with Primordial Mycelium and Footprint"),},
footprint_opacity = 196,
hard_pack_node_name = "trail:trail",
hard_pack_node_name = "footprints:trail",
hard_pack_probability = HARDPACK_PROBABILITY,
hard_pack_count = HARDPACK_COUNT,
})

View File

@ -302,18 +302,18 @@ minetest.register_node("df_primordial_items:packed_roots", {
})
if minetest.get_modpath("trail") and trail and trail.register_trample_node then
local HARDPACK_PROBABILITY = minetest.settings:get("trail_hardpack_probability") or 0.5 -- Chance walked dirt/grass is worn and compacted to trail:trail.
local HARDPACK_COUNT = minetest.settings:get("trail_hardpack_count") or 5 -- Number of times the above chance needs to be passed for soil to compact.
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.
trail.register_trample_node("df_primordial_items:dirt_with_jungle_grass", {
footprints.register_trample_node("df_primordial_items:dirt_with_jungle_grass", {
trampled_node_def_override = {description = S("Dirt With Primordial Jungle Grass and Footprint"),},
footprint_opacity = 128,
hard_pack_node_name = "trail:trail",
hard_pack_node_name = "footprints:trail",
hard_pack_probability = HARDPACK_PROBABILITY,
hard_pack_count = HARDPACK_COUNT,
})
trail.register_trample_node("df_primordial_items:plant_matter", {
footprints.register_trample_node("df_primordial_items:plant_matter", {
trampled_node_def_override = {description = S("Primordial Plant Matter with Footprint"),},
footprint_opacity = 128,
hard_pack_node_name = "df_primordial_items:packed_roots",

View File

@ -4,7 +4,6 @@
### ceiling_fungus.lua ###
Primordial Fungal Lantern=
Primordial Fungal Lantern Stalk=
### ceiling_fungus.lua ###
@ -68,108 +67,70 @@ When left uncultivated mycelial soil will sprout all manner of strange wild fung
When left uncultivated primordial jungle soil will sprout all manner of strange wild plants.=
### fungal_nodes.lua ###
Dirt with Primordial Mycelium=
Dirt with Primordial Mycelium and Footprint=
Primordial Fungal Grass=
Primordial Fungal Pod=
### giant_fern.lua ###
Fern Wood=
Giant Fern Leaves=
Giant Fern Sapling=
Giant Fern Stem=
### giant_mycelium.lua ###
Giant Hypha=
Giant Hypha Apical Meristem=
Giant Mycelial Fibers=
Mycelial thread=
Rooted Giant Hypha=
### jungle_mushroom.lua ###
Dark Jungle Mushroom Cap=
Diced Mushroom=
Pale Jungle Mushroom Cap=
Primordial Jungle Mushroom Sapling=
Primordial Jungle Mushroom Trunk=
### jungle_nodes.lua ###
Dirt With Primordial Jungle Grass=
Dirt With Primordial Jungle Grass and Footprint=
Large Primordial Jungle Mushroom=
Packed Primordial Jungle Roots=
Primordial Fern=
Primordial Flower=
Primordial Jungle Grass=
Primordial Jungle Ivy=
Primordial Jungle Mushroom=
Primordial Jungle Pod=
Primordial Jungle Root=
Primordial Jungle Roots=
Primordial Jungle Thorns=
Primordial Plant Matter=
Primordial Plant Matter with Footprint=
### jungle_tree.lua ###
Mossy Primordial Jungle Tree=
Phosphorescent Primordial Jungle Tree=
Phosphorescent Primordial Jungle Tree Leaves=
Primordial Jungle Tree=
Primordial Jungle Tree Leaves=
Primordial Jungle Tree Sapling=
### primordial_mushroom.lua ###
Glowing Primordial Mushroom Gills=
Primordial Cap Wood=
Primordial Mushroom Cap=
Primordial Mushroom Gills=
Primordial Mushroom Spawn=
Primordial Mushroom Trunk=
Primordial Mushroom Trunk Wood=

View File

@ -1,4 +1,4 @@
name = df_primordial_items
description = A collection of flora found in the "primordial" cavern layer of DF Caverns
depends = default, mapgen_helper, subterrane, df_underworld_items, df_trees
optional_depends = trail, df_farming
optional_depends = footprints, df_farming