mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-06-28 06:30:34 +02:00
add mcl blast resistance and hardness to everything. Also an alternate name for Nethercap in MCL, since "nether" has another meaning there.
This commit is contained in:
@ -30,15 +30,19 @@ if invulnerable then
|
||||
end
|
||||
end
|
||||
|
||||
local slade_mcl_blast_resistance = 1200
|
||||
local slade_mcl_hardness = 50
|
||||
local slade_groups = {stone=1, level=3, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1, cracky = 3}
|
||||
if invulnerable then
|
||||
slade_groups.immortal = 1
|
||||
slade_mcl_blast_resistance = 3600000
|
||||
slade_mcl_hardness = -1
|
||||
end
|
||||
|
||||
local punch_fix = function(pos, node, puncher, pointed_thing)
|
||||
local wielded = puncher:get_wielded_item()
|
||||
if wielded:get_name() == mese_crystal_node then
|
||||
minetest.set_node(pos, {name="df_underworld_items:stonebrick_light"})
|
||||
minetest.set_node(pos, {name="df_underworld_items:ancient_lantern_slade"})
|
||||
minetest.get_node_timer(pos):stop()
|
||||
if not (creative and creative.is_enabled_for and creative.is_enabled_for(puncher:get_player_name())) then
|
||||
wielded:take_item()
|
||||
@ -49,7 +53,7 @@ local punch_fix = function(pos, node, puncher, pointed_thing)
|
||||
minetest.node_punch(pos, node, puncher, pointed_thing)
|
||||
end
|
||||
|
||||
minetest.register_node("df_underworld_items:stonebrick_light", {
|
||||
minetest.register_node("df_underworld_items:ancient_lantern_slade", {
|
||||
description = S("Ancient Lantern"),
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
@ -64,9 +68,11 @@ minetest.register_node("df_underworld_items:stonebrick_light", {
|
||||
fixed = lantern_nodebox,
|
||||
},
|
||||
can_dig = can_dig,
|
||||
_mcl_blast_resistance = slade_mcl_blast_resistance,
|
||||
_mcl_hardness = slade_mcl_hardness,
|
||||
})
|
||||
|
||||
minetest.register_node("df_underworld_items:stonebrick_light_worn", {
|
||||
minetest.register_node("df_underworld_items:ancient_lantern_slade_worn", {
|
||||
description = S("Ancient Lantern"),
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
@ -80,11 +86,13 @@ minetest.register_node("df_underworld_items:stonebrick_light_worn", {
|
||||
type = "fixed",
|
||||
fixed = lantern_nodebox,
|
||||
},
|
||||
_mcl_blast_resistance = slade_mcl_blast_resistance,
|
||||
_mcl_hardness = slade_mcl_hardness,
|
||||
on_construct = function(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(100, 200))
|
||||
end,
|
||||
on_timer = function(pos, elapsed)
|
||||
minetest.swap_node(pos, {name="df_underworld_items:stonebrick_light_burnt_out"})
|
||||
minetest.swap_node(pos, {name="df_underworld_items:ancient_lantern_slade_burnt_out"})
|
||||
if math.random() < 0.1 then
|
||||
minetest.get_node_timer(pos):start(math.random(30, 60))
|
||||
else
|
||||
@ -95,7 +103,7 @@ minetest.register_node("df_underworld_items:stonebrick_light_worn", {
|
||||
can_dig = can_dig,
|
||||
})
|
||||
|
||||
minetest.register_node("df_underworld_items:stonebrick_light_burnt_out", {
|
||||
minetest.register_node("df_underworld_items:ancient_lantern_slade_burnt_out", {
|
||||
description = S("Ancient Lantern"),
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
@ -109,12 +117,14 @@ minetest.register_node("df_underworld_items:stonebrick_light_burnt_out", {
|
||||
type = "fixed",
|
||||
fixed = lantern_nodebox,
|
||||
},
|
||||
drops = "df_underworld_items:stonebrick_light_worn",
|
||||
drops = "df_underworld_items:ancient_lantern_slade_worn",
|
||||
_mcl_blast_resistance = slade_mcl_blast_resistance,
|
||||
_mcl_hardness = slade_mcl_hardness,
|
||||
on_construct = function(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(100, 200))
|
||||
end,
|
||||
on_timer = function(pos, elapsed)
|
||||
minetest.swap_node(pos, {name="df_underworld_items:stonebrick_light_worn"})
|
||||
minetest.swap_node(pos, {name="df_underworld_items:ancient_lantern_slade_worn"})
|
||||
if math.random() < 0.1 then
|
||||
minetest.get_node_timer(pos):start(math.random(300, 600))
|
||||
else
|
||||
@ -126,7 +136,7 @@ minetest.register_node("df_underworld_items:stonebrick_light_burnt_out", {
|
||||
})
|
||||
|
||||
--minetest.register_craft({
|
||||
-- output = "df_underworld_items:stonebrick_light",
|
||||
-- output = "df_underworld_items:ancient_lantern_slade",
|
||||
-- type = "shapeless",
|
||||
-- recipe = {
|
||||
-- "group:df_underworld_items_ancient_lantern",
|
||||
|
@ -13,6 +13,8 @@ minetest.register_node("df_underworld_items:glow_amethyst", {
|
||||
use_texture_alpha = "blend",
|
||||
drawtype = "glasslike",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 6,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
if minetest.get_modpath("radiant_damage") and radiant_damage.override_radiant_damage and radiant_damage.config.enable_mese_damage then
|
||||
|
@ -24,6 +24,8 @@ local glowstone_def = {
|
||||
drawtype = "glasslike",
|
||||
drop = "",
|
||||
sunlight_propagates = true,
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.5,
|
||||
}
|
||||
if minetest.get_modpath("tnt") then
|
||||
glowstone_def.on_dig = function(pos, node, digger)
|
||||
|
@ -38,6 +38,8 @@ minetest.register_node("df_underworld_items:pit_plasma", {
|
||||
is_ground_content = false,
|
||||
light_source = minetest.LIGHT_MAX,
|
||||
paramtype = "light",
|
||||
_mcl_blast_resistance = 3600000,
|
||||
_mcl_hardness = -1,
|
||||
})
|
||||
|
||||
minetest.register_node("df_underworld_items:pit_plasma_flowing", {
|
||||
@ -87,6 +89,8 @@ minetest.register_node("df_underworld_items:pit_plasma_flowing", {
|
||||
is_ground_content = false,
|
||||
light_source = minetest.LIGHT_MAX,
|
||||
paramtype = "light",
|
||||
_mcl_blast_resistance = 3600000,
|
||||
_mcl_hardness = -1,
|
||||
})
|
||||
|
||||
if minetest.get_modpath("radiant_damage") and radiant_damage.override_radiant_damage then
|
||||
|
@ -1,6 +1,10 @@
|
||||
# textdomain: df_underworld_items
|
||||
|
||||
|
||||
### ancient_lanterns.lua ###
|
||||
|
||||
Ancient Lantern=
|
||||
|
||||
### crystals_amethyst.lua ###
|
||||
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
@ -62,10 +66,6 @@ Active Slade Breacher=Aktiver Slade Breacher
|
||||
Breach in the Slade=Brich den Slade ein
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Inscribed Slade Block=Beschrifteter Slade-Block
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Slade Block Slab=Slade Block Platte
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Slade Block Stair=Slade Block Treppe
|
||||
Slade Capstone=
|
||||
Slade Puzzle Seal=
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
@ -78,7 +78,14 @@ Slade Block=
|
||||
Slade Brick=
|
||||
Slade Sand=
|
||||
Slade Seal=
|
||||
Slade Wall=
|
||||
|
||||
|
||||
##### not used anymore #####
|
||||
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Slade Block Slab=Slade Block Platte
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Slade Block Stair=Slade Block Treppe
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Slade Slab=Slade-Platte
|
||||
Slade Stair=
|
||||
Slade Wall=
|
||||
|
@ -1,6 +1,10 @@
|
||||
# textdomain: df_underworld_items
|
||||
|
||||
|
||||
### ancient_lanterns.lua ###
|
||||
|
||||
Ancient Lantern=
|
||||
|
||||
### crystals_amethyst.lua ###
|
||||
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
@ -60,8 +64,6 @@ Active Slade Breacher=Attivo Slade Breacher
|
||||
Breach in the Slade=Violazione nello Slade
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Inscribed Slade Block=Inscritto Slade Block
|
||||
Slade Block Slab=
|
||||
Slade Block Stair=
|
||||
Slade Capstone=
|
||||
Slade Puzzle Seal=
|
||||
Turn=
|
||||
@ -74,6 +76,4 @@ Slade Brick=
|
||||
Slade Sand=
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Slade Seal=Sigillo Slade
|
||||
Slade Slab=
|
||||
Slade Stair=
|
||||
Slade Wall=
|
||||
|
@ -1,6 +1,10 @@
|
||||
# textdomain: df_underworld_items
|
||||
|
||||
|
||||
### ancient_lanterns.lua ###
|
||||
|
||||
Ancient Lantern=
|
||||
|
||||
### crystals_amethyst.lua ###
|
||||
|
||||
Glowing Amethyst Block=
|
||||
@ -45,8 +49,6 @@ Guardian Statue=
|
||||
Active Slade Breacher=
|
||||
Breach in the Slade=
|
||||
Inscribed Slade Block=
|
||||
Slade Block Slab=
|
||||
Slade Block Stair=
|
||||
Slade Capstone=
|
||||
Slade Puzzle Seal=
|
||||
Turn=
|
||||
@ -58,6 +60,4 @@ Slade Block=
|
||||
Slade Brick=
|
||||
Slade Sand=
|
||||
Slade Seal=
|
||||
Slade Slab=
|
||||
Slade Stair=
|
||||
Slade Wall=
|
||||
|
@ -11,9 +11,13 @@ if invulnerable then
|
||||
end
|
||||
end
|
||||
|
||||
local slade_mcl_blast_resistance = 1200
|
||||
local slade_mcl_hardness = 50
|
||||
local slade_groups = {stone=1, level=3, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1, cracky = 3, not_in_creative_inventory=1}
|
||||
if invulnerable then
|
||||
slade_groups.immortal = 1
|
||||
slade_mcl_blast_resistance = 3600000
|
||||
slade_mcl_hardness = -1
|
||||
end
|
||||
|
||||
local lava_source = df_underworld_items.nodes.lava_source
|
||||
@ -200,6 +204,8 @@ local puzzle_seal_def = {
|
||||
},
|
||||
is_ground_content = false,
|
||||
can_dig = can_dig,
|
||||
_mcl_blast_resistance = slade_mcl_blast_resistance,
|
||||
_mcl_hardness = slade_mcl_hardness,
|
||||
on_blast = function() end,
|
||||
on_rotate = function() return false end,
|
||||
on_construct = function(pos)
|
||||
@ -260,6 +266,8 @@ local digging_seal_def = {
|
||||
fixed = {-0.625, -0.625, -0.625, 0.625, 0.625, 0.625},
|
||||
},
|
||||
is_ground_content = false,
|
||||
_mcl_blast_resistance = 3600000,
|
||||
_mcl_hardness = -1,
|
||||
can_dig = can_dig,
|
||||
on_blast = function() end,
|
||||
on_rotate = function() return false end,
|
||||
@ -370,6 +378,8 @@ local inscription_block_def = {
|
||||
groups = slade_groups,
|
||||
sounds = df_underworld_items.sounds.slade,
|
||||
is_ground_content = false,
|
||||
_mcl_blast_resistance = slade_mcl_blast_resistance,
|
||||
_mcl_hardness = slade_mcl_hardness,
|
||||
can_dig = can_dig,
|
||||
on_blast = function() end,
|
||||
on_rotate = function() return false end,
|
||||
@ -408,6 +418,8 @@ local capstone_def = {
|
||||
light_source = 8,
|
||||
sounds = df_underworld_items.sounds.slade,
|
||||
is_ground_content = false,
|
||||
_mcl_blast_resistance = slade_mcl_blast_resistance,
|
||||
_mcl_hardness = slade_mcl_hardness,
|
||||
can_dig = can_dig,
|
||||
on_blast = function() end,
|
||||
on_rotate = function() return false end,
|
||||
|
@ -12,6 +12,8 @@ end
|
||||
local add_immortality = function(slade_def)
|
||||
slade_def.groups.immortal = 1
|
||||
slade_def.can_dig = server_diggable_only
|
||||
slade_def._mcl_blast_resistance = 3600000
|
||||
slade_def._mcl_hardness = -1
|
||||
return slade_def
|
||||
end
|
||||
|
||||
@ -23,6 +25,8 @@ local slade_def = {
|
||||
groups = {cracky=3, stone=1, level=3, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1},
|
||||
sounds = df_underworld_items.sounds.slade,
|
||||
is_ground_content = false,
|
||||
_mcl_blast_resistance = 1200,
|
||||
_mcl_hardness = 50,
|
||||
on_blast = function(pos, intensity)
|
||||
if intensity > 3.0 then
|
||||
minetest.set_node(pos, {name="df_underworld_items:slade_sand"})
|
||||
@ -43,6 +47,8 @@ local slade_brick_def = {
|
||||
groups = { cracky=3, stone=1, level=3, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1},
|
||||
sounds = df_underworld_items.sounds.slade,
|
||||
is_ground_content = false,
|
||||
_mcl_blast_resistance = 1200,
|
||||
_mcl_hardness = 50,
|
||||
}
|
||||
if invulnerable then
|
||||
add_immortality(slade_brick_def)
|
||||
@ -68,6 +74,8 @@ local slade_wall_def = {
|
||||
is_ground_content = false,
|
||||
groups = { cracky=3, stone=1, level=3, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1},
|
||||
sounds = df_underworld_items.sounds.slade,
|
||||
_mcl_blast_resistance = 1200,
|
||||
_mcl_hardness = 50,
|
||||
}
|
||||
if invulnerable then
|
||||
add_immortality(slade_wall_def)
|
||||
@ -83,6 +91,8 @@ minetest.register_node("df_underworld_items:slade_sand", {
|
||||
is_ground_content = false,
|
||||
groups = {crumbly = 3, level = 2, falling_node = 1, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1},
|
||||
sounds = df_underworld_items.sounds.slade_gravel,
|
||||
_mcl_blast_resistance = 2000,
|
||||
_mcl_hardness = 5,
|
||||
})
|
||||
|
||||
local slade_block_def = {
|
||||
@ -93,6 +103,8 @@ local slade_block_def = {
|
||||
groups = {cracky=3, stone=1, level=3, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1},
|
||||
sounds = df_underworld_items.sounds.slade,
|
||||
is_ground_content = false,
|
||||
_mcl_blast_resistance = 1200,
|
||||
_mcl_hardness = 50,
|
||||
}
|
||||
if invulnerable then
|
||||
add_immortality(slade_block_def)
|
||||
@ -109,6 +121,8 @@ local slade_seal_def = {
|
||||
groups = {cracky=3, stone=1, level=3, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1},
|
||||
sounds = df_underworld_items.sounds.slade,
|
||||
is_ground_content = false,
|
||||
_mcl_blast_resistance = 1200,
|
||||
_mcl_hardness = 50,
|
||||
}
|
||||
if invulnerable then
|
||||
slade_seal_def.on_blast = function() end
|
||||
|
Reference in New Issue
Block a user