mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-12-25 18:30:36 +01:00
used the wrong drop method
This commit is contained in:
parent
434da63501
commit
c7f1718b86
@ -356,9 +356,12 @@ local digging_seal_def = {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_item_group(below_node.name, "slade") == 0 then
|
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})
|
|
||||||
if df_underworld_items.config.enable_slade_drill then
|
if df_underworld_items.config.enable_slade_drill then
|
||||||
minetest.item_drop("df_underworld_items:slade_drill", nil, pos)
|
minetest.set_node(pos, {name="air"})
|
||||||
|
if tnt_boom then
|
||||||
|
tnt_boom({x=pos.x, y=pos.y-2, z=pos.z}, {radius=3})
|
||||||
|
end
|
||||||
|
minetest.add_item(pos, "df_underworld_items:slade_drill")
|
||||||
else
|
else
|
||||||
minetest.set_node(pos, {name=lava_source})
|
minetest.set_node(pos, {name=lava_source})
|
||||||
end
|
end
|
||||||
@ -379,7 +382,9 @@ 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)
|
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
|
node.param2 = 0
|
||||||
else
|
else
|
||||||
|
if tnt_boom then
|
||||||
tnt_boom(pos, {radius=3})
|
tnt_boom(pos, {radius=3})
|
||||||
|
end
|
||||||
minetest.set_node(pos, {name=lava_source})
|
minetest.set_node(pos, {name=lava_source})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -40,11 +40,8 @@ local slade_drill_def = {
|
|||||||
light_source = minetest.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
description = S("Slade Drill"),
|
description = S("Slade Drill"),
|
||||||
inventory_image = "dfcaverns_slade_drill.png",
|
inventory_image = "dfcaverns_slade_drill.png",
|
||||||
is_ground_content = false,
|
groups = {cracky=3, stone=1, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1,creative_breakable=1, material_stone=1},
|
||||||
groups = {cracky=3, stone=1, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1,creative_breakable=1, building_block=1, material_stone=1},
|
|
||||||
sounds = df_dependencies.sound_stone({ footstep = { name = "bedrock2_step", gain = 1 } }),
|
sounds = df_dependencies.sound_stone({ footstep = { name = "bedrock2_step", gain = 1 } }),
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
_mcl_blast_resistance = 8,
|
_mcl_blast_resistance = 8,
|
||||||
_mcl_hardness = 5,
|
_mcl_hardness = 5,
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
|
Loading…
Reference in New Issue
Block a user