Is ground content revision (#69)

* bushes ground content

minetest default game treats all bush parts as ground
content, so we do that here too. The baskets however are
player made and placed, so they aren't ground content

* cavestuff ground content

Pebbles are given to mapgen as decorations, so they have
been left as ground content.
The stalactites are not ground content

* user 'placed' nodes -> not ground content

* ground content revision
This commit is contained in:
Luke aka SwissalpS 2024-03-15 17:54:16 +01:00 committed by GitHub
parent 455f891275
commit f629f54d43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 44 additions and 5 deletions

View File

@ -159,6 +159,7 @@ for i, bush_name in ipairs(bushes_classic.bushes) do
paramtype2 = "facedir",
on_use = minetest.item_eat(18),
groups = { dig_immediate = 3 },
is_ground_content = false,
})
@ -210,4 +211,5 @@ minetest.register_node(":bushes:basket_empty", {
paramtype = "light",
paramtype2 = "facedir",
groups = { dig_immediate = 3 },
is_ground_content = false,
})

View File

@ -78,6 +78,7 @@ minetest.register_node("cavestuff:stalactite_1",{
drawtype="nodebox",
tiles = {"undergrowth_pebble.png"},
groups = {cracky=3,attached_node=1},
is_ground_content = false,
description = S("Stalactite"),
paramtype = "light",
paramtype2 = "wallmounted",
@ -124,6 +125,7 @@ minetest.register_node("cavestuff:stalactite_2",{
drawtype="nodebox",
tiles = {"undergrowth_pebble.png"},
groups = {cracky=3,attached_node=1,not_in_creative_inventory=1},
is_ground_content = false,
drop = "cavestuff:stalactite_1",
paramtype = "light",
paramtype2 = "wallmounted",
@ -142,6 +144,7 @@ minetest.register_node("cavestuff:stalactite_3",{
drawtype="nodebox",
tiles = {"undergrowth_pebble.png"},
groups = {cracky=3,attached_node=1,not_in_creative_inventory=1},
is_ground_content = false,
drop = "cavestuff:stalactite_1",
paramtype = "light",
paramtype2 = "wallmounted",

View File

@ -119,6 +119,7 @@ minetest.register_node("dryplants:grass", {
fixed = {-0.5 , -0.5 , -0.5 , 0.5 , -0.4375, 0.5 },
},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})
@ -151,6 +152,7 @@ minetest.register_node("dryplants:hay", {
fixed = {-0.5 , -0.5 , -0.5 , 0.5 , -0.4375, 0.5 },
},
groups = {snappy=3, flammable=2},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
})

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)