1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-11-13 05:50:16 +01:00

set is_ground_content for all (thx SwissAlpS)

This commit is contained in:
tenplus1 2024-02-29 17:06:28 +00:00
parent 1043da0b52
commit d99f96b224
44 changed files with 80 additions and 2 deletions

View File

@ -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()
})

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
})

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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)

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
})

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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",

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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",

View File

@ -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()
}

View File

@ -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

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -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",

View File

@ -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,

View File

@ -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",