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:
FaceDeer 2022-08-07 00:33:22 -06:00
parent c297978d50
commit 3df518fc16
58 changed files with 499 additions and 54 deletions

View File

@ -165,6 +165,8 @@ minetest.register_node("big_webs:webbing", {
minetest.get_node_timer(web_pos):stop() -- no need to recheck
end
end,
_mcl_blast_resistance = 1.0,
_mcl_hardness = 0.5,
})
minetest.register_node("big_webs:web_egg", {
@ -193,4 +195,6 @@ minetest.register_node("big_webs:web_egg", {
minetest.set_node(pos, {name="air"})
generate_web(pos)
end,
_mcl_blast_resistance = 1.0,
_mcl_hardness = 0.5,
})

View File

@ -8,7 +8,7 @@ local n7 = { name = df_dependencies.node_name_stair_slade_brick, param2 = 1, for
local n8 = { name = "df_underworld_items:slade_brick", force_place=true }
local n9 = { name = df_dependencies.node_name_stair_slade_brick, param2 = 3, force_place=true }
local n10 = { name = "df_underworld_items:slade_wall", force_place=true }
local n11 = { name = "df_underworld_items:stonebrick_light_worn", prob=192 } -- 50% chance of being force-placed
local n11 = { name = "df_underworld_items:ancient_lantern_slade_worn", prob=192 } -- 50% chance of being force-placed
local n12 = { name = df_dependencies.node_name_stair_outer_slade_brick, param2 = 2, force_place=true }
local n13 = { name = df_dependencies.node_name_stair_slade_brick, param2 = 2, force_place=true }
local n14 = { name = df_dependencies.node_name_stair_outer_slade_brick, param2 = 3, force_place=true }

View File

@ -1,7 +1,7 @@
# textdomain: df_dependencies
### minetest_game.lua ###
### helper_functions.lua ###
@1 Fence=
@1 Fence Gate=
@ -11,4 +11,4 @@
@1 Slab=@1 Platte
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
@1 Stair=@1 Treppe
Double @1 Slab=

View File

@ -1,7 +1,7 @@
# textdomain: df_dependencies
### minetest_game.lua ###
### helper_functions.lua ###
@1 Fence=
@1 Fence Gate=
@ -11,4 +11,4 @@
@1 Slab=@1 Lastra
#WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE
@1 Stair=@1 Scala
Double @1 Slab=

View File

@ -1,7 +1,7 @@
# textdomain: df_dependencies
### minetest_game.lua ###
### helper_functions.lua ###
@1 Fence=
@1 Fence Gate=
@ -9,3 +9,4 @@
@1 Mese Post Light=
@1 Slab=
@1 Stair=
Double @1 Slab=

View File

@ -48,6 +48,9 @@ local register_cave_wheat = function(number)
},
},
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
}
if number < 8 then
@ -166,6 +169,8 @@ minetest.register_node("df_farming:cave_straw", {
is_ground_content = false,
groups = {snappy=3, flammable=4, fall_damage_add_percent=-30, straw=1},
sounds = df_farming.sounds.leaves,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
})
minetest.register_craft({
@ -206,6 +211,8 @@ if minetest.get_modpath("footprints") then
groups = {snappy = 3, flammable = 2, attached_node = 1},
drop = "",
sounds = df_farming.sounds.leaves,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
})
footprints.register_trample_node("df_farming:cave_wheat_5", {

View File

@ -42,6 +42,8 @@ local register_dimple_cup = function(number)
},
},
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
}
if number < 4 then
@ -77,6 +79,8 @@ local def = {
{-8/16, -8/16, -8/16, 8/16, -8/16 + 4*4/16, 8/16},
},
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
}
minetest.register_node(name, def)

View File

