1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-12-27 03:00:20 +01:00

add missing groups

This commit is contained in:
tenplus1 2023-09-05 07:51:11 +01:00
parent 2efa174015
commit f5c321c04d
10 changed files with 24 additions and 15 deletions

View File

@ -251,7 +251,7 @@ minetest.register_node("farming:beanbush", {
selection_box = farming.select,
groups = {
handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1,
not_in_creative_inventory = 1
compostability = 35, not_in_creative_inventory = 1
},
sounds = farming.sounds.node_sound_leaves_defaults()
})

View File

@ -20,7 +20,8 @@ minetest.register_craftitem("farming:blueberries", {
minetest.register_craftitem("farming:muffin_blueberry", {
description = S("Blueberry Muffin"),
inventory_image = "farming_blueberry_muffin.png",
on_use = minetest.item_eat(2)
on_use = minetest.item_eat(2),
groups = {compostability = 65}
})
minetest.register_craft({
@ -34,7 +35,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:blueberry_pie", {
description = S("Blueberry Pie"),
inventory_image = "farming_blueberry_pie.png",
on_use = minetest.item_eat(6)
on_use = minetest.item_eat(6),
groups = {compostability = 75}
})
minetest.register_craft({

View File

@ -17,7 +17,8 @@ minetest.register_craftitem("farming:chili_pepper", {
minetest.register_craftitem("farming:chili_bowl", {
description = S("Bowl of Chili"),
inventory_image = "farming_chili_bowl.png",
on_use = minetest.item_eat(8, "farming:bowl")
on_use = minetest.item_eat(8, a.bowl),
groups = {compostability = 65}
})
minetest.register_craft({
@ -38,7 +39,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:chili_powder", {
description = S("Chili Powder"),
on_use = minetest.item_eat(-1),
inventory_image = "farming_chili_powder.png"
inventory_image = "farming_chili_powder.png",
groups = {compostability = 45}
})
minetest.register_craft({

View File

@ -56,7 +56,7 @@ minetest.register_craft({
minetest.register_craftitem("farming:cornstarch", {
description = S("Cornstarch"),
inventory_image = "farming_cornstarch.png",
groups = {food_cornstarch = 1, food_gelatin = 1, flammable = 2}
groups = {food_cornstarch = 1, food_gelatin = 1, flammable = 2, compostability = 65}
})
minetest.register_craft({

View File

@ -24,7 +24,8 @@ minetest.register_node("farming:seed_hemp", {
-- harvested hemp
minetest.register_craftitem("farming:hemp_leaf", {
description = S("Hemp Leaf"),
inventory_image = "farming_hemp_leaf.png"
inventory_image = "farming_hemp_leaf.png",
groups = {compostability = 35}
})
-- hemp oil

View File

@ -23,8 +23,8 @@ minetest.register_craftitem("farming:onion", {
minetest.register_craftitem("farming:onion_soup", {
description = S("Onion Soup"),
inventory_image = "farming_onion_soup.png",
groups = {flammable = 2},
on_use = minetest.item_eat(6, "farming:bowl")
groups = {flammable = 2, compostability = 65},
on_use = minetest.item_eat(6, a.bowl)
})
minetest.register_craft({

View File

@ -24,7 +24,7 @@ minetest.register_alias("farming:peas", "farming:pea_pod")
minetest.register_craftitem("farming:pea_soup", {
description = S("Pea Soup"),
inventory_image = "farming_pea_soup.png",
groups = {flammable = 2},
groups = {flammable = 2, compostability = 65},
on_use = minetest.item_eat(4, a.bowl)
})

View File

@ -36,7 +36,7 @@ minetest.register_node("farming:pineapple", {
minetest.register_craftitem("farming:pineapple_ring", {
description = S("Pineapple Ring"),
inventory_image = "farming_pineapple_ring.png",
groups = {food_pineapple_ring = 1, flammable = 2},
groups = {food_pineapple_ring = 1, flammable = 2, compostability = 45},
on_use = minetest.item_eat(1)
})
@ -51,7 +51,7 @@ minetest.register_craftitem("farming:pineapple_juice", {
description = S("Pineapple Juice"),
inventory_image = "farming_pineapple_juice.png",
on_use = minetest.item_eat(4, "vessels:drinking_glass"),
groups = {vessel = 1, drink = 1, compostability = 45}
groups = {vessel = 1, drink = 1, compostability = 35}
})
minetest.register_craft({

View File

@ -17,7 +17,8 @@ minetest.register_craftitem("farming:rhubarb", {
minetest.register_craftitem("farming:rhubarb_pie", {
description = S("Rhubarb Pie"),
inventory_image = "farming_rhubarb_pie.png",
on_use = minetest.item_eat(6)
on_use = minetest.item_eat(6),
groups = {compostability = 65}
})
minetest.register_craft({

View File

@ -7,7 +7,7 @@
farming = {
mod = "redo",
version = "20230831",
version = "20230905",
path = minetest.get_modpath("farming"),
select = {
type = "fixed",
@ -556,7 +556,10 @@ farming.register_plant = function(name, def)
inventory_image = def.inventory_image,
wield_image = def.inventory_image,
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, flammable = 2, growing = 1},
groups = {
seed = 1, snappy = 3, attached_node = 1, flammable = 2, growing = 1,
compostability = 65
},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,