From d99f96b224534fd8797a785a4fddcc6289642ab1 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 29 Feb 2024 17:06:28 +0000 Subject: [PATCH] set is_ground_content for all (thx SwissAlpS) --- compatibility.lua | 3 +++ crops/artichoke.lua | 1 + crops/asparagus.lua | 1 + crops/barley.lua | 2 ++ crops/beans.lua | 3 +++ crops/beetroot.lua | 1 + crops/blackberry.lua | 1 + crops/blueberry.lua | 1 + crops/cabbage.lua | 1 + crops/carrot.lua | 1 + crops/chili.lua | 1 + crops/cocoa.lua | 1 + crops/coffee.lua | 2 ++ crops/corn.lua | 1 + crops/cotton.lua | 3 +++ crops/cucumber.lua | 1 + crops/eggplant.lua | 1 + crops/garlic.lua | 2 ++ crops/ginger.lua | 1 + crops/grapes.lua | 3 +++ crops/hemp.lua | 4 ++++ crops/lettuce.lua | 1 + crops/melon.lua | 2 ++ crops/mint.lua | 2 ++ crops/onion.lua | 1 + crops/parsley.lua | 1 + crops/peas.lua | 1 + crops/pepper.lua | 2 ++ crops/pineapple.lua | 4 +++- crops/potato.lua | 1 + crops/pumpkin.lua | 5 +++++ crops/raspberry.lua | 1 + crops/rhubarb.lua | 1 + crops/rice.lua | 2 ++ crops/soy.lua | 3 +++ crops/spinach.lua | 1 + crops/strawberry.lua | 1 + crops/sunflower.lua | 2 ++ crops/tomato.lua | 1 + crops/vanilla.lua | 1 + crops/wheat.lua | 2 ++ food.lua | 4 ++++ init.lua | 4 +++- soil.lua | 4 ++++ 44 files changed, 80 insertions(+), 2 deletions(-) diff --git a/compatibility.lua b/compatibility.lua index e718ee5..687eee0 100644 --- a/compatibility.lua +++ b/compatibility.lua @@ -30,6 +30,7 @@ else fixed = {-0.2, -0.5, -0.2, 0.2, 0.2, 0.2} }, groups = {food_banana = 1, fleshy = 3, dig_immediate = 3, flammable = 2}, + is_ground_content = false, on_use = minetest.item_eat(2), sounds = farming.sounds.node_sound_leaves_defaults() }) @@ -42,6 +43,7 @@ else paramtype = "light", waving = 1, groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2}, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() }) @@ -88,6 +90,7 @@ else fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2} }, groups = {food_orange = 1, fleshy = 3, dig_immediate = 3, flammable = 2}, + is_ground_content = false, on_use = minetest.item_eat(4), sounds = farming.sounds.node_sound_leaves_defaults() }) diff --git a/crops/artichoke.lua b/crops/artichoke.lua index d144e42..71fee98 100644 --- a/crops/artichoke.lua +++ b/crops/artichoke.lua @@ -27,6 +27,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/asparagus.lua b/crops/asparagus.lua index 770f1aa..0d60eeb 100644 --- a/crops/asparagus.lua +++ b/crops/asparagus.lua @@ -29,6 +29,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/barley.lua b/crops/barley.lua index 76eb963..b0a5ada 100644 --- a/crops/barley.lua +++ b/crops/barley.lua @@ -13,6 +13,7 @@ minetest.register_node("farming:seed_barley", { handy = 1, compostability = 48, seed = 1, snappy = 3, attached_node = 1, growing = 1 }, + is_ground_content = false, paramtype = "light", paramtype2 = "wallmounted", walkable = false, @@ -61,6 +62,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/beans.lua b/crops/beans.lua index 2462ae7..7f63d33 100644 --- a/crops/beans.lua +++ b/crops/beans.lua @@ -99,6 +99,7 @@ minetest.register_node("farming:beanpole", { drop = "farming:beanpole", selection_box = farming.select, groups = {handy = 1, snappy = 3, flammable = 2, attached_node = 1}, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults(), on_place = function(itemstack, placer, pointed_thing) @@ -190,6 +191,7 @@ local def = { handy = 1, snappy = 3, flammable = 3, not_in_creative_inventory = 1, attached_node = 1, growing = 1, plant = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } @@ -253,6 +255,7 @@ minetest.register_node("farming:beanbush", { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, compostability = 35, not_in_creative_inventory = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() }) diff --git a/crops/beetroot.lua b/crops/beetroot.lua index f025e51..b0de0d4 100644 --- a/crops/beetroot.lua +++ b/crops/beetroot.lua @@ -49,6 +49,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/blackberry.lua b/crops/blackberry.lua index 6dca0e6..1613acf 100644 --- a/crops/blackberry.lua +++ b/crops/blackberry.lua @@ -28,6 +28,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/blueberry.lua b/crops/blueberry.lua index 1370362..59e76a9 100644 --- a/crops/blueberry.lua +++ b/crops/blueberry.lua @@ -68,6 +68,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/cabbage.lua b/crops/cabbage.lua index c42bd22..f9f2248 100644 --- a/crops/cabbage.lua +++ b/crops/cabbage.lua @@ -26,6 +26,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/carrot.lua b/crops/carrot.lua index eb46bf4..89be97c 100644 --- a/crops/carrot.lua +++ b/crops/carrot.lua @@ -65,6 +65,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/chili.lua b/crops/chili.lua index 48afc47..081523e 100644 --- a/crops/chili.lua +++ b/crops/chili.lua @@ -67,6 +67,7 @@ local def = { handy = 1, snappy = 3, flammable = 4, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/cocoa.lua b/crops/cocoa.lua index cc3267f..3be63a7 100644 --- a/crops/cocoa.lua +++ b/crops/cocoa.lua @@ -158,6 +158,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, growing = 1, not_in_creative_inventory = 1, leafdecay = 1, leafdecay_drop = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults(), growth_check = function(pos, node_name) diff --git a/crops/coffee.lua b/crops/coffee.lua index ba34506..f598f8f 100644 --- a/crops/coffee.lua +++ b/crops/coffee.lua @@ -26,6 +26,7 @@ minetest.register_node("farming:coffee_cup", { fixed = {-0.25, -0.5, -0.25, 0.25, 0.25, 0.25} }, groups = {vessel = 1, dig_immediate = 3, attached_node = 1, drink = 1}, + is_ground_content = false, on_use = minetest.item_eat(2, "vessels:drinking_glass"), sounds = farming.sounds.node_sound_glass_defaults() }) @@ -59,6 +60,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/corn.lua b/crops/corn.lua index 689ccc9..2fda30e 100644 --- a/crops/corn.lua +++ b/crops/corn.lua @@ -120,6 +120,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/cotton.lua b/crops/cotton.lua index e09381f..47d803d 100644 --- a/crops/cotton.lua +++ b/crops/cotton.lua @@ -17,6 +17,7 @@ minetest.register_node("farming:cotton_wild", { groups = { handy = 1, snappy = 3, attached_node = 1, flammable = 4, compostability = 60 }, + is_ground_content = false, drop = { items = { {items = {"farming:cotton"}, rarity = 2}, @@ -41,6 +42,7 @@ minetest.register_node("farming:seed_cotton", { compostability = 48, seed = 1, snappy = 3, attached_node = 1, flammable = 4, growing = 1 }, + is_ground_content = false, paramtype = "light", paramtype2 = "wallmounted", walkable = false, @@ -118,6 +120,7 @@ local def = { handy = 1, snappy = 3, flammable = 4, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/cucumber.lua b/crops/cucumber.lua index 577aff4..87df299 100644 --- a/crops/cucumber.lua +++ b/crops/cucumber.lua @@ -30,6 +30,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/eggplant.lua b/crops/eggplant.lua index b72eda4..5a9417f 100644 --- a/crops/eggplant.lua +++ b/crops/eggplant.lua @@ -28,6 +28,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/garlic.lua b/crops/garlic.lua index 3849ee5..bbf40ff 100644 --- a/crops/garlic.lua +++ b/crops/garlic.lua @@ -51,6 +51,7 @@ minetest.register_node("farming:garlic_braid", { "crops_garlic_braid.png" }, groups = {vessel = 1, dig_immediate = 3, flammable = 3, compostability = 65}, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults(), node_box = { type = "fixed", @@ -92,6 +93,7 @@ local def = { handy = 1, snappy = 3, flammable = 3, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/ginger.lua b/crops/ginger.lua index e94d995..77d1094 100644 --- a/crops/ginger.lua +++ b/crops/ginger.lua @@ -27,6 +27,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/grapes.lua b/crops/grapes.lua index 57fc283..84ad853 100644 --- a/crops/grapes.lua +++ b/crops/grapes.lua @@ -94,6 +94,7 @@ minetest.register_node("farming:trellis", { drop = "farming:trellis", selection_box = farming.select, groups = {handy = 1, snappy = 3, flammable = 2, attached_node = 1}, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults(), on_place = function(itemstack, placer, pointed_thing) @@ -185,6 +186,7 @@ local def = { handy = 1, snappy = 3, flammable = 3, not_in_creative_inventory = 1, attached_node = 1, growing = 1, plant = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } @@ -260,6 +262,7 @@ minetest.register_node("farming:grapebush", { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, compostability = 35 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() }) diff --git a/crops/hemp.lua b/crops/hemp.lua index 6cf2671..3b965ee 100644 --- a/crops/hemp.lua +++ b/crops/hemp.lua @@ -13,6 +13,7 @@ minetest.register_node("farming:seed_hemp", { handy = 1, compostability = 38, seed = 1, snappy = 3, attached_node = 1, growing = 1 }, + is_ground_content = false, paramtype = "light", paramtype2 = "wallmounted", walkable = false, @@ -118,6 +119,7 @@ minetest.register_node("farming:hemp_block", { axey = 1, handy = 1, snappy = 2, oddly_breakable_by_hand = 1, flammable = 2, compostability = 85 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults(), _mcl_hardness = 0.8, _mcl_blast_resistance = 1 @@ -186,6 +188,7 @@ minetest.register_node("farming:hemp_rope", { handy = 1, axey = 1, swordy = 1, flammable = 2, choppy = 3, oddly_breakable_by_hand = 3, compostability = 55 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -220,6 +223,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/lettuce.lua b/crops/lettuce.lua index 3e555be..ed871b7 100644 --- a/crops/lettuce.lua +++ b/crops/lettuce.lua @@ -25,6 +25,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/melon.lua b/crops/melon.lua index 85a1af9..a6a5672 100644 --- a/crops/melon.lua +++ b/crops/melon.lua @@ -41,6 +41,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } @@ -83,6 +84,7 @@ minetest.register_node("farming:melon_8", { food_melon = 1, handy = 1, snappy = 3, choppy = 3, oddly_breakable_by_hand = 2, flammable = 2, plant = 1, compostability = 65 }, + is_ground_content = false, drop = "farming:melon_8", sounds = farming.sounds.node_sound_wood_defaults(), paramtype2 = "facedir", diff --git a/crops/mint.lua b/crops/mint.lua index f8afebb..69fc0dd 100644 --- a/crops/mint.lua +++ b/crops/mint.lua @@ -13,6 +13,7 @@ minetest.register_node("farming:seed_mint", { compostability = 48, seed = 1, snappy = 3, attached_node = 1, growing = 1, handy = 1, flammable = 2 }, + is_ground_content = false, paramtype = "light", paramtype2 = "wallmounted", walkable = false, @@ -68,6 +69,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/onion.lua b/crops/onion.lua index 08310c8..fc8ece3 100644 --- a/crops/onion.lua +++ b/crops/onion.lua @@ -61,6 +61,7 @@ local def = { handy = 1, snappy = 3, flammable = 3, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/parsley.lua b/crops/parsley.lua index 3ba3bf7..bb397de 100644 --- a/crops/parsley.lua +++ b/crops/parsley.lua @@ -26,6 +26,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/peas.lua b/crops/peas.lua index a3e7800..8274c1a 100644 --- a/crops/peas.lua +++ b/crops/peas.lua @@ -53,6 +53,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/pepper.lua b/crops/pepper.lua index e1f3a4c..f42dd13 100644 --- a/crops/pepper.lua +++ b/crops/pepper.lua @@ -60,6 +60,7 @@ minetest.register_node("farming:pepper_ground", { vessel = 1, food_pepper_ground = 1, dig_immediate = 3, attached_node = 1, compostability = 30 }, + is_ground_content = false, sounds = farming.sounds.node_sound_defaults(), selection_box = { type = "fixed", @@ -94,6 +95,7 @@ local def = { handy = 1, snappy = 3, flammable = 3, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/pineapple.lua b/crops/pineapple.lua index 32790c3..7fe6979 100644 --- a/crops/pineapple.lua +++ b/crops/pineapple.lua @@ -29,7 +29,8 @@ minetest.register_node("farming:pineapple", { groups = { food_pineapple = 1, fleshy = 3, dig_immediate = 3, flammable = 2, compostability = 65 - } + }, + is_ground_content = false }) -- pineapple @@ -94,6 +95,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/potato.lua b/crops/potato.lua index caaa72b..fe7a20c 100644 --- a/crops/potato.lua +++ b/crops/potato.lua @@ -71,6 +71,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/pumpkin.lua b/crops/pumpkin.lua index 617fb1c..971e1be 100644 --- a/crops/pumpkin.lua +++ b/crops/pumpkin.lua @@ -43,6 +43,7 @@ minetest.register_node("farming:jackolantern", { groups = { handy = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 }, + is_ground_content = false, sounds = farming.sounds.node_sound_wood_defaults(), on_punch = function(pos, node, puncher) local name = puncher:get_player_name() or "" @@ -69,6 +70,7 @@ minetest.register_node("farming:jackolantern_on", { handy = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, not_in_creative_inventory = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_wood_defaults(), drop = "farming:jackolantern", on_punch = function(pos, node, puncher) @@ -105,6 +107,7 @@ minetest.register_node("farming:scarecrow_bottom", { } }, groups = {axey = 1, handy = 1, snappy = 3, flammable = 2}, + is_ground_content = false, _mcl_hardness = 0.8, _mcl_blast_resistance = 1 }) @@ -160,6 +163,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } @@ -202,6 +206,7 @@ minetest.register_node("farming:pumpkin_8", { food_pumpkin = 1, snappy = 3, choppy = 3, oddly_breakable_by_hand = 2, flammable = 2, plant = 1, handy = 1 }, + is_ground_content = false, drop = "farming:pumpkin_8", sounds = farming.sounds.node_sound_wood_defaults(), paramtype2 = "facedir", diff --git a/crops/raspberry.lua b/crops/raspberry.lua index 0b16347..45e1c81 100644 --- a/crops/raspberry.lua +++ b/crops/raspberry.lua @@ -45,6 +45,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/rhubarb.lua b/crops/rhubarb.lua index ab22851..4af2ab8 100644 --- a/crops/rhubarb.lua +++ b/crops/rhubarb.lua @@ -46,6 +46,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults(), minlight = 10, maxlight = 12 diff --git a/crops/rice.lua b/crops/rice.lua index 372b2f4..433fbcf 100644 --- a/crops/rice.lua +++ b/crops/rice.lua @@ -13,6 +13,7 @@ minetest.register_node("farming:seed_rice", { handy = 1, compostability = 48, seed = 1, snappy = 3, attached_node = 1, flammable = 4, growing = 1 }, + is_ground_content = false, paramtype = "light", paramtype2 = "wallmounted", walkable = false, @@ -89,6 +90,7 @@ local def = { handy = 1, snappy = 3, flammable = 4, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/soy.lua b/crops/soy.lua index 8c38345..770e29e 100644 --- a/crops/soy.lua +++ b/crops/soy.lua @@ -32,6 +32,7 @@ minetest.register_node("farming:soy_sauce", { vessel = 1, food_soy_sauce = 1, dig_immediate = 3, attached_node = 1, compostability = 65 }, + is_ground_content = false, sounds = farming.sounds.node_sound_glass_defaults() }) @@ -66,6 +67,7 @@ minetest.register_node("farming:soy_milk", { vessel = 1, food_milk_glass = 1, dig_immediate = 3, attached_node = 1, drink = 1, compostability = 65 }, + is_ground_content = false, sounds = farming.sounds.node_sound_glass_defaults() }) @@ -131,6 +133,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/spinach.lua b/crops/spinach.lua index ed43ae9..9e2a4cc 100644 --- a/crops/spinach.lua +++ b/crops/spinach.lua @@ -27,6 +27,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/strawberry.lua b/crops/strawberry.lua index 2b52b92..1a664a2 100644 --- a/crops/strawberry.lua +++ b/crops/strawberry.lua @@ -32,6 +32,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/sunflower.lua b/crops/sunflower.lua index 15c62e0..1322b8b 100644 --- a/crops/sunflower.lua +++ b/crops/sunflower.lua @@ -20,6 +20,7 @@ minetest.register_node("farming:seed_sunflower", { compostability = 48, seed = 1, snappy = 3, attached_node = 1, growing = 1, handy = 1, food_sunflower_seeds = 1, flammable = 2 }, + is_ground_content = false, paramtype = "light", paramtype2 = "wallmounted", walkable = false, @@ -127,6 +128,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/tomato.lua b/crops/tomato.lua index 486a44c..23fc5c0 100644 --- a/crops/tomato.lua +++ b/crops/tomato.lua @@ -49,6 +49,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/vanilla.lua b/crops/vanilla.lua index 0d03bde..421a92a 100644 --- a/crops/vanilla.lua +++ b/crops/vanilla.lua @@ -28,6 +28,7 @@ local def = { handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/crops/wheat.lua b/crops/wheat.lua index 8770c70..db83bf2 100644 --- a/crops/wheat.lua +++ b/crops/wheat.lua @@ -12,6 +12,7 @@ minetest.register_node("farming:seed_wheat", { groups = { handy = 1, seed = 1, snappy = 3, attached_node = 1, flammable = 4, growing = 1 }, + is_ground_content = false, paramtype = "light", paramtype2 = "wallmounted", walkable = false, @@ -127,6 +128,7 @@ local def = { snappy = 3, flammable = 4, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults() } diff --git a/food.lua b/food.lua index 9e8c523..fa1da47 100644 --- a/food.lua +++ b/food.lua @@ -136,6 +136,7 @@ minetest.register_node("farming:sugar_cube", { description = S("Sugar Cube"), tiles = {"farming_sugar_cube.png"}, groups = {shovely = 1, handy = 1, crumbly = 2}, + is_ground_content = false, floodable = true, sounds = farming.sounds.node_sound_gravel_defaults(), _mcl_hardness = 0.8, @@ -183,6 +184,7 @@ minetest.register_node("farming:salt", { tiles = {"farming_salt.png"}, groups = {food_salt = 1, vessel = 1, dig_immediate = 3, attached_node = 1}, + is_ground_content = false, sounds = farming.sounds.node_sound_defaults(), selection_box = { type = "fixed", @@ -251,6 +253,7 @@ minetest.register_node("farming:salt_crystal", { light_source = 1, tiles = {"farming_salt_crystal.png"}, groups = {dig_immediate = 3, attached_node = 1}, + is_ground_content = false, sounds = farming.sounds.node_sound_defaults(), selection_box = { type = "fixed", @@ -322,6 +325,7 @@ minetest.register_node("farming:rose_water", { groups = { food_rose_water = 1, vessel = 1, dig_immediate = 3, attached_node = 1 }, + is_ground_content = false, sounds = farming.sounds.node_sound_defaults(), selection_box = { type = "fixed", diff --git a/init.lua b/init.lua index 225ce51..e4e388b 100644 --- a/init.lua +++ b/init.lua @@ -7,7 +7,7 @@ farming = { mod = "redo", - version = "20231206", + version = "20240229", path = minetest.get_modpath("farming"), select = { type = "fixed", @@ -589,6 +589,7 @@ farming.register_plant = function(name, def) seed = 1, snappy = 3, attached_node = 1, flammable = 2, growing = 1, compostability = 65, handy = 1 }, + is_ground_content = false, paramtype = "light", paramtype2 = "wallmounted", walkable = false, @@ -674,6 +675,7 @@ farming.register_plant = function(name, def) drop = drop, selection_box = sel, groups = g, + is_ground_content = false, sounds = farming.sounds.node_sound_leaves_defaults(), minlight = def.minlight, maxlight = def.maxlight, diff --git a/soil.lua b/soil.lua index d20cd57..5dc3513 100644 --- a/soil.lua +++ b/soil.lua @@ -78,6 +78,7 @@ if minetest.registered_nodes["default:dry_dirt"] then }, drop = "default:dry_dirt", groups = {crumbly = 3, not_in_creative_inventory = 1, soil = 2, field = 1}, + is_ground_content = false, sounds = default.node_sound_dirt_defaults(), soil = { base = "default:dry_dirt", @@ -94,6 +95,7 @@ if minetest.registered_nodes["default:dry_dirt"] then }, drop = "default:dry_dirt", groups = {crumbly = 3, not_in_creative_inventory = 1, soil = 3, field = 1}, + is_ground_content = false, sounds = default.node_sound_dirt_defaults(), soil = { base = "default:dry_dirt", @@ -111,6 +113,7 @@ minetest.register_node("farming:soil", { tiles = {"default_dirt.png^farming_soil.png", "default_dirt.png"}, drop = "default:dirt", groups = {crumbly = 3, not_in_creative_inventory = 1, soil = 2, field = 1}, + is_ground_content = false, sounds = default.node_sound_dirt_defaults(), soil = { base = "default:dirt", @@ -128,6 +131,7 @@ minetest.register_node("farming:soil_wet", { }, drop = "default:dirt", groups = {crumbly = 3, not_in_creative_inventory = 1, soil = 3, field = 1}, + is_ground_content = false, sounds = default.node_sound_dirt_defaults(), soil = { base = "default:dirt",