From dbf02685c987eb058453235ea1cdba9fbeea7fbf Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 4 Sep 2019 14:58:05 +0200 Subject: [PATCH] Make crops and music box attached --- mods/farming/nodes.lua | 16 ++++++++-------- mods/music/init.lua | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mods/farming/nodes.lua b/mods/farming/nodes.lua index 1039ba1..1dd9805 100644 --- a/mods/farming/nodes.lua +++ b/mods/farming/nodes.lua @@ -25,7 +25,7 @@ minetest.register_node( type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5} }, - groups = {dig_immediate=2}, + groups = {dig_immediate=2, attached_node=1}, sounds=default.node_sound_leaves_defaults() } ) @@ -50,7 +50,7 @@ minetest.register_node( type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5} }, - groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1}, + groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1}, sounds=default.node_sound_leaves_defaults() } ) @@ -75,7 +75,7 @@ minetest.register_node( type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5} }, - groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1}, + groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1}, sounds=default.node_sound_leaves_defaults() } ) @@ -103,7 +103,7 @@ minetest.register_node( type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5} }, - groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1}, + groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1}, sounds=default.node_sound_leaves_defaults() } ) @@ -130,7 +130,7 @@ minetest.register_node( type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5} }, - groups = {dig_immediate=2}, + groups = {dig_immediate=2, attached_node=1}, sounds=default.node_sound_leaves_defaults() } ) @@ -155,7 +155,7 @@ minetest.register_node( type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5} }, - groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1}, + groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1}, sounds=default.node_sound_leaves_defaults() } ) @@ -180,7 +180,7 @@ minetest.register_node( type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5} }, - groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1}, + groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1}, sounds=default.node_sound_leaves_defaults() } ) @@ -208,7 +208,7 @@ minetest.register_node( type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5} }, - groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1}, + groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1}, sounds=default.node_sound_leaves_defaults(), on_punch = function(pos, node, player) local name = player:get_wielded_item():get_name() diff --git a/mods/music/init.lua b/mods/music/init.lua index cdd1209..ab95d44 100644 --- a/mods/music/init.lua +++ b/mods/music/init.lua @@ -120,7 +120,7 @@ if minetest.settings:get_bool("music_enable") then music.toggle(pos) end, - groups = {oddly_breakable_by_hand = 3} + groups = {oddly_breakable_by_hand = 3, attached_node = 1} }) local function step(dtime) @@ -176,7 +176,7 @@ else meta:set_string("infotext", S("Music Player (disabled by server)")) end, - groups = {oddly_breakable_by_hand = 3} + groups = {oddly_breakable_by_hand = 3, attached_node = 1} }) end