ground content revision

This commit is contained in:
Luke aka SwissalpS 2024-03-11 18:05:24 +01:00
parent 628abc8c66
commit bfa023d447
7 changed files with 37 additions and 5 deletions

View File

@ -44,6 +44,7 @@ minetest.register_node("dryplants:wetreed_slab", {
fixed = {-1/2, -1/2, -1/2, 1/2, 0, 1/2},
},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})
@ -72,6 +73,7 @@ minetest.register_node("dryplants:wetreed_roof", {
}
},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})
@ -194,6 +196,7 @@ minetest.register_node("dryplants:wetreed_roof_corner", {
}
},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})
@ -224,6 +227,7 @@ minetest.register_node("dryplants:wetreed_roof_corner_2", {
}
},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})
@ -263,6 +267,7 @@ minetest.register_node("dryplants:reed", {
paramtype2 = "facedir",
tiles = {"dryplants_reed.png"},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})
@ -284,6 +289,7 @@ minetest.register_node("dryplants:reed_slab", {
fixed = {-1/2, -1/2, -1/2, 1/2, 0, 1/2},
},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})
@ -312,6 +318,7 @@ minetest.register_node("dryplants:reed_roof", {
}
},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})
@ -342,6 +349,7 @@ minetest.register_node("dryplants:reed_roof_corner", {
}
},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})
@ -372,5 +380,6 @@ minetest.register_node("dryplants:reed_roof_corner_2", {
}
},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})

View File