@ -48,6 +48,8 @@ local register_pig_tail = function(number)
},
},
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
}
if number < 8 then
@ -138,6 +140,8 @@ if minetest.get_modpath("footprints") then
groups = {snappy = 3, flammable = 2, attached_node = 1},
drop = "",
sounds = df_farming.sounds.leaves,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
footprints.register_trample_node("df_farming:pig_tail_5", {

View File

@ -21,6 +21,8 @@ minetest.register_node("df_farming:dead_fungus", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.0, 0.5},
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_craft({
@ -54,6 +56,8 @@ minetest.register_node("df_farming:cavern_fungi", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.0, 0.5},
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_craft({
@ -165,6 +169,8 @@ df_farming.register_seed = function(name, description, image, stage_one, grow_ti
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
on_place = function(itemstack, placer, pointed_thing)
return place_seed(itemstack, placer, pointed_thing, "df_farming:"..name)

View File

@ -82,6 +82,8 @@ minetest.register_node("df_farming:plump_helmet_spawn", {
{-0.0625 + displace_x, -0.5, -0.125 + displace_z, 0.125 + displace_x, -0.375, 0.0625 + displace_z},
}
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
on_place = function(itemstack, placer, pointed_thing)
return plump_helmet_on_place(itemstack, placer, pointed_thing, "df_farming:plump_helmet_spawn")
@ -123,6 +125,8 @@ minetest.register_node("df_farming:plump_helmet_1", {
{-0.125 + displace_x, -0.4375, -0.1875 + displace_z, 0.1875 + displace_x, -0.3125, 0.125 + displace_z}, -- cap
}
},
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.3,
on_place = function(itemstack, placer, pointed_thing)
return plump_helmet_on_place(itemstack, placer, pointed_thing, "df_farming:plump_helmet_1")
@ -164,6 +168,9 @@ minetest.register_node("df_farming:plump_helmet_2", {
{-0.125 + displace_x, -0.3125, -0.1875 + displace_z, 0.1875 + displace_x, -0.0625, 0.125 + displace_z}, -- cap
}
},
_mcl_blast_resistance = 0.4,
_mcl_hardness = 0.4,
on_place = function(itemstack, placer, pointed_thing)
return plump_helmet_on_place(itemstack, placer, pointed_thing, "df_farming:plump_helmet_2")
end,
@ -203,6 +210,9 @@ minetest.register_node("df_farming:plump_helmet_3", {
{-0.1875 + displace_x, -0.125, -0.25 + displace_z, 0.25 + displace_x, 0.1875, 0.1875 + displace_z}, -- cap
}
},
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_place = function(itemstack, placer, pointed_thing)
return plump_helmet_on_place(itemstack, placer, pointed_thing, "df_farming:plump_helmet_3")
end,
@ -241,6 +251,9 @@ minetest.register_node("df_farming:plump_helmet_4", {
{-0.1875 + displace_x, 0.25, -0.25 + displace_z, 0.25 + displace_x, 0.3125, 0.1875 + displace_z}, -- cap rounding
}
},
_mcl_blast_resistance = 0.6,
_mcl_hardness = 0.6,
drop = {
max_items = 4,
items = {
@ -297,6 +310,9 @@ minetest.register_node("df_farming:plump_helmet_4_picked", {
{-0.1875 + displace_x, 0.25, -0.25 + displace_z, 0.25 + displace_x, 0.3125, 0.1875 + displace_z}, -- cap rounding
}
},
_mcl_blast_resistance = 0.6,
_mcl_hardness = 0.6,
on_place = function(itemstack, placer, pointed_thing)
return plump_helmet_on_place(itemstack, placer, pointed_thing, "df_farming:plump_helmet_4_picked")
end,

View File

@ -26,6 +26,8 @@ local register_quarry_bush = function(number)
{-8/16, -8/16, -8/16, 8/16, -8/16 + (16/5)*number/16, 8/16},
},
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
on_timer = function(pos, elapsed)
df_farming.grow_underground_plant(pos, name, elapsed)

View File

@ -24,6 +24,8 @@ local register_sweet_pod = function(number)
{-8/16, -8/16, -8/16, 8/16, -8/16 + (16/6)*number/16, 8/16},
},
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
on_timer = function(pos, elapsed)
df_farming.grow_underground_plant(pos, name, elapsed)
@ -138,6 +140,8 @@ end
----------------------------------------------
-- Syrup
-- TODO: mcl_core.register_liquid
if df_dependencies.bucket_register_liquid then
minetest.register_node("df_farming:dwarven_syrup_source", {
description = S("Dwarven Syrup Source"),
@ -185,6 +189,8 @@ if df_dependencies.bucket_register_liquid then
post_effect_color = {a = 204, r = 179, g = 131, b = 88},
groups = {liquid = 3, flammable = 2},
sounds = df_farming.sounds.syrup,
_mcl_blast_resistance = 100,
_mcl_hardness = -1,
})
minetest.register_node("df_farming:dwarven_syrup_flowing", {
@ -234,6 +240,8 @@ if df_dependencies.bucket_register_liquid then
post_effect_color = {a = 204, r = 179, g = 131, b = 88},
groups = {liquid = 3, flammable = 2, not_in_creative_inventory = 1},
sounds = df_farming.sounds.syrup,
_mcl_blast_resistance = 100,
_mcl_hardness = -1,
})
df_farming.bucket_register_liquid(

View File

@ -18,6 +18,8 @@ minetest.register_node("df_mapitems:castle_coral", {
paramtype = "light",
groups = {cracky=2,},
sounds = df_mapitems.sounds.stone,
_mcl_hardness = 1.5,
_mcl_blast_resistance = 6,
})
minetest.register_node("df_mapitems:castle_coral_skeleton", {
@ -33,6 +35,8 @@ minetest.register_node("df_mapitems:castle_coral_skeleton", {
is_ground_content = false,
groups = {cracky = 3},
sounds = df_mapitems.sounds.stone,
_mcl_hardness = 1.5,
_mcl_blast_resistance = 6,
})
local c_coral = minetest.get_content_id("df_mapitems:castle_coral")

View File

@ -19,6 +19,8 @@ minetest.register_node("df_mapitems:cave_coral_3", {
minetest.set_node(pos, {name=coral_skeleton})
end
end,
_mcl_hardness = 1.5,
_mcl_blast_resistance = 6,
})
minetest.register_node("df_mapitems:cave_coral_2", {
@ -37,6 +39,8 @@ minetest.register_node("df_mapitems:cave_coral_2", {
minetest.set_node(pos, {name=coral_skeleton})
end
end,
_mcl_hardness = 1.5,
_mcl_blast_resistance = 6,
})
minetest.register_node("df_mapitems:cave_coral_1", {
@ -55,6 +59,8 @@ minetest.register_node("df_mapitems:cave_coral_1", {
minetest.set_node(pos, {name=coral_skeleton})
end
end,
_mcl_hardness = 1.5,
_mcl_blast_resistance = 6,
})
local coral_names = {"df_mapitems:cave_coral_1", "df_mapitems:cave_coral_2", "df_mapitems:cave_coral_3"}

View File

@ -22,4 +22,6 @@ minetest.register_node("df_mapitems:cave_pearls", {
}
},
on_place = df_mapitems.place_against_surface,
_mcl_hardness = 1.5,
_mcl_blast_resistance = 6,
})

View File

@ -14,6 +14,8 @@ minetest.register_node("df_mapitems:glow_mese", {
use_texture_alpha = "blend",
drawtype = "glasslike",
sunlight_propagates = true,
_mcl_blast_resistance = 1.5,
_mcl_hardness = 1.5,
})
minetest.register_craft({
@ -39,6 +41,8 @@ minetest.register_node("df_mapitems:mese_crystal", {
use_texture_alpha = "blend",
sunlight_propagates = true,
on_place = df_mapitems.place_against_surface,
_mcl_blast_resistance = 1.5,
_mcl_hardness = 1.5,
})
minetest.register_craft({

View File

@ -8,6 +8,8 @@ minetest.register_node("df_mapitems:glow_ruby_ore", {
is_ground_content = false,
groups = {cracky=2},
sounds = df_mapitems.sounds.glass,
_mcl_blast_resistance = 1.5,
_mcl_hardness = 1.5,
})
minetest.register_node("df_mapitems:big_crystal", {
@ -36,6 +38,8 @@ minetest.register_node("df_mapitems:big_crystal", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 3, 0.5},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("df_mapitems:med_crystal", {
@ -64,6 +68,8 @@ minetest.register_node("df_mapitems:med_crystal", {
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 1.25, 0.25},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
@ -117,6 +123,8 @@ minetest.register_node("df_mapitems:big_crystal_30", {
-- {-0.25, 2.0, -1.625, 0.25, 2.5, -1.125},
},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("df_mapitems:med_crystal_30", {
@ -154,6 +162,8 @@ minetest.register_node("df_mapitems:med_crystal_30", {
{-0.25, 0.5, -0.9375, 0.25, 1.0, -0.4375},
},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("df_mapitems:big_crystal_30_45", {
@ -191,6 +201,8 @@ minetest.register_node("df_mapitems:big_crystal_30_45", {
{0.5, 1.5, -1.5, 1.5, 2.5, -0.5},
},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
@ -229,6 +241,8 @@ minetest.register_node("df_mapitems:med_crystal_30_45", {
{0.25, 0.5, -0.75, 0.75, 1.0, -0.25},
},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_craft({

View File

@ -16,6 +16,8 @@ minetest.register_node("df_mapitems:salt_crystal", {
sunlight_propagates = true,
is_ground_content = false,
on_place = df_mapitems.place_against_surface,
_mcl_blast_resistance = 1,
_mcl_hardness = 1,
})
minetest.register_node("df_mapitems:salty_cobble", {
@ -29,4 +31,6 @@ minetest.register_node("df_mapitems:salty_cobble", {
light_source = 2,
drop = df_mapitems.node_name.cobble,
sounds = df_mapitems.sounds.stone,
_mcl_blast_resistance = 6,
_mcl_hardness = 2,
})

View File

@ -12,6 +12,8 @@ df_mapitems.dry_stalagmite_ids = subterrane.register_stalagmite_nodes("df_mapite
groups = {cracky = 3, stone = 2},
sounds = df_mapitems.sounds.stone,
is_ground_content = false,
_mcl_blast_resistance = 6,
_mcl_hardness = 1.5,
})
minetest.register_node("df_mapitems:dry_flowstone", {
@ -24,6 +26,8 @@ minetest.register_node("df_mapitems:dry_flowstone", {
is_ground_content = false,
drop = df_mapitems.node_name.cobble,
sounds = df_mapitems.sounds.stone,
_mcl_blast_resistance = 6,
_mcl_hardness = 1.5,
})
-----------------------------------------------
@ -38,6 +42,8 @@ df_mapitems.wet_stalagmite_ids = subterrane.register_stalagmite_nodes("df_mapite
groups = {cracky = 3, stone = 2, subterrane_wet_dripstone = 1},
sounds = df_mapitems.sounds.stone,
is_ground_content = false,
_mcl_blast_resistance = 6,
_mcl_hardness = 1.5,
}, "df_mapitems:dry_stal")
@ -51,6 +57,8 @@ minetest.register_node("df_mapitems:wet_flowstone", {
is_ground_content = false,
drop = df_mapitems.node_name.cobble,
sounds = df_mapitems.sounds.stone,
_mcl_blast_resistance = 6,
_mcl_hardness = 1.5,
})
-----------------------------------------------
@ -64,5 +72,7 @@ df_mapitems.icicle_ids = subterrane.register_stalagmite_nodes("df_mapitems:icicl
},
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1, slippery = 3},
sounds = df_mapitems.sounds.glass,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
})

View File

@ -32,6 +32,8 @@ minetest.register_node("df_mapitems:glow_worm", {
buildable_to = true,
floodable = true,
visual_scale = 1.0,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
after_place_node = function(pos, placer)
if df_mapitems.config.glow_worm_delay_multiplier > 0 then
minetest.get_node_timer(pos):start(math.random(

View File

@ -53,6 +53,8 @@ minetest.register_node("df_mapitems:dirt_with_cave_moss", {
wet = farming_soil_wet
},
_dfcaverns_dead_node = dirt_node,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.6,
})
soil_type_spread("df_mapitems:cave_moss_spread", "df_mapitems:dirt_with_cave_moss", dirt_node)
@ -74,6 +76,8 @@ minetest.register_node("df_mapitems:sand_scum", {
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8},
sounds = df_mapitems.sounds.sandscum,
_dfcaverns_dead_node = sand_node,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
})
soil_type_spread("df_mapitems:sand_scum_spread", "df_mapitems:sand_scum", sand_node)
@ -100,6 +104,8 @@ minetest.register_node("df_mapitems:dirt_with_pebble_fungus", {
wet = farming_soil_wet
},
_dfcaverns_dead_node = dirt_node,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.6,
})
soil_type_spread("df_mapitems:pebble_fungus_spread", "df_mapitems:dirt_with_pebble_fungus", dirt_node)
@ -126,6 +132,8 @@ minetest.register_node("df_mapitems:dirt_with_stillworm", {
wet = farming_soil_wet
},
_dfcaverns_dead_node = dirt_node,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.6,
})
soil_type_spread("df_mapitems:stillworm_spread", "df_mapitems:dirt_with_stillworm", dirt_node)
@ -149,6 +157,8 @@ minetest.register_node("df_mapitems:spongestone", {
wet = farming_soil_wet
},
_dfcaverns_dead_node = dirt_node,
_mcl_blast_resistance = 0.6,
_mcl_hardness = 0.6,
})
minetest.register_node("df_mapitems:rock_rot", {
@ -165,6 +175,8 @@ minetest.register_node("df_mapitems:rock_rot", {
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 8},
sounds = df_mapitems.sounds.dirt,
_dfcaverns_dead_node = stone_node,
_mcl_blast_resistance = 3,
_mcl_hardness = 1,
})
soil_type_spread("df_mapitems:rock_rot_spread", "df_mapitems:rock_rot", stone_node)
@ -186,6 +198,8 @@ minetest.register_node("df_mapitems:cobble_with_floor_fungus", {
groups = {cracky = 3, stone = 2, slippery = 1, light_sensitive_fungus = 8, df_caverns_floor_fungus = 1},
_dfcaverns_dead_node = df_mapitems.node_name.cobble,
sounds = df_mapitems.sounds.floor_fungus,
_mcl_blast_resistance = 6,
_mcl_hardness = 1.5,
})
minetest.register_node("df_mapitems:cobble_with_floor_fungus_fine", {
@ -199,6 +213,8 @@ minetest.register_node("df_mapitems:cobble_with_floor_fungus_fine", {
groups = {cracky = 3, stone = 2, slippery = 1, light_sensitive_fungus = 8, df_caverns_floor_fungus = 1},
_dfcaverns_dead_node = df_mapitems.node_name.cobble,
df_mapitems.sounds.floor_fungus,
_mcl_blast_resistance = 6,
_mcl_hardness = 1.5,
on_timer = function(pos, elapsed)
minetest.swap_node(pos, {name="df_mapitems:cobble_with_floor_fungus"})
end,
@ -219,7 +235,7 @@ minetest.register_abm{
if above_def and (above_def.buildable_to == true or above_def.walkable == false) then
minetest.swap_node(pos, {name="df_mapitems:cobble_with_floor_fungus_fine"})
if math.random() > 0.5 then
minetest.get_node_timer(pos):start(math.random(100, 1000))
minetest.get_node_timer(pos):start(math.random(1000, 10000))
end
end
end,
@ -240,6 +256,8 @@ minetest.register_node("df_mapitems:ice_with_hoar_moss", {
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1, slippery = 2, light_sensitive_fungus = 8},
sounds = df_mapitems.sounds.glass,
_dfcaverns_dead_node = df_mapitems.node_name.ice,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
})

View File

@ -13,6 +13,8 @@ minetest.register_node("df_mapitems:snareweed", {
light_source = 6,
groups = {crumbly = 3, soil = 1},
sounds = df_mapitems.sounds.dirt,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.6,
})
if df_mapitems.config.snareweed_damage then

View File

@ -16,6 +16,8 @@ minetest.register_node("df_mapitems:veinstone", {
minetest.swap_node(pos, {name="df_mapitems:veinstone_pulse"})
minetest.get_node_timer(pos):start(2)
end,
_mcl_blast_resistance = 10,
_mcl_hardness = 3,
})
minetest.register_node("df_mapitems:veinstone_pulse", {
@ -47,6 +49,8 @@ minetest.register_node("df_mapitems:veinstone_pulse", {
minetest.swap_node(pos, {name="df_mapitems:veinstone_refractory"})
minetest.get_node_timer(pos):start(12)
end,
_mcl_blast_resistance = 10,
_mcl_hardness = 3,
})
minetest.register_node("df_mapitems:veinstone_refractory", {
@ -63,4 +67,6 @@ minetest.register_node("df_mapitems:veinstone_refractory", {
on_timer = function(pos, elapsed)
minetest.swap_node(pos, {name="df_mapitems:veinstone"})
end,
_mcl_blast_resistance = 10,
_mcl_hardness = 3,
})

View File

@ -15,6 +15,8 @@ minetest.register_node("df_primordial_items:glownode", {
groups = {cracky = 3, oddly_breakable_by_hand = 3},
sounds = df_primordial_items.sounds.glass,
light_source = minetest.LIGHT_MAX,
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.3,
})
minetest.register_node("df_primordial_items:glownode_stalk", {
@ -26,7 +28,9 @@ minetest.register_node("df_primordial_items:glownode_stalk", {
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = df_primordial_items.sounds.wood,
on_place = minetest.rotate_node
on_place = minetest.rotate_node,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("df_primordial_items:glow_orb_hanging", {
@ -47,6 +51,8 @@ minetest.register_node("df_primordial_items:glow_orb_hanging", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
local c_stalk = minetest.get_content_id("df_primordial_items:glownode_stalk")

View File

@ -22,6 +22,8 @@ minetest.register_node("df_primordial_items:fungal_grass_1", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:fungal_grass_2", {
@ -42,6 +44,8 @@ minetest.register_node("df_primordial_items:fungal_grass_2", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
-- Glowing
@ -64,6 +68,8 @@ minetest.register_node("df_primordial_items:glow_orb", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:glow_orb_stalks", {
@ -84,6 +90,8 @@ minetest.register_node("df_primordial_items:glow_orb_stalks", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:glow_pods", {
@ -117,6 +125,8 @@ minetest.register_node("df_primordial_items:glow_pods", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
------------------------------------------------------------------------------------
@ -134,6 +144,8 @@ minetest.register_node("df_primordial_items:dirt_with_mycelium", {
drop = df_primordial_items.node_names.dirt,
sounds = df_primordial_items.sounds.dirt,
light_source = 3,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.6,
})
minetest.register_abm{

View File

@ -15,6 +15,8 @@ minetest.register_node("df_primordial_items:giant_fern_tree", {
sounds = df_primordial_items.sounds.wood,
sunlight_propagates = true,
on_place = minetest.rotate_node,
_mcl_blast_resistance = 2,
_mcl_hardness = 1,
})
minetest.register_node("df_primordial_items:giant_fern_tree_slant_bottom", {
@ -52,6 +54,8 @@ minetest.register_node("df_primordial_items:giant_fern_tree_slant_bottom", {
{-0.5, 0.0, -0.875, 0.5, 0.5, 0.125},
},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 1,
})
minetest.register_node("df_primordial_items:giant_fern_tree_slant_top", {
@ -89,6 +93,8 @@ minetest.register_node("df_primordial_items:giant_fern_tree_slant_top", {
{-0.5, 0.0, -0.375, 0.5, 0.5, 0.625},
},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 1,
})
minetest.register_node("df_primordial_items:giant_fern_tree_slant_full", {
@ -126,6 +132,8 @@ minetest.register_node("df_primordial_items:giant_fern_tree_slant_full", {
{-0.5, 0, -1.25, 0.5, 0.5, -0.25},
},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 1,
})
minetest.register_node("df_primordial_items:fern_wood", {
@ -137,6 +145,8 @@ minetest.register_node("df_primordial_items:fern_wood", {
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
sounds = df_primordial_items.sounds.wood,
_mcl_blast_resistance = 3,
_mcl_hardness = 1,
})
minetest.register_craft({
@ -181,6 +191,8 @@ minetest.register_node("df_primordial_items:giant_fern_leaves", {
}
}
},
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
df_primordial_items.register_leafdecay({
@ -306,6 +318,8 @@ minetest.register_node("df_primordial_items:fern_sapling", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
on_construct = function(pos)
if df_primordial_items.giant_fern_growth_permitted(pos) then
minetest.get_node_timer(pos):start(math.random(

View File

@ -48,6 +48,8 @@ minetest.register_node("df_primordial_items:giant_hypha_root", {
},
},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("df_primordial_items:giant_hypha", {
description = S("Giant Hypha"),
@ -79,6 +81,8 @@ minetest.register_node("df_primordial_items:giant_hypha", {
},
},
},
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_craftitem("df_primordial_items:mycelial_fibers", {
@ -319,6 +323,8 @@ minetest.register_node("df_primordial_items:giant_hypha_apical_meristem", {
groups = {oddly_breakable_by_hand = 1, choppy = 2, hypha = 1, light_sensitive_fungus = 13},
_dfcaverns_dead_node = "df_primordial_items:giant_hypha_root",
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
on_construct = function(pos)
if df_primordial_items.giant_mycelium_growth_permitted(pos) then
minetest.get_node_timer(pos):start(math.random(min_growth_delay, max_growth_delay))
@ -406,6 +412,8 @@ minetest.register_node("df_primordial_items:giant_hypha_apical_mapgen", {
is_ground_content = false,
groups = {oddly_breakable_by_hand = 1, choppy = 2, hypha = 1, not_in_creative_inventory = 1, light_sensitive_fungus = 13},
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
on_timer = function(pos, elapsed)
grow_mycelium_immediately(pos)

View File

@ -12,7 +12,9 @@ minetest.register_node("df_primordial_items:jungle_mushroom_trunk", {
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
on_place = minetest.rotate_node
on_place = minetest.rotate_node,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("df_primordial_items:jungle_mushroom_cap_1", {
@ -37,6 +39,8 @@ minetest.register_node("df_primordial_items:jungle_mushroom_cap_1", {
}
}
},
_mcl_blast_resistance = 2,
_mcl_hardness = 1,
})
minetest.register_node("df_primordial_items:jungle_mushroom_cap_2", {
@ -61,6 +65,8 @@ minetest.register_node("df_primordial_items:jungle_mushroom_cap_2", {
}
}
},
_mcl_blast_resistance = 2,
_mcl_hardness = 1,
})
minetest.register_craftitem("df_primordial_items:diced_mushroom", {
@ -107,6 +113,8 @@ minetest.register_node("df_primordial_items:jungle_mushroom_sapling", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
on_construct = function(pos)
if df_primordial_items.jungle_mushroom_growth_permitted(pos) then

View File

@ -22,6 +22,8 @@ minetest.register_node("df_primordial_items:fern_1", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:fern_2", {
@ -43,6 +45,8 @@ minetest.register_node("df_primordial_items:fern_2", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
---------------------------------------------------------
@ -80,6 +84,8 @@ minetest.register_node("df_primordial_items:glow_plant_1", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:glow_plant_2", {
@ -102,6 +108,8 @@ minetest.register_node("df_primordial_items:glow_plant_2", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:glow_plant_3", {
@ -124,6 +132,8 @@ minetest.register_node("df_primordial_items:glow_plant_3", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
@ -148,6 +158,8 @@ minetest.register_node("df_primordial_items:jungle_grass_1", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:jungle_grass_2", {
@ -169,6 +181,8 @@ minetest.register_node("df_primordial_items:jungle_grass_2", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:jungle_grass_3", {
@ -190,12 +204,15 @@ minetest.register_node("df_primordial_items:jungle_grass_3", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
-----------------------------------------------------------------------------------------
-- Ivy
-- TODO: this is not actually used, find somewhere to put it
minetest.register_node("df_primordial_items:jungle_ivy", {
description = S("Primordial Jungle Ivy"),
_doc_items_longdesc = df_primordial_items.doc.ivy_desc,
@ -218,6 +235,8 @@ minetest.register_node("df_primordial_items:jungle_ivy", {
-- selection_box = {
-- type = "wallmounted",
-- },
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
-------------------------------------------------------------------------------------
@ -240,6 +259,8 @@ minetest.register_node("df_primordial_items:jungle_mushroom_1", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:jungle_mushroom_2", {
@ -259,6 +280,8 @@ minetest.register_node("df_primordial_items:jungle_mushroom_2", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
----------------------------------------------------------------------------------------
@ -275,6 +298,8 @@ minetest.register_node("df_primordial_items:dirt_with_jungle_grass", {
is_ground_content = false,
drop = df_primordial_items.node_names.dirt,
sounds = df_primordial_items.sounds.dirt,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.6,
})
minetest.register_abm{
@ -313,6 +338,8 @@ minetest.register_node("df_primordial_items:plant_matter", {
minetest.set_node(pos, {name="df_primordial_items:packed_roots"})
end
end,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("df_primordial_items:packed_roots", {
@ -324,6 +351,8 @@ minetest.register_node("df_primordial_items:packed_roots", {
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = df_primordial_items.sounds.wood,
_mcl_blast_resistance = 3,
_mcl_hardness = 3,
})
@ -378,6 +407,8 @@ minetest.register_node("df_primordial_items:jungle_roots_1", {
walkable = false,
climbable = true,
is_ground_content = false,
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:jungle_roots_2", {
@ -396,6 +427,8 @@ minetest.register_node("df_primordial_items:jungle_roots_2", {
sunlight_propagates = true,
walkable = false,
climbable = true,
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.2,
})
--------------------------------------------------------------------------------
@ -420,6 +453,8 @@ minetest.register_node("df_primordial_items:jungle_thorns", {
use_texture_alpha = "clip",
sunlight_propagates = true,
damage_per_second = 1,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.3,
})

View File

@ -31,6 +31,8 @@ minetest.register_node("df_primordial_items:jungle_leaves", {
},
after_place_node = df_primordial_items.after_place_leaves,
place_param2 = 1, -- Prevent leafdecay for placed nodes
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:jungle_leaves_glowing", {
@ -64,6 +66,8 @@ minetest.register_node("df_primordial_items:jungle_leaves_glowing", {
},
after_place_node = df_primordial_items.after_place_leaves,
place_param2 = 1, -- Prevent leafdecay for placed nodes
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
-- Trunk
@ -77,7 +81,9 @@ minetest.register_node("df_primordial_items:jungle_tree", {
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1},
sounds = df_primordial_items.sounds.wood,
on_place = minetest.rotate_node
on_place = minetest.rotate_node,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("df_primordial_items:jungle_tree_mossy", {
@ -89,7 +95,9 @@ minetest.register_node("df_primordial_items:jungle_tree_mossy", {
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1},
sounds = df_primordial_items.sounds.wood,
on_place = minetest.rotate_node
on_place = minetest.rotate_node,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("df_primordial_items:jungle_tree_glowing", {
@ -102,7 +110,9 @@ minetest.register_node("df_primordial_items:jungle_tree_glowing", {
light_source = 4,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1},
sounds = df_primordial_items.sounds.wood,
on_place = minetest.rotate_node
on_place = minetest.rotate_node,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
df_primordial_items.register_leafdecay({
@ -238,6 +248,8 @@ minetest.register_node("df_primordial_items:jungletree_sapling", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
on_construct = function(pos)
if df_primordial_items.jungletree_growth_permitted(pos) then
minetest.get_node_timer(pos):start(math.random(

View File

@ -9,7 +9,9 @@ minetest.register_node("df_primordial_items:mushroom_trunk", {
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
on_place = minetest.rotate_node
on_place = minetest.rotate_node,
_mcl_blast_resistance = 3,
_mcl_hardness = 3,
})
minetest.register_node("df_primordial_items:mushroom_cap", {
@ -21,7 +23,9 @@ minetest.register_node("df_primordial_items:mushroom_cap", {
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
on_place = minetest.rotate_node
on_place = minetest.rotate_node,
_mcl_blast_resistance = 2,
_mcl_hardness = 2,
})
minetest.register_node("df_primordial_items:mushroom_gills", {
@ -56,6 +60,8 @@ minetest.register_node("df_primordial_items:mushroom_gills", {
},
after_place_node = df_primordial_items.after_place_leaves,
place_param2 = 1, -- Prevent leafdecay for placed nodes
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
minetest.register_node("df_primordial_items:mushroom_gills_glowing", {
@ -91,6 +97,8 @@ minetest.register_node("df_primordial_items:mushroom_gills_glowing", {
},
after_place_node = df_primordial_items.after_place_leaves,
place_param2 = 1, -- Prevent leafdecay for placed nodes
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
df_primordial_items.register_leafdecay({
@ -108,6 +116,8 @@ minetest.register_node("df_primordial_items:primordial_mush_trunk_wood", {
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
sounds = df_primordial_items.sounds.wood,
_mcl_blast_resistance = 4,
_mcl_hardness = 3,
})
minetest.register_craft({
@ -128,6 +138,8 @@ minetest.register_node("df_primordial_items:primordial_mush_cap_wood", {
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
sounds = df_primordial_items.sounds.wood,
_mcl_blast_resistance = 3,
_mcl_hardness = 2,
})
minetest.register_craft({
@ -749,6 +761,8 @@ minetest.register_node("df_primordial_items:mush_sapling", {
sounds = df_primordial_items.sounds.leaves,
use_texture_alpha = "clip",
sunlight_propagates = true,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
on_construct = function(pos)
if df_primordial_items.primordial_mushroom_growth_permitted(pos) then
minetest.get_node_timer(pos):start(math.random(

View File

@ -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

View File

@ -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})

View File

@ -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.")

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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=

View File

@ -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

View File

@ -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)

View File

@ -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,
})

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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",

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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=

View File

@ -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=

View File

@ -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=

View File

@ -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,

View File

@ -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

View File

@ -49,6 +49,8 @@ minetest.register_node("ice_sprites:ice_sprite", {
},
light_source = 6,
floodable = true,
_mcl_blast_resistance = 0.1,
_mcl_hardness = 0.1,
on_place = function(itemstack, placer, pointed_thing)
local player_name = placer:get_player_name()
local pos = pointed_thing.above
@ -82,9 +84,11 @@ minetest.register_node("ice_sprites:hidden_ice_sprite", {
pointable = false,
diggable = false,
buildable_to = true,
drop = "",
drop = "ice_sprites:ice_sprite",
groups = {not_in_creative_inventory = 1},
floodable = true,
_mcl_blast_resistance = 0.1,
_mcl_hardness = 0.1,
on_place = function(itemstack, placer, pointed_thing)
local player_name = placer:get_player_name()
local pos = pointed_thing.above
@ -140,6 +144,8 @@ minetest.register_node("ice_sprites:ice_sprite_bottle", {
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
},
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
sounds = glass_sounds(),
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
local lower_pos = {x = pos.x, y = pos.y + 1, z = pos.z}

View File

@ -55,6 +55,8 @@ minetest.register_node("mine_gas:gas_seep", {
drop = df_dependencies.node_name_coal_lump,
sounds = df_dependencies.sound_stone(),
is_ground_content = true,
_mcl_blast_resistance = 5,
_mcl_hardness = 3,
})
minetest.register_on_dignode(function(pos, oldnode, digger)

View File

@ -41,6 +41,8 @@ minetest.register_node("mine_gas:gas_wisp", {
drop = {},
sunlight_propagates = true,
on_blast = function() end, -- unaffected by explosions
_mcl_blast_resistance = 3600000,
_mcl_hardness = 0,
})
minetest.register_abm({

View File

@ -63,6 +63,8 @@ minetest.register_node("oil:oil_source", {
post_effect_color = {a = 250, r = 0, g = 0, b = 0},
groups = {liquid = 3},
sounds = oil_sounds,
_mcl_blast_resistance = 100,
_mcl_hardness = -1,
})
minetest.register_node("oil:oil_flowing", {
@ -113,6 +115,8 @@ minetest.register_node("oil:oil_flowing", {
post_effect_color = {a = 250, r = 0, g = 0, b = 0},
groups = {liquid = 3, not_in_creative_inventory = 1},
sounds = oil_sounds,
_mcl_blast_resistance = 100,
_mcl_hardness = -1,
})
minetest.register_craft({