more default dependencies

This commit is contained in:
FaceDeer 2022-08-01 21:51:53 -06:00
parent 9cc10c52e0
commit 896c142473
6 changed files with 16 additions and 3 deletions

View File

@ -17,3 +17,11 @@ df_caverns.node_id.snow = minetest.get_content_id(df_dependencies.node_name_snow
df_caverns.node_id.stone = minetest.get_content_id(df_dependencies.node_name_stone) df_caverns.node_id.stone = minetest.get_content_id(df_dependencies.node_name_stone)
df_caverns.node_id.stone_with_coal = minetest.get_content_id(df_dependencies.node_name_stone_with_coal) df_caverns.node_id.stone_with_coal = minetest.get_content_id(df_dependencies.node_name_stone_with_coal)
df_caverns.node_id.water = minetest.get_content_id(df_dependencies.node_name_water_source) df_caverns.node_id.water = minetest.get_content_id(df_dependencies.node_name_water_source)
df_caverns.node_name = {}
df_caverns.node_name.meselamp = df_dependencies.node_name_meselamp
df_caverns.node_name.stone = df_dependencies.node_name_stone
minetest.after(0, function()
df_caverns.node_name = nil
end)

View File

@ -395,7 +395,7 @@ subterrane.register_layer({
columns = { columns = {
maximum_radius = 20, maximum_radius = 20,
minimum_radius = 5, minimum_radius = 5,
node = "default:stone", -- no flowstone below the Sunless Sea, replace with something else node = df_caverns.node_name.stone, -- no flowstone below the Sunless Sea, replace with something else
weight = 0.5, weight = 0.5,
maximum_count = 60, maximum_count = 60,
minimum_count = 10, minimum_count = 10,

View File

@ -13,7 +13,7 @@ local n7 = { name = "stairs:stair_slade_brick", param2 = 1, force_place=true }
local n8 = { name = "df_underworld_items:slade_brick", force_place=true } local n8 = { name = "df_underworld_items:slade_brick", force_place=true }
local n9 = { name = "stairs:stair_slade_brick", param2 = 3, force_place=true } local n9 = { name = "stairs:stair_slade_brick", param2 = 3, force_place=true }
local n10 = { name = "df_underworld_items:slade_wall", force_place=true } local n10 = { name = "df_underworld_items:slade_wall", force_place=true }
local n11 = { name = "default:meselamp", force_place=true } local n11 = { name = df_caverns.node_name.meselamp, force_place=true }
local n12 = { name = outer_stair, param2 = 2, force_place=true } local n12 = { name = outer_stair, param2 = 2, force_place=true }
local n13 = { name = "stairs:stair_slade_brick", param2 = 2, force_place=true } local n13 = { name = "stairs:stair_slade_brick", param2 = 2, force_place=true }
local n14 = { name = outer_stair, param2 = 3, force_place=true } local n14 = { name = outer_stair, param2 = 3, force_place=true }

View File

@ -58,6 +58,7 @@ if minetest.get_modpath("default") then
df_dependencies.texture_ice = "default_ice.png" df_dependencies.texture_ice = "default_ice.png"
df_dependencies.texture_sand = "default_sand.png" df_dependencies.texture_sand = "default_sand.png"
df_dependencies.texture_stone = "default_stone.png" df_dependencies.texture_stone = "default_stone.png"
df_dependencies.texture_wood = "default_wood.png"
df_dependencies.data_iron_containing_nodes = {"default:stone_with_iron", "default:steelblock"} df_dependencies.data_iron_containing_nodes = {"default:stone_with_iron", "default:steelblock"}
df_dependencies.data_copper_containing_nodes = {"default:stone_with_copper", "default:copperblock"} df_dependencies.data_copper_containing_nodes = {"default:stone_with_copper", "default:copperblock"}

View File

@ -18,8 +18,12 @@ df_primordial_items.sounds.dirt = df_dependencies.sound_dirt()
df_primordial_items.register_leafdecay = df_dependencies.register_leafdecay df_primordial_items.register_leafdecay = df_dependencies.register_leafdecay
df_primordial_items.after_place_leaves = df_dependencies.after_place_leaves df_primordial_items.after_place_leaves = df_dependencies.after_place_leaves
df_primordial_items.textures = {}
df_primordial_items.textures.wood = df_dependencies.texture_wood
-- This stuff should only be used during initialization -- This stuff should only be used during initialization
minetest.after(0, function() minetest.after(0, function()
df_primordial_items.node_names = nil df_primordial_items.node_names = nil
df_primordial_items.sounds = nil df_primordial_items.sounds = nil
df_primordial_items.textures = nil
end) end)

View File

@ -133,7 +133,7 @@ minetest.register_node("df_primordial_items:fern_wood", {
_doc_items_longdesc = df_primordial_items.doc.giant_fern_desc, _doc_items_longdesc = df_primordial_items.doc.giant_fern_desc,
_doc_items_usagehelp = df_primordial_items.doc.giant_fern_usage, _doc_items_usagehelp = df_primordial_items.doc.giant_fern_usage,
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"default_wood.png^[multiply:#10FF10"}, tiles = {df_primordial_items.textures.wood .. "^[multiply:#10FF10"},
is_ground_content = false, is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
sounds = df_primordial_items.sounds.wood, sounds = df_primordial_items.sounds.wood,