Skip to content

Commit

Permalink
is ground content revision
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Mar 3, 2024
1 parent 2f70733 commit 140b3da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions.lua
Expand Up @@ -36,6 +36,7 @@ vines.register_vine = function( name, defs, biome )
drawtype = drawtype,
inventory_image = vine_image_end,
groups = groups,
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
selection_box = selection_box,
on_construct = function( pos )
Expand Down Expand Up @@ -74,6 +75,7 @@ vines.register_vine = function( name, defs, biome )
drawtype = drawtype,
inventory_image = vine_image_middle,
groups = groups,
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
selection_box = selection_box,
on_destruct = function( pos )
Expand Down
3 changes: 3 additions & 0 deletions nodes.lua
Expand Up @@ -11,6 +11,7 @@ minetest.register_node("vines:rope_block", {
"default_wood.png^vines_rope.png",
},
groups = { flammable=2, choppy=2, oddly_breakable_by_hand=1 },
is_ground_content = false,
after_place_node = function(pos)
local p = {x=pos.x, y=pos.y-1, z=pos.z}
local n = minetest.get_node(p)
Expand Down Expand Up @@ -39,6 +40,7 @@ minetest.register_node("vines:rope", {
tiles = { "vines_rope.png" },
drawtype = "plantlike",
groups = {flammable=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
Expand All @@ -56,6 +58,7 @@ minetest.register_node("vines:rope_end", {
tiles = { "vines_rope_end.png" },
drawtype = "plantlike",
groups = {flammable=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_leaves_defaults(),
after_place_node = function(pos)
local yesh = {x = pos.x, y= pos.y-1, z=pos.z}
Expand Down

0 comments on commit 140b3da

Please sign in to comment.