'splosions!

This commit is contained in:
FaceDeer
2022-08-07 14:27:29 -06:00
parent b1cbe64c7a
commit bc07e123ce
10 changed files with 58 additions and 23 deletions

View File

@ -27,9 +27,10 @@ local glowstone_def = {
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
}
local tnt_boom = df_dependencies.tnt_boom
if minetest.get_modpath("tnt") then
glowstone_def.on_dig = function(pos, node, digger)
tnt.boom(pos, {radius=3})
tnt_boom(pos, {radius=3})
end
end
minetest.register_node("df_underworld_items:glowstone", glowstone_def)

View File

@ -245,6 +245,8 @@ minetest.register_node("df_underworld_items:puzzle_seal", puzzle_seal_def)
--------------------------------------------------------------------------------
-- Once the seal is opened, it turns into this and digs its way down through the slade.
local tnt_boom = df_dependencies.tnt_boom
local digging_seal_def = {
description = S("Active Slade Breacher"),
_doc_items_longdesc = nil,
@ -310,7 +312,7 @@ local digging_seal_def = {
})
if minetest.get_item_group(below_node.name, "slade") == 0 then
tnt.boom({x=pos.x, y=pos.y-2, z=pos.z}, {radius=3})
tnt_boom({x=pos.x, y=pos.y-2, z=pos.z}, {radius=3})
minetest.set_node(pos, {name=lava_source})
return
end
@ -329,7 +331,7 @@ local digging_seal_def = {
minetest.place_schematic({x=pos.x-3, y=pos.y-2, z=pos.z-3}, df_underworld_items.seal_stair_schem, 270, {}, true)
node.param2 = 0
else
tnt.boom(pos, {radius=3})
tnt_boom(pos, {radius=3})
minetest.set_node(pos, {name=lava_source})
return
end

View File

@ -72,7 +72,7 @@ local slade_wall_def = {
tiles = {"dfcaverns_slade_brick.png"},
walkable = true,
is_ground_content = false,
groups = { cracky=3, stone=1, level=3, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1},
groups = { cracky=3, stone=1, level=3, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1, wall=1},
sounds = df_underworld_items.sounds.slade,
_mcl_blast_resistance = 1200,
_mcl_hardness = 50,