Make trees, funghi not ground content, they get damaged by cavegen (#4757)
Prevents trees and funghi from being damaged by cavegen across map chunk boundaries. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4757 Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com> Co-authored-by: kno10 <erich.schubert@gmail.com> Co-committed-by: kno10 <erich.schubert@gmail.com>
This commit is contained in:
parent
f4d80f0b3f
commit
0faedea137
@ -59,6 +59,7 @@ function mcl_core.register_tree_trunk(subname, description_trunk, description_ba
|
||||
_doc_items_hidden = false,
|
||||
tiles = {tile_inner, tile_inner, tile_bark},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
on_place = mcl_util.rotate_axis,
|
||||
after_destruct = mcl_core.update_leaves,
|
||||
stack_max = 64,
|
||||
@ -75,6 +76,7 @@ function mcl_core.register_tree_trunk(subname, description_trunk, description_ba
|
||||
_doc_items_longdesc = S("This is a decorative block surrounded by the bark of a tree trunk."),
|
||||
tiles = {tile_bark},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
on_place = mcl_util.rotate_axis,
|
||||
stack_max = 64,
|
||||
groups = {handy=1,axey=1, bark=1, flammable=2, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
@ -104,6 +106,7 @@ function mcl_core.register_stripped_trunk(subname, description_stripped_trunk, d
|
||||
_doc_items_hidden = false,
|
||||
tiles = {tile_stripped_inner, tile_stripped_inner, tile_stripped_bark},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
on_place = mcl_util.rotate_axis,
|
||||
stack_max = 64,
|
||||
groups = {handy=1, axey=1, tree=1, flammable=2, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
@ -118,6 +121,7 @@ function mcl_core.register_stripped_trunk(subname, description_stripped_trunk, d
|
||||
_doc_items_longdesc = longdesc_wood,
|
||||
tiles = {tile_stripped_bark},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
on_place = mcl_util.rotate_axis,
|
||||
stack_max = 64,
|
||||
groups = {handy=1, axey=1, bark=1, flammable=2, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
@ -195,6 +199,7 @@ function mcl_core.register_leaves(subname, description, longdesc, tiles, color,
|
||||
color = color,
|
||||
paramtype = "light",
|
||||
paramtype2 = paramtype2,
|
||||
is_ground_content = false,
|
||||
palette = palette,
|
||||
stack_max = 64,
|
||||
groups = {
|
||||
|
@ -373,6 +373,7 @@ minetest.register_node("mcl_crimson:warped_wart_block", {
|
||||
tiles = {"mcl_crimson_warped_wart_block.png"},
|
||||
groups = {handy = 1, hoey = 7, swordy = 1, deco_block = 1, compostability = 85},
|
||||
_mcl_hardness = 1,
|
||||
is_ground_content = false,
|
||||
sounds = mcl_sounds.node_sound_leaves_defaults({
|
||||
footstep={name="default_dirt_footstep", gain=0.7},
|
||||
dug={name="default_dirt_footstep", gain=1.5},
|
||||
@ -385,6 +386,7 @@ minetest.register_node("mcl_crimson:shroomlight", {
|
||||
groups = {handy = 1, hoey = 7, swordy = 1, deco_block = 1, compostability = 65},
|
||||
light_source = minetest.LIGHT_MAX,
|
||||
_mcl_hardness = 1,
|
||||
is_ground_content = false,
|
||||
sounds = mcl_sounds.node_sound_leaves_defaults({
|
||||
footstep={name="default_dirt_footstep", gain=0.7},
|
||||
dug={name="default_dirt_footstep", gain=1.5},
|
||||
@ -404,6 +406,7 @@ minetest.register_node("mcl_crimson:warped_hyphae", {
|
||||
},
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
on_place = mcl_util.rotate_axis,
|
||||
groups = {handy = 1, axey = 1, tree = 1, building_block = 1, material_wood = 1},
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
@ -630,6 +633,7 @@ minetest.register_node("mcl_crimson:crimson_hyphae", {
|
||||
},
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
on_place = mcl_util.rotate_axis,
|
||||
groups = {handy = 1, axey = 1, tree = 1, building_block = 1, material_wood = 1},
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
|
@ -8,7 +8,7 @@ local template = {
|
||||
flammable = -1, compostability = 85
|
||||
},
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
is_ground_content = true,
|
||||
is_ground_content = false,
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
_mcl_silk_touch_drop = true,
|
||||
|
Loading…
Reference in New Issue
Block a user