@ -88,6 +88,7 @@ minetest.register_node("dryplants:reedmace_spikes", {
flammable=2,
not_in_creative_inventory=1
},
is_ground_content = false,
drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(),
selection_box = {
@ -110,6 +111,7 @@ minetest.register_node("dryplants:reedmace_top", {
flammable=2,
not_in_creative_inventory=1
},
is_ground_content = false,
drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(),
selection_box = {
@ -133,6 +135,7 @@ minetest.register_node("dryplants:reedmace_height_2", {
flammable=2--,
--not_in_creative_inventory=1
},
is_ground_content = false,
drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(),
selection_box = {
@ -156,6 +159,7 @@ minetest.register_node("dryplants:reedmace_height_3", {
flammable=2--,
--not_in_creative_inventory=1
},
is_ground_content = false,
drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(),
selection_box = {
@ -179,6 +183,7 @@ minetest.register_node("dryplants:reedmace_height_3_spikes", {
flammable=2--,
--not_in_creative_inventory=1
},
is_ground_content = false,
drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(),
selection_box = {
@ -201,6 +206,7 @@ minetest.register_node("dryplants:reedmace", {
flammable=2,
not_in_creative_inventory=1
},
is_ground_content = false,
drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(),
selection_box = {
@ -231,6 +237,7 @@ minetest.register_node("dryplants:reedmace_bottom", {
flammable=2,
not_in_creative_inventory=1
},
is_ground_content = false,
drop = 'dryplants:reedmace_sapling',
sounds = default.node_sound_leaves_defaults(),
selection_box = {

View File

@ -138,6 +138,7 @@ minetest.register_node("ferns:tree_fern_leaves_giant", {
attached_node=1,
not_in_creative_inventory=1
},
is_ground_content = false,
drop = {
max_items = 2,
items = {
@ -179,6 +180,7 @@ minetest.register_node("ferns:tree_fern_leave_big", {
attached_node=1,
not_in_creative_inventory=1
},
is_ground_content = false,
drop = "",
sounds = default.node_sound_leaves_defaults(),
after_destruct = function(pos,oldnode)
@ -217,6 +219,7 @@ minetest.register_node("ferns:tree_fern_leave_big_end", {
attached_node=1,
not_in_creative_inventory=1
},
is_ground_content = false,
drop = "",
sounds = default.node_sound_leaves_defaults(),
})
@ -255,6 +258,7 @@ minetest.register_node("ferns:fern_trunk_big_top", {
not_in_creative_inventory=1,
leafdecay=3 -- to support vines
},
is_ground_content = false,
drop = "ferns:fern_trunk_big",
sounds = default.node_sound_wood_defaults(),
})
@ -281,6 +285,7 @@ minetest.register_node("ferns:fern_trunk_big", {
fixed = {-1/4, -1/2, -1/4, 1/4, 1/2, 1/4},
},
groups = {tree=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
after_destruct = function(pos,oldnode)
local node = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})

View File

@ -80,6 +80,7 @@ minetest.register_node("ferns:tree_fern_leaves", {
inventory_image = "ferns_fern_tree_inv.png",
walkable = false,
groups = {snappy=3,flammable=2,attached_node=1},
is_ground_content = false,
drop = {
max_items = 2,
items = {
@ -111,6 +112,7 @@ minetest.register_node("ferns:tree_fern_leaves_02", {
tiles = {"ferns_fern_big.png"},
walkable = false,
groups = {snappy=3,flammable=2,attached_node=1,not_in_creative_inventory=1},
is_ground_content = false,
drop = {
max_items = 2,
items = {
@ -157,6 +159,7 @@ minetest.register_node("ferns:fern_trunk", {
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
},
groups = {tree=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
after_destruct = function(pos,oldnode)
local node = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})

View File

@ -19,6 +19,7 @@ minetest.register_node(":"..nature.blossom_node, {
tiles = nature.blossom_textures,
paramtype = "light",
groups = nature.blossom_groups,
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
waving = 1
})

View File

@ -38,6 +38,7 @@ for i in pairs(NoDe) do
attached_node=1,
not_in_creative_inventory=iNV
},
is_ground_content = false,
drop = "trunks:twig_1",
sounds = default.node_sound_leaves_defaults(),
liquids_pointable = true,
@ -138,6 +139,7 @@ minetest.register_node("trunks:twigs", {
paramtype2 = "facedir",
tiles = {"trunks_twigs.png"},
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
})
@ -157,6 +159,7 @@ minetest.register_node("trunks:twigs_slab", {
fixed = {-1/2, -1/2, -1/2, 1/2, 0, 1/2},
},
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
})
@ -180,6 +183,7 @@ minetest.register_node("trunks:twigs_roof", {
}
},
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
})
@ -208,6 +212,7 @@ minetest.register_node("trunks:twigs_roof_corner", {
}
},
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
})
@ -236,6 +241,7 @@ minetest.register_node("trunks:twigs_roof_corner_2", {
}
},
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
})
@ -387,6 +393,7 @@ for i in pairs(TRuNKS) do
attached_node = 1
--not_in_creative_inventory=1 -- atm in inv for testing
},
is_ground_content = false,
--drop = "trunks:twig_1", -- not sure about this yet
sounds = default.node_sound_wood_defaults(),
})

View File

@ -9,7 +9,7 @@ minetest.register_node("youngtrees:bamboo", {
tiles = {"bamboo.png"},
paramtype = "light",
walkable = false,
is_ground_content = true,
is_ground_content = false,
node_box = {
type = "fixed",
fixed = {
@ -34,7 +34,7 @@ minetest.register_node("youngtrees:youngtree_top", {
wield_image = "youngtree16xa.png",
paramtype = "light",
walkable = false,
is_ground_content = true,
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
@ -52,7 +52,7 @@ minetest.register_node("youngtrees:youngtree_middle", {
wield_image = "youngtree16xb.png",
paramtype = "light",
walkable = false,
is_ground_content = true,
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
@ -70,7 +70,7 @@ minetest.register_node("youngtrees:youngtree_bottom", {
wield_image = "youngtree16xc.png",
paramtype = "light",
walkable = false,
is_ground_content = true,
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
@ -146,4 +146,4 @@ minetest.register_on_generated(function(minp, maxp, blockseed)
local timer = minetest.get_node_timer({x=pos.x, y=pos.y+1, z=pos.z})
timer:start(0)
end
end)
end)