mine gas dependencies

This commit is contained in:
FaceDeer 2022-08-02 04:20:51 -06:00
parent c5fd4917b4
commit f5ff609a3c
3 changed files with 9 additions and 7 deletions

View File

@ -58,10 +58,12 @@ end
df_dependencies.soundfile_grass_footstep = select_required({default="default_grass_footstep", mcl_sounds="default_grass_footstep"})
df_dependencies.soundfile_snow_footstep = select_required({default="default_snow_footstep", mcl_sounds="pedology_snow_soft_footstep"})
df_dependencies.soundfile_gravel_footstep = select_required({default="default_gravel_footstep", mcl_sounds="default_gravel_footstep"})
df_dependencies.soundfile_cool_lava = select_required({default="default_cool_lava", mcl_sounds="default_cool_lava"})
df_dependencies.node_name_apple = select_required({default="default:apple", mcl_core="mcl_core:apple"})
df_dependencies.node_name_chest = select_required({default="default:chest", mcl_chests="mcl_chests:chest"})
df_dependencies.node_name_coalblock = select_required({default="default:coalblock", mcl_core="mcl_core:coalblock"})
df_dependencies.node_name_coal_lump = select_required({default="default:coal_lump", mcl_core="mcl_core:coal_lump"})
df_dependencies.node_name_cobble = select_required({default="default:cobble", mcl_core="mcl_core:cobble"})
df_dependencies.node_name_coral_skeleton = select_required({default="default:coral_skeleton", mcl_ocean="mcl_ocean:dead_horn_coral_block"})
df_dependencies.node_name_desert_sand = select_required({default="default:desert_sand", mcl_core="mcl_core:redsand"})
@ -259,7 +261,6 @@ if minetest.get_modpath("fireflies") then
end
-- from "vessels"
df_dependencies.node_name_glass_bottle = select_required({vessels="vessels:glass_bottle", mcl_potions="mcl_potions:glass_bottle"})
df_dependencies.node_name_shelf = select_required({vessels="vessels:shelf", })
df_dependencies.texture_glass_bottle = select_required({vessels="vessels_glass_bottle.png", mcl_potions="mcl_potions_potion_bottle.png"})

View File

@ -50,10 +50,10 @@ minetest.register_node("mine_gas:gas_seep", {
description = S("Gas Seep"),
_doc_items_longdesc = seep_desc,
_doc_items_usagehelp = seep_usage,
tiles = {"default_stone.png^default_mineral_coal.png^[combine:16x80:0,-16=crack_anylength.png"},
tiles = {df_dependencies.texture_stone.."^"..df_dependencies.texture_mineral_coal.."^[combine:16x80:0,-16=crack_anylength.png"},
groups = {cracky = 3},
drop = 'default:coal_lump',
sounds = default.node_sound_stone_defaults(),
drop = df_dependencies.node_name_coal_lump,
sounds = df_dependencies.sound_stone(),
is_ground_content = true,
})
@ -136,7 +136,7 @@ minetest.register_abm({
end
minetest.set_node(pos, {name="mine_gas:gas"})
minetest.sound_play(
"default_cool_lava",
df_dependencies.soundfile_cool_lava,
{pos = pos, max_hear_distance = 16, gain = 0.1}
)
end
@ -172,6 +172,7 @@ local orthogonal = {
{x=-1,y=0,z=0},
}
local stone_with_coal = df_dependencies.node_name_stone_with_coal
minetest.register_lbm({
label = "shut down gas seeps near lava",
name = "mine_gas:shut_down_lava_adjacent",
@ -180,7 +181,7 @@ minetest.register_lbm({
action = function(pos, node)
minetest.after(math.random()*60, function()
if minetest.find_node_near(pos, 30, "group:lava") then
minetest.set_node(pos, {name="default:stone_with_coal"})
minetest.set_node(pos, {name=stone_with_coal})
end
end)
end,

View File

@ -1,4 +1,4 @@
name = mine_gas
description = An explosive, asphyxiating heavier-than-air gas to add hazards to caves
depends = default
depends = df_dependencies
optional_depends = tnt, doc