mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-06-28 14:36:20 +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:
@ -9,6 +9,8 @@ minetest.register_node("df_trees:black_cap_stem", {
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 6,
|
||||
_mcl_hardness = 5,
|
||||
})
|
||||
|
||||
--cap
|
||||
@ -20,6 +22,8 @@ minetest.register_node("df_trees:black_cap", {
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 6,
|
||||
_mcl_hardness = 5,
|
||||
})
|
||||
|
||||
--gills
|
||||
@ -47,6 +51,8 @@ minetest.register_node("df_trees:black_cap_gills", {
|
||||
},
|
||||
after_place_node = df_trees.after_place_leaves,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
})
|
||||
|
||||
df_trees.register_leafdecay({
|
||||
@ -97,6 +103,8 @@ minetest.register_node("df_trees:black_cap_wood", {
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 5,
|
||||
_mcl_hardness = 5,
|
||||
})
|
||||
|
||||
df_trees.register.all_stairs_and_fences("black_cap_wood", {burntime = 30})
|
||||
@ -149,6 +157,8 @@ minetest.register_node("df_trees:black_cap_sapling", {
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11},
|
||||
sounds = df_trees.sounds.leaves,
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.5,
|
||||
|
||||
on_construct = function(pos)
|
||||
if df_trees.black_cap_growth_permitted(pos) then
|
||||
|
@ -43,6 +43,8 @@ minetest.register_node("df_trees:blood_thorn", {
|
||||
is_ground_content = false,
|
||||
on_place = minetest.rotate_node,
|
||||
after_dig_node = blood_thorn_after_dig,
|
||||
_mcl_blast_resistance = 1,
|
||||
_mcl_hardness = 1,
|
||||
|
||||
on_construct = function(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(blood_thorn_min_delay, blood_thorn_max_delay))
|
||||
@ -87,6 +89,8 @@ minetest.register_node("df_trees:blood_thorn_dead", {
|
||||
is_ground_content = false,
|
||||
on_place = minetest.rotate_node,
|
||||
after_dig_node = blood_thorn_after_dig,
|
||||
_mcl_blast_resistance = 1,
|
||||
_mcl_hardness = 1,
|
||||
})
|
||||
|
||||
minetest.register_node("df_trees:blood_thorn_spike", {
|
||||
@ -118,6 +122,8 @@ minetest.register_node("df_trees:blood_thorn_spike", {
|
||||
{-0.0625, -0.0625, -0.5, 0.0625, 0.0625, -0.125}, -- tip
|
||||
}
|
||||
},
|
||||
_mcl_blast_resistance = 1,
|
||||
_mcl_hardness = 1,
|
||||
})
|
||||
|
||||
minetest.register_node("df_trees:blood_thorn_spike_dead", {
|
||||
@ -147,6 +153,8 @@ minetest.register_node("df_trees:blood_thorn_spike_dead", {
|
||||
{-0.0625, -0.0625, -0.5, 0.0625, 0.0625, -0.125}, -- tip
|
||||
}
|
||||
},
|
||||
_mcl_blast_resistance = 1,
|
||||
_mcl_hardness = 0.8,
|
||||
})
|
||||
|
||||
|
||||
@ -174,6 +182,8 @@ minetest.register_node("df_trees:blood_thorn_wood", {
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 1,
|
||||
})
|
||||
|
||||
df_trees.register.all_stairs_and_fences("blood_thorn_wood", {burntime = 40})
|
||||
|
@ -21,8 +21,13 @@ df_trees.doc.fungiwood_usage = S("Fungiwood stalk is strong and very fine-graine
|
||||
df_trees.doc.goblin_cap_desc = S("Massive but squat, mature goblin cap mushrooms are the size of small cottages.")
|
||||
df_trees.doc.goblin_cap_usage = S("Goblin cap stem and cap material can be cut into wood of two different hues, a subdued cream and a bright orange-red.")
|
||||
|
||||
if minetest.get_modpath("mcl_core") then
|
||||
df_trees.doc.nether_cap_desc = S("Icecaps have an unusual biochemistry that allows them to somehow subsist on ambient heat, in violation of all known laws of thermodynamics. They grow deep underground in frigid, icy caverns that should by all rights be volcanic.")
|
||||
df_trees.doc.nether_cap_usage = S("Icecap wood, in addition to being a beautiful blue hue, retains the odd heat-draining ability of living icecaps and is able to quickly freeze nearby water solid.")
|
||||
else
|
||||
df_trees.doc.nether_cap_desc = S("Nether caps have an unusual biochemistry that allows them to somehow subsist on ambient heat, in violation of all known laws of thermodynamics. They grow deep underground in frigid, icy caverns that should by all rights be volcanic.")
|
||||
df_trees.doc.nether_cap_usage = S("Nether cap wood, in addition to being a beautiful blue hue, retains the odd heat-draining ability of living nether caps and is able to quickly freeze nearby water solid.")
|
||||
end
|
||||
|
||||
df_trees.doc.spore_tree_desc = S("Spore trees have a sturdy 'trunk' that supports a large spongy mesh of branching fibers, with embedded fruiting bodies that produce a copious amount of spores that gently rain down around the spore tree's base.")
|
||||
df_trees.doc.spore_tree_usage = S("Spore tree trunks can be cut into pale woody planks. The branching fibers and fruiting bodies are only useful as fuel.")
|
||||
|
@ -16,6 +16,8 @@ minetest.register_node("df_trees:fungiwood", {
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 3, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
@ -38,6 +40,8 @@ minetest.register_node("df_trees:fungiwood_wood", {
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 3,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
df_trees.register.all_stairs_and_fences("fungiwood_wood", {burntime = 7})
|
||||
@ -89,6 +93,8 @@ minetest.register_node("df_trees:fungiwood_shelf",{
|
||||
}
|
||||
},
|
||||
sounds = df_trees.sounds.leaves,
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.5,
|
||||
|
||||
after_place_node = df_trees.after_place_leaves,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
@ -121,6 +127,8 @@ minetest.register_node("df_trees:fungiwood_sapling", {
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11},
|
||||
sounds = df_trees.sounds.leaves,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
|
||||
on_construct = function(pos)
|
||||
if df_trees.fungiwood_growth_permitted(pos) then
|
||||
|
@ -15,6 +15,8 @@ minetest.register_node("df_trees:goblin_cap_stem", {
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, goblin_cap = 1},
|
||||
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
--cap
|
||||
@ -26,6 +28,8 @@ minetest.register_node("df_trees:goblin_cap", {
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, goblin_cap = 1},
|
||||
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
--gills
|
||||
@ -53,6 +57,8 @@ minetest.register_node("df_trees:goblin_cap_gills", {
|
||||
},
|
||||
after_place_node = df_trees.after_place_leaves,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
})
|
||||
|
||||
df_trees.register_leafdecay({
|
||||
@ -86,6 +92,8 @@ minetest.register_node("df_trees:goblin_cap_wood", {
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 3,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
minetest.register_node("df_trees:goblin_cap_stem_wood", {
|
||||
@ -98,6 +106,8 @@ minetest.register_node("df_trees:goblin_cap_stem_wood", {
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 3,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
df_trees.register.all_stairs_and_fences("goblin_cap_wood", {burntime = 12})
|
||||
@ -212,6 +222,8 @@ minetest.register_node("df_trees:goblin_cap_sapling", {
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11},
|
||||
sounds = df_trees.sounds.leaves,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
|
||||
on_construct = function(pos)
|
||||
if df_trees.goblin_cap_growth_permitted(pos) then
|
||||
|
@ -48,6 +48,10 @@ Golden Spindlestems are a sign of rare and magical mineral deposits nearby. Thei
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Green Spindlestems are a sign of nearby copper deposits. Their glowing symbiotes can be extracted as a long-lived light source, though the glow is not strong.=Grüne Spindelstämme sind ein Zeichen für nahegelegene Kupfervorkommen. Ihre leuchtenden Symbioten können als langlebige Lichtquelle extrahiert werden, obwohl das Leuchten nicht stark ist.
|
||||
|
||||
Icecap wood, in addition to being a beautiful blue hue, retains the odd heat-draining ability of living icecaps and is able to quickly freeze nearby water solid.=
|
||||
|
||||
Icecaps have an unusual biochemistry that allows them to somehow subsist on ambient heat, in violation of all known laws of thermodynamics. They grow deep underground in frigid, icy caverns that should by all rights be volcanic.=
|
||||
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Living blood thorn spikes remain harmful to creatures that touch them. If killed by bright light, they cause only passive damage to creatures that fall on them (as one would expect from an enormous spike).=Lebende Blutdornspitzen bleiben für Kreaturen, die sie berühren, schädlich. Wenn sie durch helles Licht getötet werden, verursachen sie nur passiven Schaden an Kreaturen, die auf sie fallen (wie man es von einer enormen Spitze erwarten würde).
|
||||
|
||||
@ -155,6 +159,11 @@ Goblin Cap Stem Planks=Goblin Cap Stem Planken
|
||||
|
||||
### nether_cap.lua ###
|
||||
|
||||
Icecap=
|
||||
Icecap Gills=
|
||||
Icecap Planks=
|
||||
Icecap Spawn=
|
||||
Icecap Stem=
|
||||
Nether Cap=
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Nether Cap Gills=Nether Cap Kiemen
|
||||
|
@ -43,6 +43,10 @@ Golden Spindlestems are a sign of rare and magical mineral deposits nearby. Thei
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Green Spindlestems are a sign of nearby copper deposits. Their glowing symbiotes can be extracted as a long-lived light source, though the glow is not strong.=Gli spindlestem verdi sono un segno di depositi di rame nelle vicinanze. I loro simbionti luminosi possono essere estratti come fonte di luce a lunga durata, sebbene il bagliore non sia forte.
|
||||
|
||||
Icecap wood, in addition to being a beautiful blue hue, retains the odd heat-draining ability of living icecaps and is able to quickly freeze nearby water solid.=
|
||||
|
||||
Icecaps have an unusual biochemistry that allows them to somehow subsist on ambient heat, in violation of all known laws of thermodynamics. They grow deep underground in frigid, icy caverns that should by all rights be volcanic.=
|
||||
|
||||
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
|
||||
Living blood thorn spikes remain harmful to creatures that touch them. If killed by bright light, they cause only passive damage to creatures that fall on them (as one would expect from an enormous spike).=Le punte di spine di sangue vivo rimangono dannose per le creature che le toccano. Se uccisi da una luce intensa, causano solo danni passivi alle creature che cadono su di loro (come ci si aspetterebbe da un enorme picco).
|
||||
|
||||
@ -146,6 +150,11 @@ Goblin Cap Stem Planks=Assi di gambo di cappello di folletto
|
||||
|
||||
### nether_cap.lua ###
|
||||
|
||||
Icecap=
|
||||
Icecap Gills=
|
||||
Icecap Planks=
|
||||
Icecap Spawn=
|
||||
Icecap Stem=
|
||||
Nether Cap=Cappello del Nether
|
||||
Nether Cap Gills=Lamelle di cappello del Nether
|
||||
Nether Cap Planks=Assi di cappello del Nether
|
||||
|
@ -35,6 +35,10 @@ Golden Spindlestems are a sign of rare and magical mineral deposits nearby. Thei
|
||||
|
||||
Green Spindlestems are a sign of nearby copper deposits. Their glowing symbiotes can be extracted as a long-lived light source, though the glow is not strong.=
|
||||
|
||||
Icecap wood, in addition to being a beautiful blue hue, retains the odd heat-draining ability of living icecaps and is able to quickly freeze nearby water solid.=
|
||||
|
||||
Icecaps have an unusual biochemistry that allows them to somehow subsist on ambient heat, in violation of all known laws of thermodynamics. They grow deep underground in frigid, icy caverns that should by all rights be volcanic.=
|
||||
|
||||
Living blood thorn spikes remain harmful to creatures that touch them. If killed by bright light, they cause only passive damage to creatures that fall on them (as one would expect from an enormous spike).=
|
||||
|
||||
Living extract from the cap of a cyan Spindlestem.=
|
||||
@ -109,6 +113,11 @@ Goblin Cap Stem Planks=
|
||||
|
||||
### nether_cap.lua ###
|
||||
|
||||
Icecap=
|
||||
Icecap Gills=
|
||||
Icecap Planks=
|
||||
Icecap Spawn=
|
||||
Icecap Stem=
|
||||
Nether Cap=
|
||||
Nether Cap Gills=
|
||||
Nether Cap Planks=
|
||||
|
@ -1,30 +1,41 @@
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
local if_mineclone_installed = function(default, mineclone)
|
||||
if minetest.get_modpath("mcl_core") then
|
||||
return mineclone
|
||||
end
|
||||
return default
|
||||
end
|
||||
|
||||
--stem
|
||||
minetest.register_node("df_trees:nether_cap_stem", {
|
||||
description = S("Nether Cap Stem"),
|
||||
description = if_mineclone_installed(S("Nether Cap Stem"), S("Icecap Stem")),
|
||||
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
|
||||
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
|
||||
tiles = {"dfcaverns_nether_cap_stem.png"},
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1, cools_lava = 1, freezes_water = 1, nether_cap = 1},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 0.7,
|
||||
_mcl_hardness = 0.7,
|
||||
})
|
||||
|
||||
--cap
|
||||
minetest.register_node("df_trees:nether_cap", {
|
||||
description = S("Nether Cap"),
|
||||
description = if_mineclone_installed(S("Nether Cap"), S("Icecap")),
|
||||
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
|
||||
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
|
||||
tiles = {"dfcaverns_nether_cap.png"},
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1, cools_lava = 1, freezes_water = 1, nether_cap = 1},
|
||||
sounds = df_trees.sounds.nethercap_wood,
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.5,
|
||||
})
|
||||
|
||||
--gills
|
||||
minetest.register_node("df_trees:nether_cap_gills", {
|
||||
description = S("Nether Cap Gills"),
|
||||
description = if_mineclone_installed(S("Nether Cap Gills"), S("Icecap Gills")),
|
||||
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
|
||||
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
|
||||
tiles = {"dfcaverns_nether_cap_gills.png"},
|
||||
@ -48,6 +59,8 @@ minetest.register_node("df_trees:nether_cap_gills", {
|
||||
},
|
||||
after_place_node = df_trees.after_place_leaves,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
_mcl_blast_resistance = 0.1,
|
||||
_mcl_hardness = 0.1,
|
||||
})
|
||||
|
||||
df_trees.register_leafdecay({
|
||||
@ -72,7 +85,7 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
minetest.register_node("df_trees:nether_cap_wood", {
|
||||
description = S("Nether Cap Planks"),
|
||||
description = if_mineclone_installed(S("Nether Cap Planks"), S("Icecap Planks")),
|
||||
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
|
||||
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
|
||||
paramtype2 = "facedir",
|
||||
@ -81,13 +94,15 @@ minetest.register_node("df_trees:nether_cap_wood", {
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, wood = 1, freezes_water = 1},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.5,
|
||||
})
|
||||
|
||||
df_trees.register.all_stairs_and_fences("nether_cap_wood")
|
||||
|
||||
-- sapling
|
||||
minetest.register_node("df_trees:nether_cap_sapling", {
|
||||
description = S("Nether Cap Spawn"),
|
||||
description = if_mineclone_installed(S("Nether Cap Spawn"), S("Icecap Spawn")),
|
||||
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
|
||||
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
|
||||
drawtype = "plantlike",
|
||||
@ -107,6 +122,8 @@ minetest.register_node("df_trees:nether_cap_sapling", {
|
||||
groups = {snappy = 2, dig_immediate = 3,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11},
|
||||
sounds = df_trees.sounds.leaves,
|
||||
_mcl_blast_resistance = 0.1,
|
||||
_mcl_hardness = 0.1,
|
||||
|
||||
on_construct = function(pos)
|
||||
if df_trees.nether_cap_growth_permitted(pos) then
|
||||
|
@ -80,6 +80,8 @@ minetest.register_node("df_trees:spindlestem_stem", {
|
||||
}
|
||||
},
|
||||
on_place = stem_on_place,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -121,6 +123,8 @@ local register_spindlestem_type = function(item_suffix, colour_name, colour_code
|
||||
{-0.1875+disp, -0.3125, -0.1875+disp, 0.3125+disp, -0.1875, 0.3125+disp},
|
||||
}
|
||||
},
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
drop = {
|
||||
-- Maximum number of items to drop
|
||||
@ -202,7 +206,7 @@ local register_spindlestem_type = function(item_suffix, colour_name, colour_code
|
||||
})
|
||||
|
||||
if vessels and light_level > 0 then
|
||||
local tex = "dfcaverns_vessels_glowing_liquid.png^[multiply:#"..colour_code.."^vessels_glass_bottle.png"
|
||||
local tex = "dfcaverns_vessels_glowing_liquid.png^[multiply:#"..colour_code.."^"..df_dependencies.texture_glass_bottle
|
||||
local new_light = light_level + math.floor((minetest.LIGHT_MAX-light_level)/2)
|
||||
|
||||
local groups = {vessel = 1, dig_immediate = 3, attached_node = 1}
|
||||
@ -228,6 +232,8 @@ local register_spindlestem_type = function(item_suffix, colour_name, colour_code
|
||||
groups = groups,
|
||||
sounds = df_trees.sounds.glass,
|
||||
light_source = new_light,
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.5,
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
@ -271,6 +277,8 @@ minetest.register_node("df_trees:spindlestem_seedling", {
|
||||
{-0.0625 + 0.125, -0.5, -0.125 + 0.125, 0.125 + 0.125, -0.375, 0.0625 + 0.125},
|
||||
}
|
||||
},
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
|
||||
on_place = stem_on_place,
|
||||
on_construct = function(pos)
|
||||
|
@ -17,6 +17,8 @@ minetest.register_node("df_trees:spore_tree", {
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
on_place = minetest.rotate_node,
|
||||
})
|
||||
@ -39,6 +41,8 @@ minetest.register_node("df_trees:spore_tree_wood", {
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 3,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
df_trees.register.all_stairs_and_fences("spore_tree_wood", {burntime = 6})
|
||||
@ -91,6 +95,8 @@ minetest.register_node("df_trees:spore_tree_hyphae", {
|
||||
}
|
||||
},
|
||||
sounds = df_trees.sounds.leaves,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
|
||||
after_place_node = df_trees.after_place_leaves,
|
||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||
@ -106,6 +112,8 @@ minetest.register_node("df_trees:spore_tree_fruiting_body", {
|
||||
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1, spore_tree_hyphae = 1},
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
_mcl_blast_resistance = 0.7,
|
||||
_mcl_hardness = 0.7,
|
||||
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
@ -164,6 +172,8 @@ minetest.register_node("df_trees:spore_tree_sapling", {
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11},
|
||||
sounds = df_trees.sounds.leaves,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
|
||||
on_construct = function(pos)
|
||||
if df_trees.spore_tree_growth_permitted(pos) then
|
||||
@ -334,4 +344,6 @@ minetest.register_node("df_trees:spore_tree_ladder", {
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 3, flammable = 2},
|
||||
legacy_wallmounted = true,
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 1,
|
||||
_mcl_hardness = 1,
|
||||
})
|
||||
|
@ -116,6 +116,9 @@ minetest.register_node("df_trees:torchspine_1", {
|
||||
type = "fixed",
|
||||
fixed = stal_box_1,
|
||||
},
|
||||
_mcl_blast_resistance = 6,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
on_place = stal_on_place,
|
||||
on_punch = function(pos, node, puncher)
|
||||
if puncher:get_wielded_item():get_name() == torch_node then
|
||||
@ -152,6 +155,9 @@ minetest.register_node("df_trees:torchspine_1_lit", {
|
||||
type = "fixed",
|
||||
fixed = stal_box_1,
|
||||
},
|
||||
_mcl_blast_resistance = 6,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
on_place = stal_on_place,
|
||||
|
||||
on_timer = function(pos)
|
||||
@ -177,6 +183,9 @@ minetest.register_node("df_trees:torchspine_2", {
|
||||
type = "fixed",
|
||||
fixed = stal_box_2,
|
||||
},
|
||||
_mcl_blast_resistance = 6,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -203,6 +212,9 @@ minetest.register_node("df_trees:torchspine_3", {
|
||||
type = "fixed",
|
||||
fixed = stal_box_3,
|
||||
},
|
||||
_mcl_blast_resistance = 6,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -233,6 +245,9 @@ minetest.register_node("df_trees:torchspine_4", {
|
||||
type = "fixed",
|
||||
fixed = stal_box_4,
|
||||
},
|
||||
_mcl_blast_resistance = 6,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -267,6 +282,9 @@ minetest.register_node("df_trees:torchspine_ember", {
|
||||
{-0.0625 + x_disp, -0.5, -0.125 + z_disp, 0.125 + x_disp, -0.375, 0.0625 + z_disp},
|
||||
}
|
||||
},
|
||||
_mcl_blast_resistance = 10,
|
||||
_mcl_hardness = 1,
|
||||
|
||||
on_place = stal_on_place,
|
||||
|
||||
on_construct = function(pos)
|
||||
|
@ -7,8 +7,10 @@ minetest.register_node("df_trees:tower_cap_stem", {
|
||||
_doc_items_usagehelp = df_trees.doc.tower_cap_usage,
|
||||
tiles = {"dfcaverns_tower_cap.png"},
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, tower_cap = 1},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, tower_cap = 1, tower_cap_trunk = 1},
|
||||
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
--cap
|
||||
@ -18,8 +20,10 @@ minetest.register_node("df_trees:tower_cap", {
|
||||
_doc_items_usagehelp = df_trees.doc.tower_cap_usage,
|
||||
tiles = {"dfcaverns_tower_cap.png"},
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, tower_cap = 1},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, tower_cap = 1, tower_cap_trunk = 1},
|
||||
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
--gills
|
||||
@ -45,6 +49,8 @@ minetest.register_node("df_trees:tower_cap_gills", {
|
||||
}
|
||||
}
|
||||
},
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
after_place_node = df_trees.after_place_leaves,
|
||||
})
|
||||
|
||||
@ -58,14 +64,7 @@ df_trees.register_leafdecay({
|
||||
minetest.register_craft({
|
||||
output = 'df_trees:tower_cap_wood 4',
|
||||
recipe = {
|
||||
{'df_trees:tower_cap'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'df_trees:tower_cap_wood 4',
|
||||
recipe = {
|
||||
{'df_trees:tower_cap_stem'},
|
||||
{'group:tower_cap_trunk'},
|
||||
}
|
||||
})
|
||||
|
||||
@ -79,6 +78,8 @@ minetest.register_node("df_trees:tower_cap_wood", {
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 3,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
df_trees.register.all_stairs_and_fences("tower_cap_wood", {burntime = 7})
|
||||
@ -131,6 +132,8 @@ minetest.register_node("df_trees:tower_cap_sapling", {
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11},
|
||||
sounds = df_trees.sounds.leaves,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
|
||||
on_construct = function(pos)
|
||||
if df_trees.tower_cap_growth_permitted(pos) then
|
||||
|
@ -20,6 +20,8 @@ minetest.register_node("df_trees:tunnel_tube", {
|
||||
groups = {choppy = 3, tree = 1, oddly_breakable_by_hand=1, flammable = 2},
|
||||
sounds = df_trees.sounds.wood,
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -60,7 +62,8 @@ minetest.register_node("df_trees:tunnel_tube_slant_bottom", {
|
||||
{-0.5, 0.0, -0.875, 0.5, 0.5, 0.125},
|
||||
},
|
||||
},
|
||||
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
minetest.register_node("df_trees:tunnel_tube_slant_top", {
|
||||
@ -91,6 +94,8 @@ minetest.register_node("df_trees:tunnel_tube_slant_top", {
|
||||
{-0.5, 0.0, -0.375, 0.5, 0.5, 0.625},
|
||||
},
|
||||
},
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
minetest.register_node("df_trees:tunnel_tube_slant_full", {
|
||||
@ -121,6 +126,8 @@ minetest.register_node("df_trees:tunnel_tube_slant_full", {
|
||||
{-0.5, 0, -1.25, 0.5, 0.5, -0.25},
|
||||
},
|
||||
},
|
||||
_mcl_blast_resistance = 2,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
--Wood
|
||||
@ -149,6 +156,8 @@ minetest.register_node("df_trees:tunnel_tube_wood", {
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 10,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
df_trees.register.all_stairs_and_fences("tunnel_tube_wood", {burntime = 9})
|
||||
@ -204,6 +213,8 @@ if df_trees.config.enable_tnt then
|
||||
},
|
||||
},
|
||||
},
|
||||
_mcl_blast_resistance = 12,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
on_punch = function(pos, node, puncher)
|
||||
if puncher:get_wielded_item():get_name() == torch_item then
|
||||
@ -244,6 +255,8 @@ if df_trees.config.enable_tnt then
|
||||
light_source = 5,
|
||||
drop = "",
|
||||
sounds = df_trees.sounds.wood,
|
||||
_mcl_blast_resistance = 0,
|
||||
_mcl_hardness = 2,
|
||||
on_timer = function(pos, elapsed)
|
||||
tnt.boom(pos, tnt_def)
|
||||
end,
|
||||
@ -265,6 +278,8 @@ else
|
||||
groups = {choppy = 3, oddly_breakable_by_hand=1, flammable = 2},
|
||||
sounds = df_trees.sounds.wood,
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 12,
|
||||
_mcl_hardness = 2,
|
||||
|
||||
drop = {
|
||||
max_items = 3,
|
||||
@ -308,6 +323,8 @@ minetest.register_node("df_trees:tunnel_tube_sapling", {
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11},
|
||||
sounds = df_trees.sounds.leaves,
|
||||
_mcl_blast_resistance = 10,
|
||||
_mcl_hardness = 0.2,
|
||||
|
||||
on_construct = function(pos)
|
||||
if df_trees.tunnel_tube_growth_permitted(pos) then
|
||||
|
Reference in New Issue
Block a user