mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-12-26 02:40:36 +01:00
beef up explosions in MCL, make slade brick craftable from slade sand and lava
This commit is contained in:
parent
c7f1718b86
commit
464f0f161b
@ -189,7 +189,8 @@ if minetest.get_modpath("tnt") then
|
|||||||
df_dependencies.tnt_boom = tnt.boom
|
df_dependencies.tnt_boom = tnt.boom
|
||||||
elseif minetest.get_modpath("mcl_explosions") then
|
elseif minetest.get_modpath("mcl_explosions") then
|
||||||
df_dependencies.tnt_boom = function(pos, def)
|
df_dependencies.tnt_boom = function(pos, def)
|
||||||
mcl_explosions.explode(pos, def.radius)
|
local strength = def.radius * 5
|
||||||
|
mcl_explosions.explode(pos, strength)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -81,6 +81,7 @@ df_dependencies.node_name_dirt_wet = select_required("farming:soil_wet", "mcl_fa
|
|||||||
df_dependencies.node_name_string = select_required("farming:string", "mcl_mobitems:string")
|
df_dependencies.node_name_string = select_required("farming:string", "mcl_mobitems:string")
|
||||||
|
|
||||||
df_dependencies.node_name_bucket_empty = select_required("bucket:bucket_empty", "mcl_buckets:bucket_empty")
|
df_dependencies.node_name_bucket_empty = select_required("bucket:bucket_empty", "mcl_buckets:bucket_empty")
|
||||||
|
df_dependencies.node_name_bucket_lava = select_required("bucket:bucket_lava", "mcl_buckets:bucket_lava")
|
||||||
|
|
||||||
-- from "wool"
|
-- from "wool"
|
||||||
|
|
||||||
|
@ -12,8 +12,6 @@ end
|
|||||||
local add_immortality = function(slade_def)
|
local add_immortality = function(slade_def)
|
||||||
slade_def.groups.immortal = 1
|
slade_def.groups.immortal = 1
|
||||||
slade_def.can_dig = server_diggable_only
|
slade_def.can_dig = server_diggable_only
|
||||||
slade_def._mcl_blast_resistance = 3600000
|
|
||||||
slade_def._mcl_hardness = -1
|
|
||||||
return slade_def
|
return slade_def
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -51,8 +49,8 @@ local slade_brick_def = {
|
|||||||
groups = slade_groups,
|
groups = slade_groups,
|
||||||
sounds = df_dependencies.sound_stone({ footstep = { name = "bedrock2_step", gain = 1 } }),
|
sounds = df_dependencies.sound_stone({ footstep = { name = "bedrock2_step", gain = 1 } }),
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
_mcl_blast_resistance = 1200,
|
_mcl_blast_resistance = 8,
|
||||||
_mcl_hardness = 50,
|
_mcl_hardness = 5,
|
||||||
}
|
}
|
||||||
if invulnerable then
|
if invulnerable then
|
||||||
add_immortality(slade_brick_def)
|
add_immortality(slade_brick_def)
|
||||||
@ -82,8 +80,8 @@ local slade_wall_def = {
|
|||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = slade_wall_groups,
|
groups = slade_wall_groups,
|
||||||
sounds = df_dependencies.sound_stone({ footstep = { name = "bedrock2_step", gain = 1 } }),
|
sounds = df_dependencies.sound_stone({ footstep = { name = "bedrock2_step", gain = 1 } }),
|
||||||
_mcl_blast_resistance = 1200,
|
_mcl_blast_resistance = 8,
|
||||||
_mcl_hardness = 50,
|
_mcl_hardness = 5,
|
||||||
}
|
}
|
||||||
if invulnerable then
|
if invulnerable then
|
||||||
add_immortality(slade_wall_def)
|
add_immortality(slade_wall_def)
|
||||||
@ -99,7 +97,7 @@ minetest.register_node("df_underworld_items:slade_sand", {
|
|||||||
groups = {crumbly = 3, falling_node = 1, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1,handy=1,shovely=3, sand=1, enderman_takable=1, building_block=1, material_sand=1, crush_after_fall=1, falling_node_damage=1},
|
groups = {crumbly = 3, falling_node = 1, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1,handy=1,shovely=3, sand=1, enderman_takable=1, building_block=1, material_sand=1, crush_after_fall=1, falling_node_damage=1},
|
||||||
sounds = df_dependencies.sound_gravel({footstep = {name = df_dependencies.soundfile_gravel_footstep, gain = 0.45},}),
|
sounds = df_dependencies.sound_gravel({footstep = {name = df_dependencies.soundfile_gravel_footstep, gain = 0.45},}),
|
||||||
_mcl_blast_resistance = 8,
|
_mcl_blast_resistance = 8,
|
||||||
_mcl_hardness = 5,
|
_mcl_hardness = 3,
|
||||||
})
|
})
|
||||||
|
|
||||||
local slade_block_def = {
|
local slade_block_def = {
|
||||||
@ -137,7 +135,15 @@ if invulnerable then
|
|||||||
end
|
end
|
||||||
minetest.register_node("df_underworld_items:slade_seal", slade_seal_def)
|
minetest.register_node("df_underworld_items:slade_seal", slade_seal_def)
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "df_underworld_items:slade_brick",
|
||||||
|
recipe = {
|
||||||
|
"df_underworld_items:slade_sand",
|
||||||
|
df_dependencies.node_name_bucket_lava,
|
||||||
|
},
|
||||||
|
replacements = {{df_dependencies.node_name_bucket_lava, df_dependencies.node_name_bucket_empty}},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_abm{
|
minetest.register_abm{
|
||||||
label = "slade seal scratching",
|
label = "slade seal scratching",
|
||||||
|
@ -7,7 +7,7 @@ local check_timeout = function(user)
|
|||||||
local player_name = user:get_player_name()
|
local player_name = user:get_player_name()
|
||||||
local curr_time = minetest.get_gametime() -- minetest.get_us_time() for microsecond precision
|
local curr_time = minetest.get_gametime() -- minetest.get_us_time() for microsecond precision
|
||||||
local last_used = use_timeout[player_name]
|
local last_used = use_timeout[player_name]
|
||||||
if not last_used or curr_time > last_used + 1 then
|
if not last_used or curr_time > last_used then
|
||||||
use_timeout[player_name] = curr_time
|
use_timeout[player_name] = curr_time
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user