most recipes work with mineclone

This commit is contained in:
tenplus1 2023-09-01 10:04:33 +01:00
parent fd58dcaab1
commit 5107d18079
48 changed files with 715 additions and 659 deletions

View File

@ -5,7 +5,7 @@ local S = farming.translate
minetest.register_craftitem("farming:artichoke", { minetest.register_craftitem("farming:artichoke", {
description = S("Artichoke"), description = S("Artichoke"),
inventory_image = "farming_artichoke.png", inventory_image = "farming_artichoke.png",
groups = {compostability = 65, seed = 2, food_artichoke = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_artichoke = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:artichoke_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:artichoke_1")
end, end,
@ -69,7 +69,7 @@ farming.registered_plants["farming:artichoke"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -5,7 +5,7 @@ local S = farming.translate
minetest.register_craftitem("farming:asparagus", { minetest.register_craftitem("farming:asparagus", {
description = S("Asparagus"), description = S("Asparagus"),
inventory_image = "farming_asparagus.png", inventory_image = "farming_asparagus.png",
groups = {compostability = 65, seed = 2, food_asparagus = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_asparagus = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:asparagus_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:asparagus_1")
end, end,
@ -77,7 +77,7 @@ farming.registered_plants["farming:asparagus"] = {
minetest.register_decoration({ minetest.register_decoration({
name = "farming:asparagus_5", name = "farming:asparagus_5",
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = -0.1, offset = -0.1,

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- barley seeds -- barley seeds
minetest.register_node("farming:seed_barley", { minetest.register_node("farming:seed_barley", {
@ -8,7 +9,7 @@ minetest.register_node("farming:seed_barley", {
inventory_image = "farming_barley_seed.png", inventory_image = "farming_barley_seed.png",
wield_image = "farming_barley_seed.png", wield_image = "farming_barley_seed.png",
drawtype = "signlike", drawtype = "signlike",
groups = {compostability = 65, seed = 1, snappy = 3, attached_node = 1, growing = 1}, groups = {compostability = 48, seed = 1, snappy = 3, attached_node = 1, growing = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
walkable = false, walkable = false,
@ -27,14 +28,12 @@ minetest.register_craftitem("farming:barley", {
groups = {food_barley = 1, flammable = 2} groups = {food_barley = 1, flammable = 2}
}) })
local tmp = farming.use_utensils and "farming:mortar_pestle" or ""
-- flour -- flour
minetest.register_craft({ minetest.register_craft({
output = "farming:flour", output = "farming:flour",
recipe = { recipe = {
{"farming:barley", "farming:barley", "farming:barley"}, {"farming:barley", "farming:barley", "farming:barley"},
{"farming:barley", tmp, ""} {"farming:barley", a.mortar_pestle, ""}
}, },
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
}) })

View File

@ -5,6 +5,7 @@
]] ]]
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- place beans -- place beans
local function place_beans(itemstack, placer, pointed_thing, plantname) local function place_beans(itemstack, placer, pointed_thing, plantname)
@ -71,7 +72,7 @@ end
minetest.register_craftitem("farming:beans", { minetest.register_craftitem("farming:beans", {
description = S("Green Beans"), description = S("Green Beans"),
inventory_image = "farming_beans.png", inventory_image = "farming_beans.png",
groups = {compostability = 65, seed = 2, food_beans = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_beans = 1, flammable = 2},
on_use = minetest.item_eat(1), on_use = minetest.item_eat(1),
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return place_beans(itemstack, placer, pointed_thing, "farming:beanpole_1") return place_beans(itemstack, placer, pointed_thing, "farming:beanpole_1")
@ -80,7 +81,7 @@ minetest.register_craftitem("farming:beans", {
-- beans can be used for green dye -- beans can be used for green dye
minetest.register_craft({ minetest.register_craft({
output = "dye:green", output = a.dye_green,
recipe = {{"farming:beans"}} recipe = {{"farming:beans"}}
}) })
@ -159,8 +160,8 @@ minetest.register_craft({
output = "farming:beanpole", output = "farming:beanpole",
recipe = { recipe = {
{"", "", ""}, {"", "", ""},
{"default:stick", "", "default:stick"}, {"group:stick", "", "group:stick"},
{"default:stick", "", "default:stick"} {"group:stick", "", "group:stick"}
} }
}) })
@ -249,7 +250,7 @@ minetest.register_node("farming:beanbush", {
}, },
selection_box = farming.select, selection_box = farming.select,
groups = { groups = {
snappy = 3, flammable = 2, plant = 1, attached_node = 1, handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1,
not_in_creative_inventory = 1 not_in_creative_inventory = 1
}, },
sounds = farming.sounds.node_sound_leaves_defaults() sounds = farming.sounds.node_sound_leaves_defaults()
@ -258,7 +259,7 @@ minetest.register_node("farming:beanbush", {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,11 +1,12 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- beetroot -- beetroot
minetest.register_craftitem("farming:beetroot", { minetest.register_craftitem("farming:beetroot", {
description = S("Beetroot"), description = S("Beetroot"),
inventory_image = "farming_beetroot.png", inventory_image = "farming_beetroot.png",
groups = {compostability = 65, seed = 2, food_beetroot = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_beetroot = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:beetroot_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:beetroot_1")
end, end,
@ -30,7 +31,7 @@ minetest.register_craft({
-- red dye -- red dye
minetest.register_craft({ minetest.register_craft({
output = "dye:red", output = a.dye_red,
recipe = {{"group:food_beetroot"}} recipe = {{"group:food_beetroot"}}
}) })
@ -92,7 +93,7 @@ farming.registered_plants["farming:beetroot"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -6,7 +6,7 @@ minetest.register_craftitem("farming:blackberry", {
description = S("Blackberries"), description = S("Blackberries"),
inventory_image = "farming_blackberry.png", inventory_image = "farming_blackberry.png",
groups = { groups = {
compostability = 65, seed = 2, food_blackberries = 1, food_blackberry = 1, compostability = 48, seed = 2, food_blackberries = 1, food_blackberry = 1,
food_berry = 1, flammable = 2 food_berry = 1, flammable = 2
}, },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
@ -67,7 +67,7 @@ farming.registered_plants["farming:blackberry"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,12 +1,13 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- blueberries -- blueberries
minetest.register_craftitem("farming:blueberries", { minetest.register_craftitem("farming:blueberries", {
description = S("Wild Blueberries"), description = S("Wild Blueberries"),
inventory_image = "farming_blueberries.png", inventory_image = "farming_blueberries.png",
groups = { groups = {
compostability = 65,seed = 2, food_blueberries = 1, food_blueberry = 1, compostability = 48,seed = 2, food_blueberries = 1, food_blueberry = 1,
food_berry = 1, flammable = 2 food_berry = 1, flammable = 2
}, },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
@ -36,20 +37,18 @@ minetest.register_craftitem("farming:blueberry_pie", {
on_use = minetest.item_eat(6) on_use = minetest.item_eat(6)
}) })
local tmp = farming.use_utensils and "farming:baking_tray" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:blueberry_pie", output = "farming:blueberry_pie",
recipe = { recipe = {
{"group:food_flour", "group:food_sugar", "group:food_blueberries"}, {"group:food_flour", "group:food_sugar", "group:food_blueberries"},
{"", tmp, ""} {"", a.baking_tray, ""}
}, },
replacements = {{"group:food_baking_tray", "farming:baking_tray"}} replacements = {{"group:food_baking_tray", "farming:baking_tray"}}
}) })
-- Blue Dye -- Blue Dye
minetest.register_craft({ minetest.register_craft({
output = farming.mcl and "mcl_dye:blue" or "dye:blue", output = a.dye_blue,
recipe = {{"farming:blueberries"}} recipe = {{"farming:blueberries"}}
}) })
@ -106,7 +105,7 @@ farming.registered_plants["farming:blueberries"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -5,7 +5,7 @@ local S = farming.translate
minetest.register_craftitem("farming:cabbage", { minetest.register_craftitem("farming:cabbage", {
description = S("Cabbage"), description = S("Cabbage"),
inventory_image = "farming_cabbage.png", inventory_image = "farming_cabbage.png",
groups = {compostability = 65, seed = 2, food_cabbage = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_cabbage = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:cabbage_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:cabbage_1")
end, end,
@ -72,7 +72,7 @@ farming.registered_plants["farming:cabbage"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -5,12 +5,13 @@
]] ]]
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- carrot -- carrot
minetest.register_craftitem("farming:carrot", { minetest.register_craftitem("farming:carrot", {
description = S("Carrot"), description = S("Carrot"),
inventory_image = "farming_carrot.png", inventory_image = "farming_carrot.png",
groups = {compostability = 65, seed = 2, food_carrot = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_carrot = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:carrot_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:carrot_1")
end, end,
@ -25,12 +26,10 @@ minetest.register_craftitem("farming:carrot_juice", {
groups = {vessel = 1, drink = 1} groups = {vessel = 1, drink = 1}
}) })
local tmp = farming.use_utensils and "farming:juicer" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:carrot_juice", output = "farming:carrot_juice",
recipe = { recipe = {
{tmp}, {a.juicer},
{"group:food_carrot"}, {"group:food_carrot"},
{"vessels:drinking_glass"} {"vessels:drinking_glass"}
}, },
@ -135,7 +134,7 @@ def = {
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,11 +1,12 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- chili pepper -- chili pepper
minetest.register_craftitem("farming:chili_pepper", { minetest.register_craftitem("farming:chili_pepper", {
description = S("Chili Pepper"), description = S("Chili Pepper"),
inventory_image = "farming_chili_pepper.png", inventory_image = "farming_chili_pepper.png",
groups = {compostability = 65, seed = 2, food_chili_pepper = 1, flammable = 4}, groups = {compostability = 48, seed = 2, food_chili_pepper = 1, flammable = 4},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:chili_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:chili_1")
end, end,
@ -29,7 +30,7 @@ minetest.register_craft({
-- chili can be used for red dye -- chili can be used for red dye
minetest.register_craft({ minetest.register_craft({
output = farming.mcl and "mcl_dye:red" or "dye:red", output = a.dye_red,
recipe = {{"farming:chili_pepper"}} recipe = {{"farming:chili_pepper"}}
}) })
@ -40,12 +41,10 @@ minetest.register_craftitem("farming:chili_powder", {
inventory_image = "farming_chili_powder.png" inventory_image = "farming_chili_powder.png"
}) })
local tmp = farming.use_utensils and "farming:mortar_pestle" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:chili_powder", output = "farming:chili_powder",
recipe = { recipe = {
{"farming:chili_pepper", tmp} {"farming:chili_pepper", a.mortar_pestle}
}, },
replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}} replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}}
}) })
@ -120,7 +119,10 @@ farming.registered_plants["farming:chili_pepper"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_rainforest_litter"}, place_on = {
"default:dirt_with_grass", "default:dirt_with_rainforest_litter",
"mcl_core:dirt_with_grass"
},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- place cocoa -- place cocoa
local function place_cocoa(itemstack, placer, pointed_thing, plantname) local function place_cocoa(itemstack, placer, pointed_thing, plantname)
@ -67,7 +68,7 @@ end
minetest.register_craftitem("farming:cocoa_beans_raw", { minetest.register_craftitem("farming:cocoa_beans_raw", {
description = S("Raw Cocoa Beans"), description = S("Raw Cocoa Beans"),
inventory_image = "farming_cocoa_beans.png^[brighten", inventory_image = "farming_cocoa_beans.png^[brighten",
groups = {compostability = 65, seed = 1, flammable = 2}, groups = {compostability = 48, seed = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return place_cocoa(itemstack, placer, pointed_thing, "farming:cocoa_1") return place_cocoa(itemstack, placer, pointed_thing, "farming:cocoa_1")
end end
@ -76,7 +77,7 @@ minetest.register_craftitem("farming:cocoa_beans_raw", {
minetest.register_craftitem("farming:cocoa_beans", { minetest.register_craftitem("farming:cocoa_beans", {
description = S("Cocoa Beans"), description = S("Cocoa Beans"),
inventory_image = "farming_cocoa_beans.png", inventory_image = "farming_cocoa_beans.png",
groups = {food_cocoa = 1, flammable = 2} groups = {compostability = 65, food_cocoa = 1, flammable = 2}
}) })
minetest.register_craft({ minetest.register_craft({
@ -87,7 +88,7 @@ minetest.register_craft({
}) })
minetest.register_craft( { minetest.register_craft( {
output = farming.mcl and "mcl_dye:brown 2" or "dye:brown 2", output = a.dye_brown,
recipe = {{"farming:cocoa_beans"}} recipe = {{"farming:cocoa_beans"}}
}) })

View File

@ -1,11 +1,12 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- coffee -- coffee
minetest.register_craftitem("farming:coffee_beans", { minetest.register_craftitem("farming:coffee_beans", {
description = S("Coffee Beans"), description = S("Coffee Beans"),
inventory_image = "farming_coffee_beans.png", inventory_image = "farming_coffee_beans.png",
groups = {compostability = 65, seed = 2, food_coffee = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_coffee = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:coffee_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:coffee_1")
end end
@ -32,12 +33,10 @@ minetest.register_node("farming:coffee_cup", {
minetest.register_alias("farming:coffee_cup_hot", "farming:coffee_cup") minetest.register_alias("farming:coffee_cup_hot", "farming:coffee_cup")
minetest.register_alias("farming:drinking_cup", "vessels:drinking_glass") minetest.register_alias("farming:drinking_cup", "vessels:drinking_glass")
local tmp = farming.use_utensils and "farming:saucepan" or ""
minetest.register_craft( { minetest.register_craft( {
output = "farming:coffee_cup", output = "farming:coffee_cup",
recipe = { recipe = {
{"group:food_coffee", "group:food_water_glass", tmp} {"group:food_coffee", "group:food_water_glass", a.saucepan}
}, },
replacements = { replacements = {
{"group:food_saucepan", "farming:saucepan"} {"group:food_saucepan", "farming:saucepan"}
@ -106,7 +105,8 @@ local mg = farming.mapgen == "v6"
def = { def = {
y_max = mg and 50 or 55, y_max = mg and 50 or 55,
spawn_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_dry_grass", spawn_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_dry_grass",
"default:dirt_with_rainforest_litter", "default:dry_dirt_with_dry_grass"} "default:dirt_with_rainforest_litter", "default:dry_dirt_with_dry_grass",
"mcl_core:dirt_with_grass"}
} }
minetest.register_decoration({ minetest.register_decoration({

View File

@ -5,12 +5,13 @@
]] ]]
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- corn -- corn
minetest.register_craftitem("farming:corn", { minetest.register_craftitem("farming:corn", {
description = S("Corn"), description = S("Corn"),
inventory_image = "farming_corn.png", inventory_image = "farming_corn.png",
groups = {compostability = 65, seed = 2, food_corn = 1, flammable = 2}, groups = {compostability = 45, seed = 2, food_corn = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:corn_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:corn_1")
end, end,
@ -21,7 +22,7 @@ minetest.register_craftitem("farming:corn", {
minetest.register_craftitem("farming:corn_cob", { minetest.register_craftitem("farming:corn_cob", {
description = S("Corn on the Cob"), description = S("Corn on the Cob"),
inventory_image = "farming_corn_cob.png", inventory_image = "farming_corn_cob.png",
groups = {food_corn_cooked = 1, flammable = 2}, groups = {compostability = 65, food_corn_cooked = 1, flammable = 2},
on_use = minetest.item_eat(5) on_use = minetest.item_eat(5)
}) })
@ -36,16 +37,14 @@ minetest.register_craft({
minetest.register_craftitem("farming:popcorn", { minetest.register_craftitem("farming:popcorn", {
description = S("Popcorn"), description = S("Popcorn"),
inventory_image = "farming_popcorn.png", inventory_image = "farming_popcorn.png",
groups = {food_popcorn = 1, flammable = 2}, groups = {compostability = 55, food_popcorn = 1, flammable = 2},
on_use = minetest.item_eat(4) on_use = minetest.item_eat(4)
}) })
local tmp = farming.use_utensils and "farming:pot" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:popcorn", output = "farming:popcorn",
recipe = { recipe = {
{"group:food_oil", "group:food_corn", tmp} {"group:food_oil", "group:food_corn", a.pot}
}, },
replacements = { replacements = {
{"group:food_pot", "farming:pot"}, {"group:food_pot", "farming:pot"},
@ -60,13 +59,10 @@ minetest.register_craftitem("farming:cornstarch", {
groups = {food_cornstarch = 1, food_gelatin = 1, flammable = 2} groups = {food_cornstarch = 1, food_gelatin = 1, flammable = 2}
}) })
tmp = farming.use_utensils and "farming:mortar_pestle" or ""
local tmp2 = farming.use_utensils and "farming:baking_tray" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:cornstarch", output = "farming:cornstarch",
recipe = { recipe = {
{tmp, "group:food_corn_cooked", tmp2}, {a.mortar_pestle, "group:food_corn_cooked", a.baking_tray},
{"", "group:food_bowl", ""}, {"", "group:food_bowl", ""},
}, },
replacements = { replacements = {
@ -97,7 +93,7 @@ minetest.register_craft( {
output = "farming:bottle_ethanol", output = "farming:bottle_ethanol",
recipe = { recipe = {
{"group:food_corn", "group:food_corn", "group:food_corn"}, {"group:food_corn", "group:food_corn", "group:food_corn"},
{"group:food_corn", "vessels:glass_bottle", "group:food_corn"}, {"group:food_corn", a.glass_bottle, "group:food_corn"},
{"group:food_corn", "group:food_corn", "group:food_corn"} {"group:food_corn", "group:food_corn", "group:food_corn"}
} }
}) })
@ -106,7 +102,7 @@ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "farming:bottle_ethanol", recipe = "farming:bottle_ethanol",
burntime = 80, burntime = 80,
replacements = {{"farming:bottle_ethanol", "vessels:glass_bottle"}} replacements = {{"farming:bottle_ethanol", a.glass_bottle}}
}) })
-- corn definition -- corn definition
@ -187,7 +183,7 @@ farming.registered_plants["farming:corn"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -13,7 +13,7 @@ minetest.register_node("farming:cotton_wild", {
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
buildable_to = true, buildable_to = true,
groups = {handy = 1, snappy = 3, attached_node = 1, flammable = 4}, groups = {handy = 1, snappy = 3, attached_node = 1, flammable = 4, compostability = 60},
drop = { drop = {
items = { items = {
{items = {"farming:cotton"}, rarity = 2}, {items = {"farming:cotton"}, rarity = 2},
@ -35,7 +35,7 @@ minetest.register_node("farming:seed_cotton", {
wield_image = "farming_cotton_seed.png", wield_image = "farming_cotton_seed.png",
drawtype = "signlike", drawtype = "signlike",
groups = { groups = {
compostability = 65, seed = 1, snappy = 3, attached_node = 1, compostability = 48, seed = 1, snappy = 3, attached_node = 1,
flammable = 4, growing = 1 flammable = 4, growing = 1
}, },
paramtype = "light", paramtype = "light",
@ -53,7 +53,7 @@ minetest.register_node("farming:seed_cotton", {
minetest.register_craftitem("farming:cotton", { minetest.register_craftitem("farming:cotton", {
description = S("Cotton"), description = S("Cotton"),
inventory_image = "farming_cotton.png", inventory_image = "farming_cotton.png",
groups = {flammable = 4} groups = {flammable = 4, compostability = 50}
}) })
-- string -- string
@ -195,7 +195,8 @@ farming.register_plant("farming:cotton", {
local mg = farming.mapgen == "v6" local mg = farming.mapgen == "v6"
def = { def = {
grow_on = mg and {"default:dirt_with_grass"} or {"default:dry_dirt_with_dry_grass"}, grow_on = mg and {"default:dirt_with_grass"} or {"default:dry_dirt_with_dry_grass",
"mcl_core:dirt_with_grass"},
biome = mg and {"jungle"} or {"savanna"} biome = mg and {"jungle"} or {"savanna"}
} }

View File

@ -10,7 +10,7 @@ local S = farming.translate
minetest.register_craftitem("farming:cucumber", { minetest.register_craftitem("farming:cucumber", {
description = S("Cucumber"), description = S("Cucumber"),
inventory_image = "farming_cucumber.png", inventory_image = "farming_cucumber.png",
groups = {compostability = 65, seed = 2, food_cucumber = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_cucumber = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:cucumber_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:cucumber_1")
end, end,
@ -75,7 +75,7 @@ def = {
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -5,7 +5,7 @@ local S = farming.translate
minetest.register_craftitem("farming:eggplant", { minetest.register_craftitem("farming:eggplant", {
description = S("Eggplant"), description = S("Eggplant"),
inventory_image = "farming_eggplant.png", inventory_image = "farming_eggplant.png",
groups = {compostability = 65, seed = 2, food_eggplant = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_eggplant = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:eggplant_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:eggplant_1")
end, end,
@ -72,7 +72,7 @@ farming.registered_plants["farming:eggplant"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = -0.1, offset = -0.1,

View File

@ -11,7 +11,7 @@ local S = farming.translate
minetest.register_craftitem("farming:garlic_clove", { minetest.register_craftitem("farming:garlic_clove", {
description = S("Garlic clove"), description = S("Garlic clove"),
inventory_image = "crops_garlic_clove.png", inventory_image = "crops_garlic_clove.png",
groups = {compostability = 65, seed = 2, food_garlic_clove = 1, flammable = 3}, groups = {compostability = 35, seed = 2, food_garlic_clove = 1, flammable = 3},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:garlic_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:garlic_1")
end end
@ -22,7 +22,7 @@ minetest.register_craftitem("farming:garlic", {
description = S("Garlic"), description = S("Garlic"),
inventory_image = "crops_garlic.png", inventory_image = "crops_garlic.png",
on_use = minetest.item_eat(1), on_use = minetest.item_eat(1),
groups = {food_garlic = 1, flammable = 3} groups = {food_garlic = 1, flammable = 3, compostability = 55}
}) })
minetest.register_craft({ minetest.register_craft({
@ -53,7 +53,7 @@ minetest.register_node("farming:garlic_braid", {
"crops_garlic_braid_side.png^[transformFx","crops_garlic_braid_side.png", "crops_garlic_braid_side.png^[transformFx","crops_garlic_braid_side.png",
"crops_garlic_braid.png","crops_garlic_braid.png" "crops_garlic_braid.png","crops_garlic_braid.png"
}, },
groups = {vessel = 1, dig_immediate = 3, flammable = 3}, groups = {vessel = 1, dig_immediate = 3, flammable = 3, compostability = 65},
sounds = farming.sounds.node_sound_leaves_defaults(), sounds = farming.sounds.node_sound_leaves_defaults(),
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -138,7 +138,7 @@ farming.registered_plants["farming:garlic"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -5,7 +5,7 @@ local S = farming.translate
minetest.register_craftitem("farming:ginger", { minetest.register_craftitem("farming:ginger", {
description = S("Ginger"), description = S("Ginger"),
inventory_image = "farming_ginger.png", inventory_image = "farming_ginger.png",
groups = {compostability = 65, seed = 2, food_ginger = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_ginger = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:ginger_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:ginger_1")
end, end,
@ -72,7 +72,7 @@ farming.registered_plants["farming:ginger"] = {
minetest.register_decoration({ minetest.register_decoration({
name = "farming:ginger_4", name = "farming:ginger_4",
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_rainforest_litter"}, place_on = {"default:dirt_with_rainforest_litter", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- place trellis -- place trellis
local function place_grapes(itemstack, placer, pointed_thing, plantname) local function place_grapes(itemstack, placer, pointed_thing, plantname)
@ -67,7 +68,7 @@ minetest.register_craftitem("farming:grapes", {
description = S("Grapes"), description = S("Grapes"),
inventory_image = "farming_grapes.png", inventory_image = "farming_grapes.png",
on_use = minetest.item_eat(2), on_use = minetest.item_eat(2),
groups = {compostability = 65, seed = 2, food_grapes = 1, flammable = 3}, groups = {compostability = 48, seed = 2, food_grapes = 1, flammable = 3},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return place_grapes(itemstack, placer, pointed_thing, "farming:grapes_1") return place_grapes(itemstack, placer, pointed_thing, "farming:grapes_1")
end end
@ -75,7 +76,7 @@ minetest.register_craftitem("farming:grapes", {
-- grapes can be used for violet dye -- grapes can be used for violet dye
minetest.register_craft({ minetest.register_craft({
output = farming.mcl and "mcl_dye:violet" or "dye:violet", output = a.dye_violet,
recipe = {{"farming:grapes"}} recipe = {{"farming:grapes"}}
}) })
@ -153,9 +154,9 @@ minetest.register_node("farming:trellis", {
minetest.register_craft({ minetest.register_craft({
output = "farming:trellis", output = "farming:trellis",
recipe = { recipe = {
{"default:stick", "default:stick", "default:stick"}, {"group:stick", "group:stick", "group:stick"},
{"default:stick", "default:stick", "default:stick"}, {"group:stick", "group:stick", "group:stick"},
{"default:stick", "default:stick", "default:stick"} {"group:stick", "group:stick", "group:stick"}
} }
}) })
@ -257,7 +258,7 @@ minetest.register_node("farming:grapebush", {
selection_box = farming.select, selection_box = farming.select,
groups = { groups = {
handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1, handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1,
not_in_creative_inventory = 1 not_in_creative_inventory = 1, compostability = 35
}, },
sounds = farming.sounds.node_sound_leaves_defaults() sounds = farming.sounds.node_sound_leaves_defaults()
}) })
@ -265,7 +266,7 @@ minetest.register_node("farming:grapebush", {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- hemp seeds -- hemp seeds
minetest.register_node("farming:seed_hemp", { minetest.register_node("farming:seed_hemp", {
@ -8,7 +9,7 @@ minetest.register_node("farming:seed_hemp", {
inventory_image = "farming_hemp_seed.png", inventory_image = "farming_hemp_seed.png",
wield_image = "farming_hemp_seed.png", wield_image = "farming_hemp_seed.png",
drawtype = "signlike", drawtype = "signlike",
groups = {compostability = 65, seed = 1, snappy = 3, attached_node = 1, growing = 1}, groups = {compostability = 38, seed = 1, snappy = 3, attached_node = 1, growing = 1},
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
walkable = false, walkable = false,
@ -40,7 +41,10 @@ minetest.register_node("farming:hemp_oil", {
type = "fixed", type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25} fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
}, },
groups = {food_oil = 1, vessel = 1, dig_immediate = 3, attached_node = 1}, groups = {
food_oil = 1, vessel = 1, dig_immediate = 3, attached_node = 1,
compostability = 45
},
sounds = farming.sounds.node_sound_glass_defaults() sounds = farming.sounds.node_sound_glass_defaults()
}) })
@ -49,7 +53,7 @@ minetest.register_craft( {
recipe = { recipe = {
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}, {"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}, {"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
{"", "vessels:glass_bottle", ""} {"", a.glass_bottle, ""}
} }
}) })
@ -58,7 +62,7 @@ minetest.register_craft( {
recipe = { recipe = {
{"farming:seed_hemp", "farming:seed_hemp", "farming:seed_hemp"}, {"farming:seed_hemp", "farming:seed_hemp", "farming:seed_hemp"},
{"farming:seed_hemp", "farming:seed_hemp", "farming:seed_hemp"}, {"farming:seed_hemp", "farming:seed_hemp", "farming:seed_hemp"},
{"farming:seed_hemp", "vessels:glass_bottle", "farming:seed_hemp"} {"farming:seed_hemp", a.glass_bottle, "farming:seed_hemp"}
} }
}) })
@ -66,13 +70,14 @@ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "farming:hemp_oil", recipe = "farming:hemp_oil",
burntime = 20, burntime = 20,
replacements = {{"farming:hemp_oil", "vessels:glass_bottle"}} replacements = {{"farming:hemp_oil", a.glass_bottle}}
}) })
-- hemp fibre -- hemp fibre
minetest.register_craftitem("farming:hemp_fibre", { minetest.register_craftitem("farming:hemp_fibre", {
description = S("Hemp Fibre"), description = S("Hemp Fibre"),
inventory_image = "farming_hemp_fibre.png" inventory_image = "farming_hemp_fibre.png",
groups = {compostability = 55}
}) })
minetest.register_craft( { minetest.register_craft( {
@ -82,7 +87,7 @@ minetest.register_craft( {
{"farming:hemp_leaf", "group:water_bucket", "farming:hemp_leaf"}, {"farming:hemp_leaf", "group:water_bucket", "farming:hemp_leaf"},
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"} {"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}
}, },
replacements = {{"group:water_bucket", "bucket:bucket_empty"}} replacements = {{a.bucket_water, a.bucket_empty}}
}) })
if minetest.get_modpath("bucket_wooden") then if minetest.get_modpath("bucket_wooden") then
@ -102,7 +107,10 @@ minetest.register_node("farming:hemp_block", {
description = S("Hemp Block"), description = S("Hemp Block"),
tiles = {"farming_hemp_block.png"}, tiles = {"farming_hemp_block.png"},
paramtype = "light", paramtype = "light",
groups = {handy = 1, snappy = 2, oddly_breakable_by_hand = 1, flammable = 2}, groups = {
handy = 1, snappy = 2, oddly_breakable_by_hand = 1, flammable = 2,
compostability = 85
},
sounds = farming.sounds.node_sound_leaves_defaults() sounds = farming.sounds.node_sound_leaves_defaults()
}) })
@ -138,7 +146,7 @@ end
-- paper -- paper
minetest.register_craft( { minetest.register_craft( {
output = "default:paper 3", output = a.paper .. " 3",
recipe = { recipe = {
{"farming:hemp_fibre", "farming:hemp_fibre", "farming:hemp_fibre"} {"farming:hemp_fibre", "farming:hemp_fibre", "farming:hemp_fibre"}
} }
@ -165,7 +173,9 @@ minetest.register_node("farming:hemp_rope", {
wield_image = "farming_hemp_rope.png", wield_image = "farming_hemp_rope.png",
inventory_image = "farming_hemp_rope.png", inventory_image = "farming_hemp_rope.png",
drawtype = "plantlike", drawtype = "plantlike",
groups = {flammable = 2, choppy = 3, oddly_breakable_by_hand = 3}, groups = {
flammable = 2, choppy = 3, oddly_breakable_by_hand = 3, compostability = 55
},
sounds = farming.sounds.node_sound_leaves_defaults(), sounds = farming.sounds.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -268,7 +278,10 @@ farming.registered_plants["farming:hemp"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_rainforest_litter"}, place_on = {
"default:dirt_with_grass", "default:dirt_with_rainforest_litter",
"mcl_core:dirt_with_grass"
},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -5,7 +5,7 @@ local S = farming.translate
minetest.register_craftitem("farming:lettuce", { minetest.register_craftitem("farming:lettuce", {
description = S("Lettuce"), description = S("Lettuce"),
inventory_image = "farming_lettuce.png", inventory_image = "farming_lettuce.png",
groups = {compostability = 65, seed = 2, food_lettuce = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_lettuce = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:lettuce_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:lettuce_1")
end, end,
@ -67,7 +67,7 @@ farming.registered_plants["farming:lettuce"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,11 +1,12 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- melon -- melon
minetest.register_craftitem("farming:melon_slice", { minetest.register_craftitem("farming:melon_slice", {
description = S("Melon Slice"), description = S("Melon Slice"),
inventory_image = "farming_melon_slice.png", inventory_image = "farming_melon_slice.png",
groups = {compostability = 65, seed = 2, food_melon_slice = 1, flammable = 3}, groups = {compostability = 48, seed = 2, food_melon_slice = 1, flammable = 3},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:melon_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:melon_1")
end, end,
@ -20,11 +21,9 @@ minetest.register_craft({
} }
}) })
local tmp = farming.use_utensils and "farming:cutting_board" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:melon_slice 4", output = "farming:melon_slice 4",
recipe = {{"farming:melon_8", tmp}}, recipe = {{"farming:melon_8", a.cutting_board}},
replacements = {{"farming:cutting_board", "farming:cutting_board"}} replacements = {{"farming:cutting_board", "farming:cutting_board"}}
}) })
@ -82,7 +81,7 @@ minetest.register_node("farming:melon_8", {
}, },
groups = { groups = {
food_melon = 1, handy = 1, snappy = 3, choppy = 3, oddly_breakable_by_hand = 2, food_melon = 1, handy = 1, snappy = 3, choppy = 3, oddly_breakable_by_hand = 2,
flammable = 2, plant = 1 flammable = 2, plant = 1, compostability = 65
}, },
drop = "farming:melon_8", drop = "farming:melon_8",
sounds = farming.sounds.node_sound_wood_defaults(), sounds = farming.sounds.node_sound_wood_defaults(),
@ -105,7 +104,7 @@ local mg = farming.mapgen == "v6"
def = { def = {
y_max = mg and 20 or 6, y_max = mg and 20 or 6,
spawn_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_dry_grass", spawn_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_dry_grass",
"default:dirt_with_rainforest_litter"}, "default:dirt_with_rainforest_litter", "mcl_core:dirt_with_grass"},
near = mg and "group:water" or nil, near = mg and "group:water" or nil,
num = mg and 1 or -1, num = mg and 1 or -1,
} }

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- mint seed -- mint seed
minetest.register_node("farming:seed_mint", { minetest.register_node("farming:seed_mint", {
@ -9,7 +10,7 @@ minetest.register_node("farming:seed_mint", {
wield_image = "farming_mint_seeds.png", wield_image = "farming_mint_seeds.png",
drawtype = "signlike", drawtype = "signlike",
groups = { groups = {
compostability = 65, seed = 1, snappy = 3, attached_node = 1, growing = 1, compostability = 48, seed = 1, snappy = 3, attached_node = 1, growing = 1,
flammable = 2 flammable = 2
}, },
paramtype = "light", paramtype = "light",
@ -27,7 +28,7 @@ minetest.register_node("farming:seed_mint", {
minetest.register_craftitem("farming:mint_leaf", { minetest.register_craftitem("farming:mint_leaf", {
description = S("Mint Leaf"), description = S("Mint Leaf"),
inventory_image = "farming_mint_leaf.png", inventory_image = "farming_mint_leaf.png",
groups = {food_mint = 1, flammable = 4} groups = {food_mint = 1, flammable = 4, compostability = 48}
}) })
-- mint tea -- mint tea
@ -38,13 +39,11 @@ minetest.register_craftitem("farming:mint_tea", {
groups = {flammable = 4} groups = {flammable = 4}
}) })
local tmp = farming.use_utensils and "farming:juicer" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:mint_tea", output = "farming:mint_tea",
recipe = { recipe = {
{"group:food_mint", "group:food_mint", "group:food_mint"}, {"group:food_mint", "group:food_mint", "group:food_mint"},
{"group:food_water_glass", tmp, ""} {"group:food_water_glass", a.juicer, ""}
}, },
replacements = { replacements = {
{"group:food_juicer", "farming:juicer"} {"group:food_juicer", "farming:juicer"}
@ -106,7 +105,10 @@ farming.registered_plants["farming:mint"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"}, place_on = {
"default:dirt_with_grass", "default:dirt_with_coniferous_litter",
"mcl_core:dirt_with_grass"
},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -6,12 +6,13 @@
]] ]]
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- onion -- onion
minetest.register_craftitem("farming:onion", { minetest.register_craftitem("farming:onion", {
description = S("Onion"), description = S("Onion"),
inventory_image = "crops_onion.png", inventory_image = "crops_onion.png",
groups = {compostability = 65, seed = 2, food_onion = 1, flammable = 3}, groups = {compostability = 48, seed = 2, food_onion = 1, flammable = 3},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:onion_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:onion_1")
end, end,
@ -26,21 +27,19 @@ minetest.register_craftitem("farming:onion_soup", {
on_use = minetest.item_eat(6, "farming:bowl") on_use = minetest.item_eat(6, "farming:bowl")
}) })
local tmp = farming.use_utensils and "farming:pot" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:onion_soup", output = "farming:onion_soup",
recipe = { recipe = {
{"group:food_onion", "group:food_onion", "group:food_onion"}, {"group:food_onion", "group:food_onion", "group:food_onion"},
{"group:food_onion", "group:food_bowl", "group:food_onion"}, {"group:food_onion", "group:food_bowl", "group:food_onion"},
{"", tmp, ""} {"", a.pot, ""}
}, },
replacements = {{"farming:pot", "farming:pot"}} replacements = {{"farming:pot", "farming:pot"}}
}) })
-- yellow dye -- yellow dye
minetest.register_craft({ minetest.register_craft({
output = farming.mcl and "mcl_dye:yellow" or "dye:yellow", output = a.dye_yellow,
recipe = {{"group:food_onion"}} recipe = {{"group:food_onion"}}
}) })
@ -107,7 +106,7 @@ farming.registered_plants["farming:onion"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -5,7 +5,7 @@ local S = farming.translate
minetest.register_craftitem("farming:parsley", { minetest.register_craftitem("farming:parsley", {
description = S("Parsley"), description = S("Parsley"),
inventory_image = "farming_parsley.png", inventory_image = "farming_parsley.png",
groups = {compostability = 65, seed = 2, food_parsley = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_parsley = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:parsley_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:parsley_1")
end end
@ -61,7 +61,7 @@ farming.registered_plants["farming:parsley"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- Textures for Pea crop and Peas were done by Andrey01 -- Textures for Pea crop and Peas were done by Andrey01
@ -8,7 +9,7 @@ minetest.register_craftitem("farming:pea_pod", {
description = S("Pea Pod"), description = S("Pea Pod"),
inventory_image = "farming_pea_pod.png", inventory_image = "farming_pea_pod.png",
groups = { groups = {
compostability = 65, seed = 2, food_peas = 1, food_pea_pod = 1, flammable = 2 compostability = 48, seed = 2, food_peas = 1, food_pea_pod = 1, flammable = 2
}, },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:pea_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:pea_1")
@ -24,7 +25,7 @@ minetest.register_craftitem("farming:pea_soup", {
description = S("Pea Soup"), description = S("Pea Soup"),
inventory_image = "farming_pea_soup.png", inventory_image = "farming_pea_soup.png",
groups = {flammable = 2}, groups = {flammable = 2},
on_use = minetest.item_eat(4, "farming:bowl") on_use = minetest.item_eat(4, a.bowl)
}) })
minetest.register_craft({ minetest.register_craft({
@ -96,7 +97,7 @@ farming.registered_plants["farming:pea_pod"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -6,12 +6,13 @@
]] ]]
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- peppercorn (seed) -- peppercorn (seed)
minetest.register_craftitem("farming:peppercorn", { minetest.register_craftitem("farming:peppercorn", {
description = S("Peppercorn"), description = S("Peppercorn"),
inventory_image = "crops_peppercorn.png", inventory_image = "crops_peppercorn.png",
groups = {compostability = 65, seed = 1, food_peppercorn = 1, flammable = 3}, groups = {compostability = 48, seed = 1, food_peppercorn = 1, flammable = 3},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:pepper_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:pepper_1")
end end
@ -22,7 +23,7 @@ minetest.register_craftitem("farming:pepper", {
description = S("Green Pepper"), description = S("Green Pepper"),
inventory_image = "crops_pepper.png", inventory_image = "crops_pepper.png",
on_use = minetest.item_eat(2), on_use = minetest.item_eat(2),
groups = {food_pepper = 1, flammable = 3} groups = {food_pepper = 1, flammable = 3, compostability = 55}
}) })
-- yellow pepper -- yellow pepper
@ -30,7 +31,7 @@ minetest.register_craftitem("farming:pepper_yellow", {
description = S("Yellow Pepper"), description = S("Yellow Pepper"),
inventory_image = "crops_pepper_yellow.png", inventory_image = "crops_pepper_yellow.png",
on_use = minetest.item_eat(3), on_use = minetest.item_eat(3),
groups = {food_pepper = 1, flammable = 3} groups = {food_pepper = 1, flammable = 3, compostability = 55}
}) })
-- red pepper -- red pepper
@ -38,7 +39,7 @@ minetest.register_craftitem("farming:pepper_red", {
description = S("Red Pepper"), description = S("Red Pepper"),
inventory_image = "crops_pepper_red.png", inventory_image = "crops_pepper_red.png",
on_use = minetest.item_eat(4), on_use = minetest.item_eat(4),
groups = {food_pepper = 1, flammable = 3} groups = {food_pepper = 1, flammable = 3, compostability = 55}
}) })
minetest.register_craft({ minetest.register_craft({
@ -57,7 +58,7 @@ minetest.register_node("farming:pepper_ground", {
tiles = {"crops_pepper_ground.png"}, tiles = {"crops_pepper_ground.png"},
groups = { groups = {
vessel = 1, food_pepper_ground = 1, vessel = 1, food_pepper_ground = 1,
dig_immediate = 3, attached_node = 1 dig_immediate = 3, attached_node = 1, compostability = 30
}, },
sounds = farming.sounds.node_sound_defaults(), sounds = farming.sounds.node_sound_defaults(),
selection_box = { selection_box = {
@ -66,14 +67,12 @@ minetest.register_node("farming:pepper_ground", {
} }
}) })
local tmp = farming.use_utensils and "farming:mortar_pestle" or ""
minetest.register_craft( { minetest.register_craft( {
output = "farming:pepper_ground", output = "farming:pepper_ground",
recipe = { recipe = {
{"group:food_peppercorn"}, {"group:food_peppercorn"},
{"vessels:glass_bottle"}, {a.glass_bottle},
{tmp} {a.mortar_pestle}
}, },
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
}) })
@ -161,7 +160,8 @@ farming.registered_plants["farming:pepper"] = {
local mg = farming.mapgen == "v6" local mg = farming.mapgen == "v6"
def = { def = {
grow_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_rainforest_litter"} grow_on = mg and {"default:dirt_with_grass"} or {
"default:dirt_with_rainforest_litter", "mcl_core:dirt_with_grass"}
} }
minetest.register_decoration({ minetest.register_decoration({

View File

@ -1,11 +1,12 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- pineapple top -- pineapple top
minetest.register_craftitem("farming:pineapple_top", { minetest.register_craftitem("farming:pineapple_top", {
description = S("Pineapple Top"), description = S("Pineapple Top"),
inventory_image = "farming_pineapple_top.png", inventory_image = "farming_pineapple_top.png",
groups = {compostability = 65, seed = 2, flammable = 2}, groups = {compostability = 48, seed = 2, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:pineapple_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:pineapple_1")
end end
@ -25,7 +26,10 @@ minetest.register_node("farming:pineapple", {
type = "fixed", type = "fixed",
fixed = {-0.27, -0.37, -0.27, 0.27, 0.44, 0.27} fixed = {-0.27, -0.37, -0.27, 0.27, 0.44, 0.27}
}, },
groups = {food_pineapple = 1, fleshy = 3, dig_immediate = 3, flammable = 2} groups = {
food_pineapple = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
compostability = 65
}
}) })
-- pineapple -- pineapple
@ -47,18 +51,16 @@ minetest.register_craftitem("farming:pineapple_juice", {
description = S("Pineapple Juice"), description = S("Pineapple Juice"),
inventory_image = "farming_pineapple_juice.png", inventory_image = "farming_pineapple_juice.png",
on_use = minetest.item_eat(4, "vessels:drinking_glass"), on_use = minetest.item_eat(4, "vessels:drinking_glass"),
groups = {vessel = 1, drink = 1} groups = {vessel = 1, drink = 1, compostability = 45}
}) })
local tmp = farming.use_utensils and "farming:juicer" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:pineapple_juice", output = "farming:pineapple_juice",
recipe = { recipe = {
{"group:food_pineapple_ring", "group:food_pineapple_ring", {"group:food_pineapple_ring", "group:food_pineapple_ring",
"group:food_pineapple_ring"}, "group:food_pineapple_ring"},
{"", "vessels:drinking_glass", ""}, {"", a.drinking_glass, ""},
{"", tmp, ""} {"", a.juicer, ""}
}, },
replacements = { replacements = {
{"group:food_juicer", "farming:juicer"} {"group:food_juicer", "farming:juicer"}
@ -68,9 +70,8 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
output = "farming:pineapple_juice 2", output = "farming:pineapple_juice 2",
recipe = { recipe = {
{"group:food_pineapple", ""}, {a.drinking_glass, "group:food_pineapple", a.drinking_glass},
{"vessels:drinking_glass", "vessels:drinking_glass"}, {"", a.juicer, ""}
{tmp, ""}
}, },
replacements = { replacements = {
{"group:food_juicer", "farming:juicer"} {"group:food_juicer", "farming:juicer"}
@ -149,7 +150,7 @@ local mg = farming.mapgen == "v6"
def = { def = {
grow_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_dry_grass", grow_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_dry_grass",
"default:dry_dirt_with_dry_grass"}, "default:dry_dirt_with_dry_grass", "mcl_core:dirt_with_grass"},
grow_near = mg and "group:sand" or nil, grow_near = mg and "group:sand" or nil,
num = mg and 1 or -1 num = mg and 1 or -1
} }

View File

@ -10,7 +10,7 @@ local S = farming.translate
minetest.register_craftitem("farming:potato", { minetest.register_craftitem("farming:potato", {
description = S("Potato"), description = S("Potato"),
inventory_image = "farming_potato.png", inventory_image = "farming_potato.png",
groups = {compostability = 65, seed = 2, food_potato = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_potato = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:potato_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:potato_1")
end, end,
@ -115,7 +115,7 @@ farming.registered_plants["farming:potato"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -5,7 +5,7 @@ local S = farming.translate
minetest.register_craftitem("farming:pumpkin_slice", { minetest.register_craftitem("farming:pumpkin_slice", {
description = S("Pumpkin Slice"), description = S("Pumpkin Slice"),
inventory_image = "farming_pumpkin_slice.png", inventory_image = "farming_pumpkin_slice.png",
groups = {compostability = 65, seed = 2, food_pumpkin_slice = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_pumpkin_slice = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:pumpkin_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:pumpkin_1")
end, end,
@ -32,12 +32,17 @@ minetest.register_craft({
minetest.register_node("farming:jackolantern", { minetest.register_node("farming:jackolantern", {
description = S("Jack 'O Lantern (punch to turn on and off)"), description = S("Jack 'O Lantern (punch to turn on and off)"),
tiles = { tiles = {
"farming_pumpkin_bottom.png^farming_pumpkin_top.png", "farming_pumpkin_bottom.png", "farming_pumpkin_bottom.png^farming_pumpkin_top.png",
"farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_bottom.png",
"farming_pumpkin_side.png", "farming_pumpkin_side.png^farming_pumpkin_face_off.png" "farming_pumpkin_side.png",
"farming_pumpkin_side.png",
"farming_pumpkin_side.png",
"farming_pumpkin_side.png^farming_pumpkin_face_off.png"
}, },
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {handy = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {
handy = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2
},
sounds = farming.sounds.node_sound_wood_defaults(), sounds = farming.sounds.node_sound_wood_defaults(),
on_punch = function(pos, node, puncher) on_punch = function(pos, node, puncher)
local name = puncher:get_player_name() or "" local name = puncher:get_player_name() or ""
@ -49,9 +54,12 @@ minetest.register_node("farming:jackolantern", {
minetest.register_node("farming:jackolantern_on", { minetest.register_node("farming:jackolantern_on", {
tiles = { tiles = {
"farming_pumpkin_bottom.png^farming_pumpkin_top.png", "farming_pumpkin_bottom.png", "farming_pumpkin_bottom.png^farming_pumpkin_top.png",
"farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_bottom.png",
"farming_pumpkin_side.png", "farming_pumpkin_side.png^farming_pumpkin_face_on.png" "farming_pumpkin_side.png",
"farming_pumpkin_side.png",
"farming_pumpkin_side.png",
"farming_pumpkin_side.png^farming_pumpkin_face_on.png"
}, },
light_source = minetest.LIGHT_MAX - 1, light_source = minetest.LIGHT_MAX - 1,
paramtype2 = "facedir", paramtype2 = "facedir",
@ -216,7 +224,7 @@ def = {
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,11 +1,12 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- raspberries -- raspberries
minetest.register_craftitem("farming:raspberries", { minetest.register_craftitem("farming:raspberries", {
description = S("Raspberries"), description = S("Raspberries"),
inventory_image = "farming_raspberries.png", inventory_image = "farming_raspberries.png",
groups = {compostability = 65, seed = 2, food_raspberries = 1, food_raspberry = 1, groups = {compostability = 48, seed = 2, food_raspberries = 1, food_raspberry = 1,
food_berry = 1, flammable = 2}, food_berry = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:raspberry_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:raspberry_1")
@ -18,15 +19,15 @@ minetest.register_craftitem("farming:smoothie_raspberry", {
description = S("Raspberry Smoothie"), description = S("Raspberry Smoothie"),
inventory_image = "farming_raspberry_smoothie.png", inventory_image = "farming_raspberry_smoothie.png",
on_use = minetest.item_eat(2, "vessels:drinking_glass"), on_use = minetest.item_eat(2, "vessels:drinking_glass"),
groups = {vessel = 1, drink = 1} groups = {vessel = 1, drink = 1, compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
output = "farming:smoothie_raspberry", output = "farming:smoothie_raspberry",
recipe = { recipe = {
{"default:snow"}, {a.snow},
{"group:food_raspberries"}, {"group:food_raspberries"},
{"vessels:drinking_glass"} {a.drinking_glass}
} }
}) })
@ -83,7 +84,7 @@ farming.registered_plants["farming:raspberries"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,11 +1,12 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- rhubarb -- rhubarb
minetest.register_craftitem("farming:rhubarb", { minetest.register_craftitem("farming:rhubarb", {
description = S("Rhubarb"), description = S("Rhubarb"),
inventory_image = "farming_rhubarb.png", inventory_image = "farming_rhubarb.png",
groups = {compostability = 65, seed = 2, food_rhubarb = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_rhubarb = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:rhubarb_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:rhubarb_1")
end, end,
@ -19,12 +20,10 @@ minetest.register_craftitem("farming:rhubarb_pie", {
on_use = minetest.item_eat(6) on_use = minetest.item_eat(6)
}) })
local tmp = farming.use_utensils and "farming:baking_tray" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:rhubarb_pie", output = "farming:rhubarb_pie",
recipe = { recipe = {
{tmp, "group:food_sugar", ""}, {a.baking_tray, "group:food_sugar", ""},
{"group:food_rhubarb", "group:food_rhubarb", "group:food_rhubarb"}, {"group:food_rhubarb", "group:food_rhubarb", "group:food_rhubarb"},
{"group:food_wheat", "group:food_wheat", "group:food_wheat"} {"group:food_wheat", "group:food_wheat", "group:food_wheat"}
}, },
@ -92,7 +91,7 @@ farming.registered_plants["farming:rhubarb"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- rice seed -- rice seed
minetest.register_node("farming:seed_rice", { minetest.register_node("farming:seed_rice", {
@ -9,7 +10,7 @@ minetest.register_node("farming:seed_rice", {
wield_image = "farming_rice_seed.png", wield_image = "farming_rice_seed.png",
drawtype = "signlike", drawtype = "signlike",
groups = { groups = {
compostability = 65, seed = 1, snappy = 3, attached_node = 1, compostability = 48, seed = 1, snappy = 3, attached_node = 1,
flammable = 4, growing = 1 flammable = 4, growing = 1
}, },
paramtype = "light", paramtype = "light",
@ -27,7 +28,7 @@ minetest.register_node("farming:seed_rice", {
minetest.register_craftitem("farming:rice", { minetest.register_craftitem("farming:rice", {
description = S("Rice"), description = S("Rice"),
inventory_image = "farming_rice.png", inventory_image = "farming_rice.png",
groups = {seed = 2, food_rice = 1, flammable = 2}, groups = {seed = 2, food_rice = 1, flammable = 2, compostability = 65},
}) })
-- dry rice seed to give edible rice -- dry rice seed to give edible rice
@ -43,22 +44,20 @@ minetest.register_craftitem("farming:rice_bread", {
description = S("Rice Bread"), description = S("Rice Bread"),
inventory_image = "farming_rice_bread.png", inventory_image = "farming_rice_bread.png",
on_use = minetest.item_eat(5), on_use = minetest.item_eat(5),
groups = {food_rice_bread = 1, flammable = 2} groups = {food_rice_bread = 1, flammable = 2, compostability = 65}
}) })
minetest.register_craftitem("farming:rice_flour", { minetest.register_craftitem("farming:rice_flour", {
description = S("Rice Flour"), description = S("Rice Flour"),
inventory_image = "farming_rice_flour.png", inventory_image = "farming_rice_flour.png",
groups = {food_rice_flour = 1, flammable = 1} groups = {food_rice_flour = 1, flammable = 1, compostability = 65}
}) })
local tmp = farming.use_utensils and "farming:mortar_pestle" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:rice_flour", output = "farming:rice_flour",
recipe = { recipe = {
{"farming:rice", "farming:rice", "farming:rice"}, {"farming:rice", "farming:rice", "farming:rice"},
{"farming:rice", tmp, ""} {"farming:rice", a.mortar_pestle, ""}
}, },
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
}) })

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
--= A nice addition from Ademant's grain mod :) --= A nice addition from Ademant's grain mod :)
@ -15,20 +16,18 @@ farming.register_plant("farming:rye", {
minetest.override_item("farming:rye", { minetest.override_item("farming:rye", {
description = S("Rye"), description = S("Rye"),
groups = {food_rye = 1, flammable = 4} groups = {food_rye = 1, flammable = 4, compostability = 65}
}) })
minetest.override_item("farming:rye_1", {drop = {}}) minetest.override_item("farming:rye_1", {drop = {}})
minetest.override_item("farming:rye_2", {drop = {}}) minetest.override_item("farming:rye_2", {drop = {}})
minetest.override_item("farming:rye_3", {drop = {}}) minetest.override_item("farming:rye_3", {drop = {}})
local tmp = farming.use_utensils and "farming:mortar_pestle" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:flour", output = "farming:flour",
recipe = { recipe = {
{"farming:rye", "farming:rye", "farming:rye"}, {"farming:rye", "farming:rye", "farming:rye"},
{"farming:rye", tmp, ""} {"farming:rye", a.mortar_pestle, ""}
}, },
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
}) })
@ -45,7 +44,7 @@ farming.register_plant("farming:oat", {
minetest.override_item("farming:oat", { minetest.override_item("farming:oat", {
description = S("Oats"), description = S("Oats"),
groups = {food_oats = 1, flammable = 4} groups = {food_oats = 1, flammable = 4, compostability = 65}
}) })
minetest.override_item("farming:oat_1", {drop = {}}) minetest.override_item("farming:oat_1", {drop = {}})
@ -56,7 +55,7 @@ minetest.register_craft({
output = "farming:flour", output = "farming:flour",
recipe = { recipe = {
{"farming:oat", "farming:oat", "farming:oat"}, {"farming:oat", "farming:oat", "farming:oat"},
{"farming:oat", tmp, ""} {"farming:oat", a.mortar_pestle, ""}
}, },
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
}) })
@ -74,7 +73,7 @@ minetest.register_craft({
output = "farming:flour_multigrain", output = "farming:flour_multigrain",
recipe = { recipe = {
"farming:wheat", "farming:barley", "farming:oat", "farming:wheat", "farming:barley", "farming:oat",
"farming:rye", tmp "farming:rye", a.mortar_pestle
}, },
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
}) })
@ -85,7 +84,7 @@ minetest.register_craftitem("farming:bread_multigrain", {
description = S("Multigrain Bread"), description = S("Multigrain Bread"),
inventory_image = "farming_bread_multigrain.png", inventory_image = "farming_bread_multigrain.png",
on_use = minetest.item_eat(7), on_use = minetest.item_eat(7),
groups = {food_bread = 1, flammable = 2} groups = {food_bread = 1, flammable = 2, compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -1,11 +1,12 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- soy pod -- soy pod
minetest.register_craftitem("farming:soy_pod", { minetest.register_craftitem("farming:soy_pod", {
description = S("Soy Pod"), description = S("Soy Pod"),
inventory_image = "farming_soy_pod.png", inventory_image = "farming_soy_pod.png",
groups = {compostability = 65, seed = 2, food_soy = 1, food_soy_pod = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_soy = 1, food_soy_pod = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:soy_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:soy_1")
end end
@ -28,22 +29,21 @@ minetest.register_node("farming:soy_sauce", {
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
}, },
groups = { groups = {
vessel = 1, food_soy_sauce = 1, dig_immediate = 3, attached_node = 1 vessel = 1, food_soy_sauce = 1, dig_immediate = 3, attached_node = 1,
compostability = 65
}, },
sounds = farming.sounds.node_sound_glass_defaults() sounds = farming.sounds.node_sound_glass_defaults()
}) })
local tmp = farming.use_utensils and "farming:juicer" or ""
-- soy sauce recipe -- soy sauce recipe
minetest.register_craft( { minetest.register_craft( {
output = "farming:soy_sauce", output = "farming:soy_sauce",
recipe = { recipe = {
{"group:food_soy", "group:food_salt", "group:food_soy"}, {"group:food_soy", "group:food_salt", "group:food_soy"},
{tmp, "bucket:bucket_water", "vessels:glass_bottle"} {a.juicer, a.bucket_water, a.glass_bottle}
}, },
replacements = { replacements = {
{"bucket:bucket_water", "bucket:bucket_empty"}, {a.bucket_water, a.bucket_empty},
{"group:food_juicer", "farming:juicer"} {"group:food_juicer", "farming:juicer"}
} }
}) })
@ -64,7 +64,7 @@ minetest.register_node("farming:soy_milk", {
on_use = minetest.item_eat(2, "vessels:drinking_glass"), on_use = minetest.item_eat(2, "vessels:drinking_glass"),
groups = { groups = {
vessel = 1, food_milk_glass = 1, dig_immediate = 3, vessel = 1, food_milk_glass = 1, dig_immediate = 3,
attached_node = 1, drink = 1 attached_node = 1, drink = 1, compostability = 65
}, },
sounds = farming.sounds.node_sound_glass_defaults() sounds = farming.sounds.node_sound_glass_defaults()
}) })
@ -73,11 +73,11 @@ minetest.register_craft( {
output = "farming:soy_milk", output = "farming:soy_milk",
recipe = { recipe = {
{"group:food_soy", "group:food_soy", "group:food_soy"}, {"group:food_soy", "group:food_soy", "group:food_soy"},
{"farming:vanilla_extract", "bucket:bucket_water", "vessels:drinking_glass"} {"farming:vanilla_extract", "bucket:bucket_water", a.drinking_glass}
}, },
replacements = { replacements = {
{"bucket:bucket_water", "bucket:bucket_empty"}, {a.bucket_water, a.bucket_empty},
{"farming:vanilla_extract", "vessels:glass_bottle"} {"farming:vanilla_extract", a.glass_bottle}
} }
}) })
@ -85,17 +85,15 @@ minetest.register_craft( {
minetest.register_craftitem("farming:tofu", { minetest.register_craftitem("farming:tofu", {
description = S("Tofu"), description = S("Tofu"),
inventory_image = "farming_tofu.png", inventory_image = "farming_tofu.png",
groups = {food_tofu = 1, food_meat_raw = 1, flammable = 2}, groups = {food_tofu = 1, food_meat_raw = 1, flammable = 2, compostability = 65},
on_use = minetest.item_eat(3) on_use = minetest.item_eat(3)
}) })
tmp = farming.use_utensils and "farming:baking_tray" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:tofu", output = "farming:tofu",
recipe = { recipe = {
{"group:food_soy", "group:food_soy", "group:food_soy"}, {"group:food_soy", "group:food_soy", "group:food_soy"},
{"group:food_soy", "group:food_soy", tmp} {"group:food_soy", "group:food_soy", a.baking_tray}
}, },
replacements = {{"farming:baking_tray", "farming:baking_tray"}} replacements = {{"farming:baking_tray", "farming:baking_tray"}}
}) })
@ -104,7 +102,7 @@ minetest.register_craft({
minetest.register_craftitem("farming:tofu_cooked", { minetest.register_craftitem("farming:tofu_cooked", {
description = S("Cooked Tofu"), description = S("Cooked Tofu"),
inventory_image = "farming_tofu_cooked.png", inventory_image = "farming_tofu_cooked.png",
groups = {food_meat = 1, flammable = 2}, groups = {food_meat = 1, flammable = 2, compostability = 65},
on_use = minetest.item_eat(6) on_use = minetest.item_eat(6)
}) })
@ -200,7 +198,8 @@ local mg = farming.mapgen == "v6"
def = { def = {
spawn_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_dry_grass", spawn_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_dry_grass",
"default:dirt_with_rainforest_litter", "default:dry_dirt_with_dry_grass"} "default:dirt_with_rainforest_litter", "default:dry_dirt_with_dry_grass",
"mcl_core:dirt_with_grass"}
} }
minetest.register_decoration({ minetest.register_decoration({

View File

@ -5,7 +5,7 @@ local S = farming.translate
minetest.register_craftitem("farming:spinach", { minetest.register_craftitem("farming:spinach", {
description = S("Spinach"), description = S("Spinach"),
inventory_image = "farming_spinach.png", inventory_image = "farming_spinach.png",
groups = {compostability = 65, seed = 2, food_spinach = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_spinach = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:spinach_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:spinach_1")
end, end,
@ -72,7 +72,7 @@ farming.registered_plants["farming:spinach"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = -0.1, offset = -0.1,

View File

@ -6,7 +6,7 @@ minetest.register_craftitem(":ethereal:strawberry", {
description = S("Strawberry"), description = S("Strawberry"),
inventory_image = "ethereal_strawberry.png", inventory_image = "ethereal_strawberry.png",
groups = { groups = {
compostability = 65, seed = 2, food_strawberry = 1, food_berry = 1, flammable = 2 compostability = 48, seed = 2, food_strawberry = 1, food_berry = 1, flammable = 2
}, },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:strawberry_1") return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:strawberry_1")
@ -98,7 +98,7 @@ farming.registered_plants["ethereal:strawberry"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- sunflower -- sunflower
minetest.register_craftitem("farming:sunflower", { minetest.register_craftitem("farming:sunflower", {
@ -16,7 +17,7 @@ minetest.register_node("farming:seed_sunflower", {
wield_image = "farming_sunflower_seeds.png", wield_image = "farming_sunflower_seeds.png",
drawtype = "signlike", drawtype = "signlike",
groups = { groups = {
compostability = 65, seed = 1, snappy = 3, attached_node = 1, growing = 1, compostability = 48, seed = 1, snappy = 3, attached_node = 1, growing = 1,
food_sunflower_seeds = 1, flammable = 2 food_sunflower_seeds = 1, flammable = 2
}, },
paramtype = "light", paramtype = "light",
@ -41,7 +42,7 @@ minetest.register_craft({
minetest.register_craftitem("farming:sunflower_seeds_toasted", { minetest.register_craftitem("farming:sunflower_seeds_toasted", {
description = S("Toasted Sunflower Seeds"), description = S("Toasted Sunflower Seeds"),
inventory_image = "farming_sunflower_seeds_toasted.png", inventory_image = "farming_sunflower_seeds_toasted.png",
groups = {food_sunflower_seeds_toasted = 1, flammable = 2}, groups = {food_sunflower_seeds_toasted = 1, flammable = 2, compostability = 65},
on_use = minetest.item_eat(1) on_use = minetest.item_eat(1)
}) })
@ -68,7 +69,7 @@ minetest.register_node("farming:sunflower_oil", {
}, },
groups = { groups = {
food_oil = 1, vessel = 1, dig_immediate = 3, attached_node = 1, food_oil = 1, vessel = 1, dig_immediate = 3, attached_node = 1,
flammable = 2 flammable = 2, compostability = 65
}, },
sounds = farming.sounds.node_sound_glass_defaults() sounds = farming.sounds.node_sound_glass_defaults()
}) })
@ -78,7 +79,7 @@ minetest.register_craft( {
recipe = { recipe = {
{"group:food_sunflower_seeds", "group:food_sunflower_seeds", "group:food_sunflower_seeds"}, {"group:food_sunflower_seeds", "group:food_sunflower_seeds", "group:food_sunflower_seeds"},
{"group:food_sunflower_seeds", "group:food_sunflower_seeds", "group:food_sunflower_seeds"}, {"group:food_sunflower_seeds", "group:food_sunflower_seeds", "group:food_sunflower_seeds"},
{"group:food_sunflower_seeds", "vessels:glass_bottle", "group:food_sunflower_seeds"} {"group:food_sunflower_seeds", a.glass_bottle, "group:food_sunflower_seeds"}
} }
}) })
@ -86,7 +87,7 @@ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "farming:sunflower_oil", recipe = "farming:sunflower_oil",
burntime = 30, burntime = 30,
replacements = {{"farming:sunflower_oil", "vessels:glass_bottle"}} replacements = {{"farming:sunflower_oil", a.glass_bottle}}
}) })
-- sunflower seed bread -- sunflower seed bread
@ -99,7 +100,13 @@ minetest.register_craftitem("farming:sunflower_bread", {
minetest.register_craft({ minetest.register_craft({
output = "farming:sunflower_bread", output = "farming:sunflower_bread",
recipe = {{"group:food_sunflower_seeds_toasted", "group:food_bread", "group:food_sunflower_seeds_toasted"}} recipe = {
{
"group:food_sunflower_seeds_toasted",
"group:food_bread",
"group:food_sunflower_seeds_toasted"
}
}
}) })
-- sunflower definition -- sunflower definition
@ -172,7 +179,7 @@ farming.registered_plants["farming:sunflower"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -10,7 +10,7 @@ local S = farming.translate
minetest.register_craftitem("farming:tomato", { minetest.register_craftitem("farming:tomato", {
description = S("Tomato"), description = S("Tomato"),
inventory_image = "farming_tomato.png", inventory_image = "farming_tomato.png",
groups = {compostability = 65, seed = 2, food_tomato = 1, flammable = 2}, groups = {compostability = 45, seed = 2, food_tomato = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:tomato_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:tomato_1")
end, end,
@ -21,7 +21,7 @@ minetest.register_craftitem("farming:tomato", {
minetest.register_craftitem("farming:tomato_soup", { minetest.register_craftitem("farming:tomato_soup", {
description = S("Tomato Soup"), description = S("Tomato Soup"),
inventory_image = "farming_tomato_soup.png", inventory_image = "farming_tomato_soup.png",
groups = {flammable = 2}, groups = {flammable = 2, compostability = 65},
on_use = minetest.item_eat(8, "farming:bowl") on_use = minetest.item_eat(8, "farming:bowl")
}) })
@ -110,7 +110,7 @@ farming.registered_plants["farming:tomato"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,11 +1,12 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- vanilla -- vanilla
minetest.register_craftitem("farming:vanilla", { minetest.register_craftitem("farming:vanilla", {
description = S("Vanilla"), description = S("Vanilla"),
inventory_image = "farming_vanilla.png", inventory_image = "farming_vanilla.png",
groups = {compostability = 65, seed = 2, food_vanilla = 1, flammable = 2}, groups = {compostability = 48, seed = 2, food_vanilla = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:vanilla_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:vanilla_1")
end, end,
@ -55,7 +56,7 @@ minetest.register_craft( {
{"group:food_vanilla", "farming:bottle_ethanol", "group:food_water_glass"}, {"group:food_vanilla", "farming:bottle_ethanol", "group:food_water_glass"},
}, },
replacements = { replacements = {
{"group:food_water_glass", "vessels:drinking_glass"} {"group:food_water_glass", a.drinking_glass}
} }
}) })
@ -127,7 +128,7 @@ farming.registered_plants["farming:vanilla"] = {
-- mapgen -- mapgen
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0, offset = 0,

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- wheat seeds -- wheat seeds
minetest.register_node("farming:seed_wheat", { minetest.register_node("farming:seed_wheat", {
@ -78,13 +79,11 @@ minetest.register_craftitem("farming:flour", {
groups = {food_flour = 1, flammable = 1} groups = {food_flour = 1, flammable = 1}
}) })
local tmp = farming.use_utensils and "farming:mortar_pestle" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:flour", output = "farming:flour",
recipe = { recipe = {
{"farming:wheat", "farming:wheat", "farming:wheat"}, {"farming:wheat", "farming:wheat", "farming:wheat"},
{"farming:wheat", tmp, ""} {"farming:wheat", a.mortar_pestle, ""}
}, },
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
}) })
@ -104,54 +103,6 @@ minetest.register_craft({
recipe = "farming:flour" recipe = "farming:flour"
}) })
-- sliced bread
minetest.register_craftitem("farming:bread_slice", {
description = S("Sliced Bread"),
inventory_image = "farming_bread_slice.png",
on_use = minetest.item_eat(1),
groups = {food_bread_slice = 1, flammable = 2}
})
tmp = farming.use_utensils and "farming:cutting_board" or ""
minetest.register_craft({
output = "farming:bread_slice 5",
recipe = {{"farming:bread", tmp}},
replacements = {{"group:food_cutting_board", "farming:cutting_board"}}
})
-- toast
minetest.register_craftitem("farming:toast", {
description = S("Toast"),
inventory_image = "farming_toast.png",
on_use = minetest.item_eat(1),
groups = {food_toast = 1, flammable = 2}
})
minetest.register_craft({
type = "cooking",
cooktime = 3,
output = "farming:toast",
recipe = "farming:bread_slice"
})
-- toast sandwich
minetest.register_craftitem("farming:toast_sandwich", {
description = S("Toast Sandwich"),
inventory_image = "farming_toast_sandwich.png",
on_use = minetest.item_eat(4),
groups = {flammable = 2}
})
minetest.register_craft({
output = "farming:toast_sandwich",
recipe = {
{"farming:bread_slice"},
{"farming:toast"},
{"farming:bread_slice"}
}
})
-- wheat definition -- wheat definition
local def = { local def = {
drawtype = "plantlike", drawtype = "plantlike",

243
food.lua
View File

@ -1,72 +1,55 @@
local S = farming.translate local S = farming.translate
local tmp local a = farming.recipe_items
-- add group function -- sliced bread
local function add_groups(item, groups)
local def = minetest.registered_items[item] minetest.register_craftitem("farming:bread_slice", {
description = S("Sliced Bread"),
inventory_image = "farming_bread_slice.png",
on_use = minetest.item_eat(1),
groups = {food_bread_slice = 1, flammable = 2}
})
if not def then return end minetest.register_craft({
output = "farming:bread_slice 5",
recipe = {{"group:food_bread", a.cutting_board}},
replacements = {{"group:food_cutting_board", "farming:cutting_board"}}
})
local grp = def.groups -- toast
for k, v in pairs(groups) do minetest.register_craftitem("farming:toast", {
grp[k] = v description = S("Toast"),
end inventory_image = "farming_toast.png",
on_use = minetest.item_eat(1),
groups = {food_toast = 1, flammable = 2}
})
minetest.override_item(item, {groups = grp}) minetest.register_craft({
end type = "cooking",
cooktime = 3,
output = "farming:toast",
recipe = "farming:bread_slice"
})
-- item compatibility list -- toast sandwich
local a = {
water_source = "default:water_source",
river_water_source = "default:river_water_source",
bucket_empty = "bucket:bucket_empty",
bucket_water = "bucket:bucket_water",
bucket_river_water = "bucket:bucket_river_water",
drinking_glass = "vessels:drinking_glass",
glass_bottle = "vessels:glass_bottle",
sugar = "farming:sugar",
rose = "flowers:rose",
dye_pink = "dye:pink",
dye_orange = "dye:orange",
bowl = "farming:bowl",
flour = "group:food_flour",
bread = "farming:bread",
cactus = "default:cactus",
}
if farming.mcl then minetest.register_craftitem("farming:toast_sandwich", {
a.water_source = "mcl_core:water_source" description = S("Toast Sandwich"),
a.river_water_source = "mclx_core:river_water_source" inventory_image = "farming_toast_sandwich.png",
a.bucket_empty = "mcl_buckets:bucket_empty" on_use = minetest.item_eat(4),
a.bucket_water = "mcl_buckets:bucket_water" groups = {flammable = 2}
a.bucket_river_water = "mcl_buckets:bucket_river_water" })
a.drinking_glass = "mcl_potions:glass_bottle"
a.glass_bottle = "mcl_potions:glass_bottle"
a.sugar = "mcl_core:sugar"
a.rose = "mcl_flowers:rose_bush"
a.dye_pink = "mcl_dye:pink"
a.dye_orange = "mcl_dye:orange"
a.bowl = "mcl_core:bowl"
a.flour = "mcl_farming:bread"
a.bread = "mcl_farming:bread"
a.cactus = "mcl_core:cactus"
add_groups("mcl_throwing:egg", {food_egg = 1}) minetest.register_craft({
add_groups("mcl_farming:wheat", {food_wheat = 1}) output = "farming:toast_sandwich",
add_groups("mcl_cocoas:cocoa_beans", {food_cocoa = 1}) recipe = {
add_groups("mcl_core:apple", {food_apple = 1}) {"farming:bread_slice"},
add_groups("mcl_core:bowl", {food_bowl = 1}) {"farming:toast"},
add_groups("mcl_mobitems:chicken", {food_chicken_raw = 1}) {"farming:bread_slice"}
add_groups("mcl_mobitems:cooked_chicken", {food_chicken = 1}) }
add_groups("mcl_mushrooms:mushroom_brown", {food_mushroom = 1}) })
add_groups("mcl_farming:carrot_item", {food_carrot = 1})
add_groups("mcl_mobitems:cooked_beef", {food_meat = 1})
add_groups("mcl_mobitems:beef", {food_meat_raw = 1})
add_groups("mcl_farming:potato_item", {food_potato = 1})
end
-- filter sea water into river water -- filter sea water into river water
@ -138,10 +121,6 @@ if farming.mtg then
}) })
end end
if farming.mcl then
add_groups(a.sugar, {food_sugar = 1})
end
minetest.register_node("farming:sugar_cube", { minetest.register_node("farming:sugar_cube", {
description = S("Sugar Cube"), description = S("Sugar Cube"),
tiles = {"farming_sugar_cube.png"}, tiles = {"farming_sugar_cube.png"},
@ -168,7 +147,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:caramel", { minetest.register_craftitem("farming:caramel", {
description = S("Caramel"), description = S("Caramel"),
inventory_image = "farming_caramel.png" inventory_image = "farming_caramel.png",
groups = {compostability = 40}
}) })
minetest.register_craft({ minetest.register_craft({
@ -249,7 +229,7 @@ minetest.register_craft({
-- Salt Crystal -- Salt Crystal
minetest.register_node("farming:salt_crystal", { minetest.register_node("farming:salt_crystal", {
description = ("Salt crystal"), description = S("Salt crystal"),
inventory_image = "farming_salt_crystal.png", inventory_image = "farming_salt_crystal.png",
wield_image = "farming_salt_crystal.png", wield_image = "farming_salt_crystal.png",
drawtype = "plantlike", drawtype = "plantlike",
@ -265,12 +245,10 @@ minetest.register_node("farming:salt_crystal", {
} }
}) })
tmp = farming.use_utensils and "farming:mortar_pestle" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:salt 9", output = "farming:salt 9",
recipe = { recipe = {
{"farming:salt_crystal", tmp} {"farming:salt_crystal", a.mortar_pestle}
}, },
replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}} replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}}
}) })
@ -300,7 +278,10 @@ minetest.register_node("farming:mayonnaise", {
type = "fixed", type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.45, 0.25} fixed = {-0.25, -0.5, -0.25, 0.25, 0.45, 0.25}
}, },
groups = {food_mayonnaise = 1, vessel = 1, dig_immediate = 3, attached_node = 1}, groups = {
compostability = 65, food_mayonnaise = 1, vessel = 1, dig_immediate = 3,
attached_node = 1
},
sounds = farming.sounds.node_sound_glass_defaults() sounds = farming.sounds.node_sound_glass_defaults()
}) })
@ -333,14 +314,12 @@ minetest.register_node("farming:rose_water", {
} }
}) })
tmp = farming.use_utensils and "farming:pot" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:rose_water", output = "farming:rose_water",
recipe = { recipe = {
{a.rose, a.rose, a.rose}, {a.rose, a.rose, a.rose},
{a.rose, a.rose, a.rose}, {a.rose, a.rose, a.rose},
{"group:food_water_glass", tmp, a.glass_bottle} {"group:food_water_glass", a.pot, a.glass_bottle}
}, },
replacements = { replacements = {
{"group:food_water_glass", a.drinking_glass}, {"group:food_water_glass", a.drinking_glass},
@ -353,7 +332,7 @@ minetest.register_craft({
minetest.register_craftitem("farming:turkish_delight", { minetest.register_craftitem("farming:turkish_delight", {
description = S("Turkish Delight"), description = S("Turkish Delight"),
inventory_image = "farming_turkish_delight.png", inventory_image = "farming_turkish_delight.png",
groups = {flammable = 3}, groups = {flammable = 3, compostability = 85},
on_use = minetest.item_eat(2) on_use = minetest.item_eat(2)
}) })
@ -376,7 +355,7 @@ minetest.register_craft({
minetest.register_craftitem("farming:garlic_bread", { minetest.register_craftitem("farming:garlic_bread", {
description = S("Garlic Bread"), description = S("Garlic Bread"),
inventory_image = "farming_garlic_bread.png", inventory_image = "farming_garlic_bread.png",
groups = {flammable = 3}, groups = {flammable = 3, compostability = 65},
on_use = minetest.item_eat(2) on_use = minetest.item_eat(2)
}) })
@ -392,7 +371,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:donut", { minetest.register_craftitem("farming:donut", {
description = S("Donut"), description = S("Donut"),
inventory_image = "farming_donut.png", inventory_image = "farming_donut.png",
on_use = minetest.item_eat(4) on_use = minetest.item_eat(4),
groups = {compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
@ -407,7 +387,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:donut_chocolate", { minetest.register_craftitem("farming:donut_chocolate", {
description = S("Chocolate Donut"), description = S("Chocolate Donut"),
inventory_image = "farming_donut_chocolate.png", inventory_image = "farming_donut_chocolate.png",
on_use = minetest.item_eat(6) on_use = minetest.item_eat(6),
groups = {compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
@ -421,7 +402,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:donut_apple", { minetest.register_craftitem("farming:donut_apple", {
description = S("Apple Donut"), description = S("Apple Donut"),
inventory_image = "farming_donut_apple.png", inventory_image = "farming_donut_apple.png",
on_use = minetest.item_eat(6) on_use = minetest.item_eat(6),
groups = {compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
@ -437,7 +419,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:porridge", { minetest.register_craftitem("farming:porridge", {
description = S("Porridge"), description = S("Porridge"),
inventory_image = "farming_porridge.png", inventory_image = "farming_porridge.png",
on_use = minetest.item_eat(6, a.bowl) on_use = minetest.item_eat(6, a.bowl),
groups = {compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
@ -457,15 +440,14 @@ minetest.register_craft({
minetest.register_craftitem("farming:jaffa_cake", { minetest.register_craftitem("farming:jaffa_cake", {
description = S("Jaffa Cake"), description = S("Jaffa Cake"),
inventory_image = "farming_jaffa_cake.png", inventory_image = "farming_jaffa_cake.png",
on_use = minetest.item_eat(6) on_use = minetest.item_eat(6),
groups = {compostability = 65}
}) })
tmp = farming.use_utensils and "farming:baking_tray" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:jaffa_cake 3", output = "farming:jaffa_cake 3",
recipe = { recipe = {
{tmp, "group:food_egg", "group:food_sugar"}, {a.baking_tray, "group:food_egg", "group:food_sugar"},
{a.flour, "group:food_cocoa", "group:food_orange"}, {a.flour, "group:food_cocoa", "group:food_orange"},
{"group:food_milk", "", ""} {"group:food_milk", "", ""}
}, },
@ -482,16 +464,15 @@ minetest.register_craft({
minetest.register_craftitem("farming:apple_pie", { minetest.register_craftitem("farming:apple_pie", {
description = S("Apple Pie"), description = S("Apple Pie"),
inventory_image = "farming_apple_pie.png", inventory_image = "farming_apple_pie.png",
on_use = minetest.item_eat(6) on_use = minetest.item_eat(6),
groups = {compostability = 75}
}) })
tmp = farming.use_utensils and "farming:baking_tray" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:apple_pie", output = "farming:apple_pie",
recipe = { recipe = {
{a.flour, "group:food_sugar", "group:food_apple"}, {a.flour, "group:food_sugar", "group:food_apple"},
{"", tmp, ""} {"", a.baking_tray, ""}
}, },
replacements = {{"group:food_baking_tray", "farming:baking_tray"}} replacements = {{"group:food_baking_tray", "farming:baking_tray"}}
}) })
@ -501,7 +482,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:cactus_juice", { minetest.register_craftitem("farming:cactus_juice", {
description = S("Cactus Juice"), description = S("Cactus Juice"),
inventory_image = "farming_cactus_juice.png", inventory_image = "farming_cactus_juice.png",
groups = {vessel = 1, drink = 1}, groups = {vessel = 1, drink = 1, compostability = 55},
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
if user then if user then
@ -514,12 +496,10 @@ minetest.register_craftitem("farming:cactus_juice", {
end end
}) })
tmp = farming.use_utensils and "farming:juicer" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:cactus_juice", output = "farming:cactus_juice",
recipe = { recipe = {
{tmp}, {a.juicer},
{a.cactus}, {a.cactus},
{a.drinking_glass} {a.drinking_glass}
}, },
@ -533,15 +513,13 @@ minetest.register_craft({
minetest.register_craftitem("farming:pasta", { minetest.register_craftitem("farming:pasta", {
description = S("Pasta"), description = S("Pasta"),
inventory_image = "farming_pasta.png", inventory_image = "farming_pasta.png",
groups = {food_pasta = 1} groups = {compostability = 65, food_pasta = 1}
}) })
tmp = farming.use_utensils and "farming:mixing_bowl" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:pasta", output = "farming:pasta",
recipe = { recipe = {
{a.flour, "group:food_butter", tmp} {a.flour, "group:food_butter", a.mixing_bowl}
}, },
replacements = {{"group:food_mixing_bowl", "farming:mixing_bowl"}} replacements = {{"group:food_mixing_bowl", "farming:mixing_bowl"}}
}) })
@ -549,7 +527,7 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
output = "farming:pasta", output = "farming:pasta",
recipe = { recipe = {
{a.flour, "group:food_oil", tmp} {a.flour, "group:food_oil", a.mixing_bowl}
}, },
replacements = { replacements = {
{"group:food_mixing_bowl", "farming:mixing_bowl"}, {"group:food_mixing_bowl", "farming:mixing_bowl"},
@ -562,7 +540,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:mac_and_cheese", { minetest.register_craftitem("farming:mac_and_cheese", {
description = S("Mac & Cheese"), description = S("Mac & Cheese"),
inventory_image = "farming_mac_and_cheese.png", inventory_image = "farming_mac_and_cheese.png",
on_use = minetest.item_eat(6, a.bowl) on_use = minetest.item_eat(6, a.bowl),
groups = {compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
@ -577,15 +556,14 @@ minetest.register_craft({
minetest.register_craftitem("farming:spaghetti", { minetest.register_craftitem("farming:spaghetti", {
description = S("Spaghetti"), description = S("Spaghetti"),
inventory_image = "farming_spaghetti.png", inventory_image = "farming_spaghetti.png",
on_use = minetest.item_eat(8) on_use = minetest.item_eat(8),
groups = {compostability = 65}
}) })
tmp = farming.use_utensils and "farming:saucepan" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:spaghetti", output = "farming:spaghetti",
recipe = { recipe = {
{"group:food_pasta", "group:food_tomato", tmp}, {"group:food_pasta", "group:food_tomato", a.saucepan},
{"group:food_garlic_clove", "group:food_garlic_clove", ""} {"group:food_garlic_clove", "group:food_garlic_clove", ""}
}, },
replacements = {{"group:food_saucepan", "farming:saucepan"}} replacements = {{"group:food_saucepan", "farming:saucepan"}}
@ -596,15 +574,14 @@ minetest.register_craft({
minetest.register_craftitem("farming:bibimbap", { minetest.register_craftitem("farming:bibimbap", {
description = S("Bibimbap"), description = S("Bibimbap"),
inventory_image = "farming_bibimbap.png", inventory_image = "farming_bibimbap.png",
on_use = minetest.item_eat(8, a.bowl) on_use = minetest.item_eat(8, a.bowl),
groups = {compostability = 65}
}) })
tmp = farming.use_utensils and "farming:skillet" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:bibimbap", output = "farming:bibimbap",
recipe = { recipe = {
{tmp, "group:food_bowl", "group:food_egg"}, {a.skillet, "group:food_bowl", "group:food_egg"},
{"group:food_rice", "group:food_chicken_raw", "group:food_cabbage"}, {"group:food_rice", "group:food_chicken_raw", "group:food_cabbage"},
{"group:food_carrot", "group:food_chili_pepper", ""} {"group:food_carrot", "group:food_chili_pepper", ""}
}, },
@ -615,7 +592,7 @@ minetest.register_craft({
output = "farming:bibimbap", output = "farming:bibimbap",
type = "shapeless", type = "shapeless",
recipe = { recipe = {
tmp, "group:food_bowl", "group:food_mushroom", a.skillet, "group:food_bowl", "group:food_mushroom",
"group:food_rice", "group:food_cabbage", "group:food_carrot", "group:food_rice", "group:food_cabbage", "group:food_carrot",
"group:food_mushroom", "group:food_chili_pepper" "group:food_mushroom", "group:food_chili_pepper"
}, },
@ -628,6 +605,7 @@ minetest.register_craftitem("farming:burger", {
description = S("Burger"), description = S("Burger"),
inventory_image = "farming_burger.png", inventory_image = "farming_burger.png",
on_use = minetest.item_eat(16), on_use = minetest.item_eat(16),
groups = {compostability = 95}
}) })
minetest.register_craft({ minetest.register_craft({
@ -644,7 +622,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:salad", { minetest.register_craftitem("farming:salad", {
description = S("Salad"), description = S("Salad"),
inventory_image = "farming_salad.png", inventory_image = "farming_salad.png",
on_use = minetest.item_eat(8, a.bowl) on_use = minetest.item_eat(8, a.bowl),
groups = {compostability = 45}
}) })
minetest.register_craft({ minetest.register_craft({
@ -662,7 +641,7 @@ minetest.register_craftitem("farming:smoothie_berry", {
description = S("Triple Berry Smoothie"), description = S("Triple Berry Smoothie"),
inventory_image = "farming_berry_smoothie.png", inventory_image = "farming_berry_smoothie.png",
on_use = minetest.item_eat(6, "vessels:drinking_glass"), on_use = minetest.item_eat(6, "vessels:drinking_glass"),
groups = {vessel = 1, drink = 1} groups = {vessel = 1, drink = 1, compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
@ -681,17 +660,15 @@ minetest.register_craftitem("farming:spanish_potatoes", {
description = S("Spanish Potatoes"), description = S("Spanish Potatoes"),
inventory_image = "farming_spanish_potatoes.png", inventory_image = "farming_spanish_potatoes.png",
on_use = minetest.item_eat(8, a.bowl), on_use = minetest.item_eat(8, a.bowl),
groups = {compostability = 65}
}) })
tmp = farming.use_utensils and "farming:skillet" or ""
minetest.register_craft({ minetest.register_craft({
type = "shapeless",
output = "farming:spanish_potatoes", output = "farming:spanish_potatoes",
recipe = { recipe = {
"group:food_potato", "group:food_parsley", "group:food_potato", {"group:food_potato", "group:food_parsley", "group:food_potato"},
"group:food_egg", a.flour, "group:food_onion", {"group:food_egg", a.flour, "group:food_onion"},
"farming:garlic_clove", "group:food_bowl", tmp {"farming:garlic_clove", "group:food_bowl", a.skillet}
}, },
replacements = {{"group:food_skillet", "farming:skillet"}} replacements = {{"group:food_skillet", "farming:skillet"}}
}) })
@ -701,16 +678,15 @@ minetest.register_craft({
minetest.register_craftitem("farming:potato_omelet", { minetest.register_craftitem("farming:potato_omelet", {
description = S("Potato omelet"), description = S("Potato omelet"),
inventory_image = "farming_potato_omelet.png", inventory_image = "farming_potato_omelet.png",
on_use = minetest.item_eat(6, a.bowl) on_use = minetest.item_eat(6, a.bowl),
groups = {compostability = 65}
}) })
tmp = farming.use_utensils and "farming:skillet" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:potato_omelet", output = "farming:potato_omelet",
recipe = { recipe = {
{"group:food_egg", "group:food_potato", "group:food_onion"}, {"group:food_egg", "group:food_potato", "group:food_onion"},
{tmp, "group:food_bowl", ""} {a.skillet, "group:food_bowl", ""}
}, },
replacements = {{"group:food_skillet", "farming:skillet"}} replacements = {{"group:food_skillet", "farming:skillet"}}
}) })
@ -720,17 +696,16 @@ minetest.register_craft({
minetest.register_craftitem("farming:paella", { minetest.register_craftitem("farming:paella", {
description = S("Paella"), description = S("Paella"),
inventory_image = "farming_paella.png", inventory_image = "farming_paella.png",
on_use = minetest.item_eat(8, a.bowl) on_use = minetest.item_eat(8, a.bowl),
groups = {compostability = 65}
}) })
tmp = farming.use_utensils and "farming:skillet" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:paella", output = "farming:paella",
recipe = { recipe = {
{"group:food_rice", a.dye_orange, "farming:pepper_red"}, {"group:food_rice", a.dye_orange, "farming:pepper_red"},
{"group:food_peas", "group:food_chicken", "group:food_bowl"}, {"group:food_peas", "group:food_chicken", "group:food_bowl"},
{"", tmp, ""} {"", a.skillet, ""}
}, },
replacements = {{"group:food_skillet", "farming:skillet"}} replacements = {{"group:food_skillet", "farming:skillet"}}
}) })
@ -740,7 +715,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:flan", { minetest.register_craftitem("farming:flan", {
description = S("Vanilla Flan"), description = S("Vanilla Flan"),
inventory_image = "farming_vanilla_flan.png", inventory_image = "farming_vanilla_flan.png",
on_use = minetest.item_eat(6) on_use = minetest.item_eat(6),
groups = {compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
@ -763,17 +739,15 @@ minetest.register_craftitem("farming:cheese_vegan", {
description = S("Vegan Cheese"), description = S("Vegan Cheese"),
inventory_image = "farming_cheese_vegan.png", inventory_image = "farming_cheese_vegan.png",
on_use = minetest.item_eat(2), on_use = minetest.item_eat(2),
groups = {food_cheese = 1, flammable = 2} groups = {compostability = 65, food_cheese = 1, flammable = 2}
}) })
tmp = farming.use_utensils and "farming:pot" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:cheese_vegan", output = "farming:cheese_vegan",
recipe = { recipe = {
{"farming:soy_milk", "farming:soy_milk", "farming:soy_milk"}, {"farming:soy_milk", "farming:soy_milk", "farming:soy_milk"},
{"group:food_salt", "group:food_peppercorn", "farming:bottle_ethanol"}, {"group:food_salt", "group:food_peppercorn", "farming:bottle_ethanol"},
{"group:food_gelatin", tmp, ""} {"group:food_gelatin", a.pot, ""}
}, },
replacements = { replacements = {
{"farming:soy_milk", a.drinking_glass .. " 3"}, {"farming:soy_milk", a.drinking_glass .. " 3"},
@ -787,7 +761,7 @@ minetest.register_craft({
recipe = { recipe = {
{"farming:soy_milk", "farming:soy_milk", "farming:soy_milk"}, {"farming:soy_milk", "farming:soy_milk", "farming:soy_milk"},
{"group:food_salt", "group:food_peppercorn", "group:food_lemon"}, {"group:food_salt", "group:food_peppercorn", "group:food_lemon"},
{"group:food_gelatin", tmp, ""} {"group:food_gelatin", a.pot, ""}
}, },
replacements = { replacements = {
{"farming:soy_milk", a.drinking_glass .. " 3"}, {"farming:soy_milk", a.drinking_glass .. " 3"},
@ -801,7 +775,7 @@ minetest.register_craftitem("farming:onigiri", {
description = S("Onigiri"), description = S("Onigiri"),
inventory_image = "farming_onigiri.png", inventory_image = "farming_onigiri.png",
on_use = minetest.item_eat(2), on_use = minetest.item_eat(2),
groups = {flammable = 2} groups = {flammable = 2, compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
@ -818,17 +792,15 @@ minetest.register_craftitem("farming:gyoza", {
description = S("Gyoza"), description = S("Gyoza"),
inventory_image = "farming_gyoza.png", inventory_image = "farming_gyoza.png",
on_use = minetest.item_eat(4), on_use = minetest.item_eat(4),
groups = {flammable = 2} groups = {flammable = 2, compostability = 65}
}) })
tmp = farming.use_utensils and "farming:skillet" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:gyoza 4", output = "farming:gyoza 4",
recipe = { recipe = {
{"group:food_cabbage", "group:food_garlic_clove", "group:food_onion"}, {"group:food_cabbage", "group:food_garlic_clove", "group:food_onion"},
{"group:food_meat_raw", "group:food_salt", a.flour}, {"group:food_meat_raw", "group:food_salt", a.flour},
{"", tmp, ""} {"", a.skillet, ""}
}, },
replacements = { replacements = {
@ -842,15 +814,13 @@ minetest.register_craftitem("farming:mochi", {
description = S("Mochi"), description = S("Mochi"),
inventory_image = "farming_mochi.png", inventory_image = "farming_mochi.png",
on_use = minetest.item_eat(3), on_use = minetest.item_eat(3),
groups = {flammable = 2} groups = {flammable = 2, compostability = 65}
}) })
tmp = farming.use_utensils and "farming:mortar_pestle" or ""
minetest.register_craft({ minetest.register_craft({
output = "farming:mochi", output = "farming:mochi",
recipe = { recipe = {
{"", tmp, ""}, {"", a.mortar_pestle, ""},
{"group:food_rice", "group:food_sugar", "group:food_rice"}, {"group:food_rice", "group:food_sugar", "group:food_rice"},
{"", "farming:glass_water", ""} {"", "farming:glass_water", ""}
}, },
@ -865,7 +835,8 @@ minetest.register_craft({
minetest.register_craftitem("farming:gingerbread_man", { minetest.register_craftitem("farming:gingerbread_man", {
description = S("Gingerbread Man"), description = S("Gingerbread Man"),
inventory_image = "farming_gingerbread_man.png", inventory_image = "farming_gingerbread_man.png",
on_use = minetest.item_eat(2) on_use = minetest.item_eat(2),
groups = {compostability = 85}
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -1,46 +1,67 @@
for i = 4, 5 do -- Override grasses to drop seeds
-- Override default grass and have it drop Wheat and Oat Seeds if minetest.registered_nodes["default:grass_1"] then
minetest.override_item("default:grass_" .. i, { for i = 4, 5 do
drop = {
max_items = 1, minetest.override_item("default:grass_" .. i, {
items = { drop = {
{items = {"farming:seed_wheat"}, rarity = 5}, max_items = 1,
{items = {"farming:seed_oat"},rarity = 5}, items = {
{items = {"default:grass_1"}} {items = {"farming:seed_wheat"}, rarity = 5},
{items = {"farming:seed_oat"},rarity = 5},
{items = {"default:grass_1"}}
}
} }
} })
}) end
end
-- Override default dry grass and have it drop Barley and Rye Seeds if minetest.registered_nodes["default:dry_grass_1"] then
if minetest.registered_nodes["default:dry_grass_1"] then for i = 4, 5 do
minetest.override_item("default:dry_grass_" .. i, { minetest.override_item("default:dry_grass_" .. i, {
drop = { drop = {
max_items = 1, max_items = 1,
items = { items = {
{items = {"farming:seed_barley"}, rarity = 5}, {items = {"farming:seed_barley"}, rarity = 5},
{items = {"farming:seed_rye"},rarity = 5}, {items = {"farming:seed_rye"}, rarity = 5},
{items = {"default:dry_grass_1"}} {items = {"default:dry_grass_1"}}
} }
} }
}) })
end end
end end
-- Override default Jungle Grass and have it drop Cotton and Rice Seeds if minetest.registered_nodes["default:junglegrass"] then
minetest.override_item("default:junglegrass", { minetest.override_item("default:junglegrass", {
drop = { drop = {
max_items = 1, max_items = 1,
items = { items = {
{items = {"farming:seed_cotton"}, rarity = 8}, {items = {"farming:seed_cotton"}, rarity = 8},
{items = {"farming:seed_rice"},rarity = 8}, {items = {"farming:seed_rice"}, rarity = 8},
{items = {"default:junglegrass"}} {items = {"default:junglegrass"}}
}
} }
} })
}) end
if farming.mcl then
minetest.override_item("mcl_flowers:tallgrass", {
drop = {
max_items = 1,
items = {
{items = {"mcl_farming:wheat_seeds"}, rarity = 5},
{items = {"farming:seed_oat"},rarity = 5},
{items = {"farming:seed_barley"}, rarity = 5},
{items = {"farming:seed_rye"},rarity = 5},
{items = {"farming:seed_cotton"}, rarity = 8},
{items = {"farming:seed_rice"},rarity = 8}
}
}
})
end

View File

@ -582,9 +582,11 @@ farming.register_plant = function(name, def)
for i = 1, def.steps do for i = 1, def.steps do
local base_rarity = 1 local base_rarity = 1
if def.steps ~= 1 then if def.steps ~= 1 then
base_rarity = 8 - (i - 1) * 7 / (def.steps - 1) base_rarity = 8 - (i - 1) * 7 / (def.steps - 1)
end end
local drop = { local drop = {
items = { items = {
{items = {mname .. ":" .. pname}, rarity = base_rarity}, {items = {mname .. ":" .. pname}, rarity = base_rarity},
@ -596,7 +598,7 @@ farming.register_plant = function(name, def)
local sel = farming.select local sel = farming.select
local g = { local g = {
snappy = 3, flammable = 2, plant = 1, growing = 1, handy = 1, snappy = 3, flammable = 2, plant = 1, growing = 1,
attached_node = 1, not_in_creative_inventory = 1, attached_node = 1, not_in_creative_inventory = 1,
} }
@ -692,7 +694,7 @@ farming.rice = true
-- Load new global settings if found inside mod folder -- Load new global settings if found inside mod folder
local input = io.open(farming.path.."/farming.conf", "r") local input = io.open(farming.path .. "/farming.conf", "r")
if input then if input then
dofile(farming.path .. "/farming.conf") dofile(farming.path .. "/farming.conf")
input:close() input:close()
@ -700,24 +702,22 @@ end
-- load new world-specific settings if found inside world folder -- load new world-specific settings if found inside world folder
local worldpath = minetest.get_worldpath() local worldpath = minetest.get_worldpath()
input = io.open(worldpath.."/farming.conf", "r") input = io.open(worldpath .. "/farming.conf", "r")
if input then if input then
dofile(worldpath .. "/farming.conf") dofile(worldpath .. "/farming.conf")
input:close() input:close()
end end
-- recipe items
dofile(farming.path .. "/items.lua")
-- important items -- important items
if farming.mtg then if farming.mtg then
dofile(farming.path.."/soil.lua") dofile(farming.path .. "/soil.lua")
dofile(farming.path.."/hoes.lua") dofile(farming.path .. "/hoes.lua")
dofile(farming.path.."/grass.lua")
end
if farming.mcl then
dofile(farming.path.."/mcl_grass.lua")
end end
dofile(farming.path.."/grass.lua")
dofile(farming.path.."/utensils.lua") dofile(farming.path.."/utensils.lua")
-- default crops -- default crops

99
items.lua Normal file
View File

@ -0,0 +1,99 @@
-- add group function
local function add_groups(item, groups)
local def = minetest.registered_items[item]
if not def then return end
local grp = def.groups
for k, v in pairs(groups) do
grp[k] = v
end
minetest.override_item(item, {groups = grp})
end
-- default recipe items
farming.recipe_items = {
-- if utensils are disabled then use blank item
saucepan = farming.use_utensils and "farming:saucepan" or "",
pot = farming.use_utensils and "farming:pot" or "",
baking_tray = farming.use_utensils and "farming:baking_tray" or "",
skillet = farming.use_utensils and "farming:skillet" or "",
mortar_pestle = farming.use_utensils and "farming:mortar_pestle" or "",
cutting_board = farming.use_utensils and "farming:cutting_board" or "",
juicer = farming.use_utensils and "farming:juicer" or "",
mixing_bowl = farming.use_utensils and "farming:mixing_bowl" or "",
water_source = "default:water_source",
river_water_source = "default:river_water_source",
bucket_empty = "bucket:bucket_empty",
bucket_water = "bucket:bucket_water",
bucket_river_water = "bucket:bucket_river_water",
drinking_glass = "vessels:drinking_glass",
glass_bottle = "vessels:glass_bottle",
sugar = "farming:sugar",
rose = "flowers:rose",
dye_red = "dye:red",
dye_pink = "dye:pink",
dye_orange = "dye:orange",
dye_green = "dye:green",
dye_brown = "dye:brown",
dye_blue = "dye:blue",
dye_violet = "dye:violet",
dye_yellow = "dye:yellow",
bowl = "farming:bowl",
flour = "group:food_flour",
bread = "farming:bread",
cactus = "default:cactus",
paper = "default:paper",
snow = "default:snow",
}
-- change recipe items to mineclone variations
if farming.mcl then
local a = farming.recipe_items
a.water_source = "mcl_core:water_source"
a.river_water_source = "mclx_core:river_water_source"
a.bucket_empty = "mcl_buckets:bucket_empty"
a.bucket_water = "mcl_buckets:bucket_water"
a.bucket_river_water = "mcl_buckets:bucket_river_water"
a.drinking_glass = "mcl_potions:glass_bottle"
a.glass_bottle = "mcl_potions:glass_bottle"
a.sugar = "mcl_core:sugar"
a.rose = "mcl_flowers:rose_bush"
a.dye_red = "mcl_dye:red"
a.dye_pink = "mcl_dye:pink"
a.dye_orange = "mcl_dye:orange"
a.dye_green = "mcl_dye:green"
a.dye_brown = "mcl_dye:brown"
a.dye_blue = "mcl_dye:blue"
a.dye_violet = "mcl_dye:violet"
a.dye_yellow = "mcl_dye:yellow"
a.bowl = "mcl_core:bowl"
a.flour = "mcl_farming:bread"
a.bread = "mcl_farming:bread"
a.cactus = "mcl_core:cactus"
a.paper = "mcl_core:paper"
a.snow = "mcl_throwing:snowball"
add_groups("mcl_core:sugar", {food_sugar = 1})
add_groups("mcl_throwing:egg", {food_egg = 1})
add_groups("mcl_farming:wheat", {food_wheat = 1})
add_groups("mcl_cocoas:cocoa_beans", {food_cocoa = 1})
add_groups("mcl_core:apple", {food_apple = 1})
add_groups("mcl_core:bowl", {food_bowl = 1})
add_groups("mcl_mobitems:chicken", {food_chicken_raw = 1})
add_groups("mcl_mobitems:cooked_chicken", {food_chicken = 1})
add_groups("mcl_mushrooms:mushroom_brown", {food_mushroom = 1})
add_groups("mcl_farming:carrot_item", {food_carrot = 1})
add_groups("mcl_mobitems:cooked_beef", {food_meat = 1})
add_groups("mcl_mobitems:beef", {food_meat_raw = 1})
add_groups("mcl_farming:potato_item", {food_potato = 1})
add_groups("mcl_farming:bread", {food_bread = 1})
end

View File

@ -1,176 +1,177 @@
# textdomain: farming # textdomain: farming
Artichoke=
Asparagus=
Barley Seed=Semilla de cebada
Barley=Cebada
Green Beans=Frijoles verdes
Bean Pole (place on soil before planting beans)=Base de frijol (colocar en el suelo antes de plantar frijoles)
Beetroot=Remolacha
Beetroot Soup=Sopa de remolacha
Blackberries=
Wild Blueberries=Arándanos silvestres
Blueberry Muffin=Muffin de arándanos
Blueberry Pie=Pastel de arándanos
Cabbage=Repollo
Carrot=Zanahoria
Carrot Juice=Jugo de zanahoria
Golden Carrot=Zanahoria dorada
Chili Pepper=Ají picante
Bowl of Chili=Tazón de chili
Chili Powder=
Raw Cocoa Beans=
Cocoa Beans=Granos de cacao
Cookie=Galleta
Bar of Dark Chocolate=Barra de chocolate negro
Chocolate Block=Bloque de chocolate
Coffee Beans=Granos de café
Cup of Coffee=Taza de café
Banana=Banana Banana=Banana
Banana Leaves=Hojas de banana Banana Leaves=Hojas de Banana
Orange=Naranja Orange=Naranja
Corn=Maíz Artichoke=Alcachofa
Corn on the Cob=Mazorca de maíz Asparagus=Esparragos
Popcorn= Barley Seed=Semillas de Cebada
Cornstarch=Almidón de maíz Barley=Cebada
Bottle of Ethanol=Botella de etanol Green Beans=Frijoles
Wild Cotton=Algodón salvaje Bean Pole (place on soil before planting beans)=Varas para frijoles (colocar antes de plantar frijoles)
Cotton Seed=Semilla de algodón Beetroot=Remolacha
Beetroot Soup=Sopa de Remolacha
Blackberries=Zarzamoras
Wild Blueberries=Arándanos
Blueberry Muffin=Bizcocho de Arándanos
Blueberry Pie=Pastel de Arándanos
Cabbage=Coliflor
Carrot=Zanahoria
Carrot Juice=Zumo de Zanahoria
Golden Carrot=Zanahoria Dorada
Chili Pepper=Guindilla
Bowl of Chili=Tazón de chile
Chili Powder=Chile en polvo
Raw Cocoa Beans=Granos de Cacao Verde
Cocoa Beans=Granos de Cacao
Cookie=Galleta
Bar of Dark Chocolate=Barra de Chocolate amargo
Chocolate Block=Bloque de Chocolate
Coffee Beans=Granos de Café
Cup of Coffee=Taza de Café
Corn=Mazorca de Maiz
Corn on the Cob=Mazorca Frita
Popcorn=Palomitas
Cornstarch=Maicena
Bottle of Ethanol=Botella de Etanol
Wild Cotton=Algodón silvestre
Cotton Seed=Semillas de Algodón
Cotton=Algodón Cotton=Algodón
String=Guita String=Cuerda
Cucumber=Pepino Cucumber=Pepino
Eggplant= Eggplant=Berenjena
Glass of Water= Garlic clove=Diente de Ajo
Sugar=Azúcar
Sugar Cube=
Caramel=
Salt=Sal
Mayonnaise=
Rose Water=Agua de rosa
Turkish Delight=Delicia turca
Garlic Bread=Pan de ajo
Donut=Dona
Chocolate Donut=Dona de chocolate
Apple Donut=Dona de manzana
Porridge=Papilla
Jaffa Cake=Pastel de jaffa
Apple Pie=Pastel de manzana
Cactus Juice=Jugo de cactus
Pasta=Pasta
Mac & Cheese=
Spaghetti=Espaguetis
Bibimbap=
Burger=
Salad=
Triple Berry Smoothie=
Spanish Potatoes=
Potato omelet=
Paella=
Vanilla Flan=
Vegan Cheese=
Onigiri=
Gyoza=
Mochi=
Gingerbread Man=
Garlic clove=Diente de ajo
Garlic=Ajo Garlic=Ajo
Garlic Braid=Trenza de ajo Garlic Braid=Ristra de Ajos
Ginger= Ginger=Jengibre
Grapes=Uvas Grapes=Uvas
Trellis (place on soil before planting grapes)=Enrejado (colocar en el suelo antes de plantar las uvas) Trellis (place on soil before planting grapes)=Emparrado (colocar antes de sembrar uvas)
Hemp Seed=Semilla de cáñamo Hemp Seed=Semillas de Cáñamo
Hemp Leaf=Hoja de cáñamo Hemp Leaf=Hoja de Cáñamo
Bottle of Hemp Oil=Botella de aceite de cáñamo Bottle of Hemp Oil=Aceite de Cáñamo
Hemp Fibre=Fibra de cáñamo Hemp Fibre=Fibra de Cáñamo
Hemp Block=Bloque de cáñamo Hemp Block=Bloque de Cáñamo
Hemp Rope=Cuerda de cáñamo Hemp Rope=Cuerda de Cáñamo
Hoe=Azadón Lettuce=Lechuga
Wooden Hoe=Azadón de madera Melon Slice=Rodaja de Sandia
Stone Hoe=Azadón de piedra Melon=Sandia
Steel Hoe=Azadón de acero Mint Seeds=Semillas de Menta
Bronze Hoe=Azadón de bronze Mint Leaf=Hoja de Menta
Mese Hoe=Azadón de mese Mint Tea=Té de Menta
Diamond Hoe=Azadón de diamante
Wood Hoe=
Hoe Bomb (use or throw on grassy areas to hoe land)=Azadón bomba (usar o tirar en áreas verdes para rozar)
Mithril Scythe (Use to harvest and replant crops)=
Seed=Semilla
Lettuce=
Melon Slice=Rebanada de sandía
Melon=Sandía
Mint Seeds=Semilla de menta
Mint Leaf=Hoja de menta
Mint Tea=Té de menta
Onion=Cebolla Onion=Cebolla
Onion Soup=Sopa de cebolla Onion Soup=Sopa de Cebolla
Parsley= Parsley=Perejil
Pea Pod=Vaina de guisantes Pea Pod=Vaina de Guisantes
Pea Soup=Sopa de guisantes Pea Soup=Sopa de Guisantes
Peppercorn=Grano de pimienta Peppercorn=Pimienta en Grano
Green Pepper= Green Pepper=Pimiento Verde
Yellow Pepper= Yellow Pepper=Pimiento Amarillo
Red Pepper= Red Pepper=Pimiento Rojo
Ground Pepper=Pimienta molida Ground Pepper=Pimienta Molida
Pineapple Top=Tapa de piña Pineapple Top=Semilla de Piña
Pineapple=Piña Pineapple=Piña
Pineapple Ring=Anillo de piña Pineapple Ring=Rodaja de Piña
Pineapple Juice=Jugo de piña Pineapple Juice=Zumito de Piña
Potato=Patata Potato=Patata
Baked Potato=Patata al horno Baked Potato=Papa Asada
Cucumber and Potato Salad=Ensalada de pepino y patata Cucumber and Potato Salad=Ensalada de Pepino y Patatas
Pumpkin Slice=Pedazo de calabaza Pumpkin Slice=Trozo de Calabaza
Jack 'O Lantern (punch to turn on and off)=Farol de Jack (golpea para encender o apagar) Jack 'O Lantern (punch to turn on and off)=Linterna Calabaza (golpear para encender o apagar)
Scarecrow Bottom=Espantapájaros abajo Scarecrow Bottom=Cuerpo de Espantapájaros
Pumpkin Bread=Pan de calabaza Pumpkin Bread=Pan de Calabaza
Pumpkin Dough=Masa de calabaza Pumpkin Dough=Pasta de Calabaza
Pumpkin=Calabaza Pumpkin=Calabaza
Raspberries=Frambuesa Raspberries=Frambuesas
Raspberry Smoothie=Batido de frambuesa Raspberry Smoothie=Crema de Frambuesas
Rhubarb=Ruibarbo Rhubarb=Ruibarbo
Rhubarb Pie=Pastel de ruibarbo Rhubarb Pie=Bizcocho de Ruibarbo
Rice Seed= Rice Seed=Granos de Arroz
Rice=Arroz Rice=Arroz
Rice Bread=Pan de arroz Rice Bread=Pan de Arroz
Rice Flour=Harina de arroz Rice Flour=Harina de Arroz
Rye seed=Semilla de centeno Rye seed=Semillas de Centeno
Rye=Centeno Rye=Centeno
Oat seed=Semilla de avena Oat seed=Semillas de Avena
Oats=Avena Oats=Avena
Multigrain Flour=Harina multigrano Multigrain Flour=Harina Multigrano
Multigrain Bread=Pan multicereales Multigrain Bread=Pan Multigrano
Savanna Soil=Suelo de sabana Soy Pod=Vaina de Soja
Wet Savanna Soil=Suelo humedo de savana Soy Sauce=Aceite de Soja
Soil=Suelo Soy Milk=Leche de Soja
Wet Soil=Suelo mojado Tofu=Tofu
Soy Pod= Cooked Tofu=Tofu Cocinado
Soy Sauce= Spinach=Espinacas
Soy Milk=
Tofu=
Cooked Tofu=
Spinach=
Strawberry=Fresa Strawberry=Fresa
Sunflower= Sunflower=Girasol
Sunflower Seeds= Sunflower Seeds=Semillas de Girasol
Toasted Sunflower Seeds= Toasted Sunflower Seeds=Pipas de Girasol
Bottle of Sunflower Oil= Bottle of Sunflower Oil=Aceite de Girasol
Sunflower Seed Bread= Sunflower Seed Bread=Pan con Pipas
Tomato=Tomate Tomato=Tomate
Tomato Soup= Tomato Soup=Sopa de Tomate
Wooden Bowl=Cuenco de madera Vanilla=Vainilla
Saucepan=Cacerola Vanilla Extract=Extracto de Vainilla
Cooking Pot=Olla Wheat Seed=Semillas de Trigo
Baking Tray=Bandeja de hornear
Skillet=Sarten
Mortar and Pestle=Mortero y maja
Cutting Board=Tabla de cortar
Juicer=Exprimidor
Glass Mixing Bowl=Tazón de vidrio para mezclar
Vanilla=
Vanilla Extract=
Wheat Seed=Semilla de trigo
Wheat=Trigo Wheat=Trigo
Straw=Paja Straw=Heno
Flour=Harina Flour=Harina
Bread=Pan Bread=Pan
Sliced Bread=Pan rebanado Sliced Bread=Rebanada de Pan
Toast=Tostadas Toast=Tostada
Toast Sandwich=Emparedado de tostadas Toast Sandwich=Bocadillo de Pan
Glass of Water=Vaso de Agua
Sugar=Azucar
Sugar Cube=Bloque de Azucar
Caramel=Caramelo
Salt=Sal
Salt crystal=Cristal de Sal
Mayonnaise=Mayonesa
Rose Water=Agua de Rosas
Turkish Delight=Delicias Turcas
Garlic Bread=Pan con Ajito
Donut=Rosquilla
Chocolate Donut=Rosquilla de Chocolate
Apple Donut=Rosquilla de Manzana
Porridge=Gachas
Jaffa Cake=Galleta Jaffa
Apple Pie=Pastel de Manzana
Cactus Juice=Zumo de Cactus
Pasta=Pasta
Mac & Cheese=Pasta con queso
Spaghetti=Espaguetis
Bibimbap=Bibimbap
Burger=Hamburguesa
Salad=Ensalada
Triple Berry Smoothie=Helado Multifrutas
Spanish Potatoes=Tortilla Española
Potato omelet=Tortilla de Patatas
Paella=Paella
Vanilla Flan=Flan de Vainilla
Vegan Cheese=Queso Vegano
Onigiri=Onigiri
Gyoza=Empanadilla Japonesa
Mochi=Mochi
Gingerbread Man=Moñequito de Jengibre
Hoe=Azada
Wooden Hoe=Azada de Madera
Stone Hoe=Azada de Piedra
Steel Hoe=Azada de Acero
Bronze Hoe=Azada de Bronce
Mese Hoe=Azada de Mese
Diamond Hoe=Azada de Diamante
Wood Hoe=Azada de Madera
Hoe Bomb (use or throw on grassy areas to hoe land)=Bomba Azada (usar o lanzar a tierra para ararla)
Mithril Scythe (Use to harvest and replant crops)=Guadaña de Mithril
Seed=Semilla
Savanna Soil=Tierra de Cultivo de Sabana
Wet Savanna Soil=Tierra de Cultivo de Sabana Humeda
Soil=Tierra de Cultivo
Wet Soil=Tierra de Cultivo Humeda
Wooden Bowl=Cuenco de Madera
Saucepan=Cazo
Cooking Pot=Olla
Baking Tray=Bandeja para Hornear
Skillet=Sartén
Mortar and Pestle=Mortero
Cutting Board=Tabla de cortar
Juicer=Exprimidor
Glass Mixing Bowl=Bol de Mezcla

View File

@ -1,4 +1,7 @@
# textdomain: farming # textdomain: farming
Banana=
Banana Leaves=
Orange=
Artichoke= Artichoke=
Asparagus= Asparagus=
Barley Seed= Barley Seed=
@ -25,9 +28,6 @@ Bar of Dark Chocolate=
Chocolate Block= Chocolate Block=
Coffee Beans= Coffee Beans=
Cup of Coffee= Cup of Coffee=
Banana=
Banana Leaves=
Orange=
Corn= Corn=
Corn on the Cob= Corn on the Cob=
Popcorn= Popcorn=
@ -39,38 +39,6 @@ Cotton=
String= String=
Cucumber= Cucumber=
Eggplant= Eggplant=
Glass of Water=
Sugar=
Sugar Cube=
Caramel=
Salt=
Mayonnaise=
Rose Water=
Turkish Delight=
Garlic Bread=
Donut=
Chocolate Donut=
Apple Donut=
Porridge=
Jaffa Cake=
Apple Pie=
Cactus Juice=
Pasta=
Mac & Cheese=
Spaghetti=
Bibimbap=
Burger=
Salad=
Triple Berry Smoothie=
Spanish Potatoes=
Potato omelet=
Paella=
Vanilla Flan=
Vegan Cheese=
Onigiri=
Gyoza=
Mochi=
Gingerbread Man=
Garlic clove= Garlic clove=
Garlic= Garlic=
Garlic Braid= Garlic Braid=
@ -83,17 +51,6 @@ Bottle of Hemp Oil=
Hemp Fibre= Hemp Fibre=
Hemp Block= Hemp Block=
Hemp Rope= Hemp Rope=
Hoe=
Wooden Hoe=
Stone Hoe=
Steel Hoe=
Bronze Hoe=
Mese Hoe=
Diamond Hoe=
Wood Hoe=
Hoe Bomb (use or throw on grassy areas to hoe land)=
Mithril Scythe (Use to harvest and replant crops)=
Seed=
Lettuce= Lettuce=
Melon Slice= Melon Slice=
Melon= Melon=
@ -137,10 +94,6 @@ Oat seed=
Oats= Oats=
Multigrain Flour= Multigrain Flour=
Multigrain Bread= Multigrain Bread=
Savanna Soil=
Wet Savanna Soil=
Soil=
Wet Soil=
Soy Pod= Soy Pod=
Soy Sauce= Soy Sauce=
Soy Milk= Soy Milk=
@ -155,15 +108,6 @@ Bottle of Sunflower Oil=
Sunflower Seed Bread= Sunflower Seed Bread=
Tomato= Tomato=
Tomato Soup= Tomato Soup=
Wooden Bowl=
Saucepan=
Cooking Pot=
Baking Tray=
Skillet=
Mortar and Pestle=
Cutting Board=
Juicer=
Glass Mixing Bowl=
Vanilla= Vanilla=
Vanilla Extract= Vanilla Extract=
Wheat Seed= Wheat Seed=
@ -174,3 +118,60 @@ Bread=
Sliced Bread= Sliced Bread=
Toast= Toast=
Toast Sandwich= Toast Sandwich=
Glass of Water=
Sugar=
Sugar Cube=
Caramel=
Salt=
Salt crystal=
Mayonnaise=
Rose Water=
Turkish Delight=
Garlic Bread=
Donut=
Chocolate Donut=
Apple Donut=
Porridge=
Jaffa Cake=
Apple Pie=
Cactus Juice=
Pasta=
Mac & Cheese=
Spaghetti=
Bibimbap=
Burger=
Salad=
Triple Berry Smoothie=
Spanish Potatoes=
Potato omelet=
Paella=
Vanilla Flan=
Vegan Cheese=
Onigiri=
Gyoza=
Mochi=
Gingerbread Man=
Hoe=
Wooden Hoe=
Stone Hoe=
Steel Hoe=
Bronze Hoe=
Mese Hoe=
Diamond Hoe=
Wood Hoe=
Hoe Bomb (use or throw on grassy areas to hoe land)=
Mithril Scythe (Use to harvest and replant crops)=
Seed=
Savanna Soil=
Wet Savanna Soil=
Soil=
Wet Soil=
Wooden Bowl=
Saucepan=
Cooking Pot=
Baking Tray=
Skillet=
Mortar and Pestle=
Cutting Board=
Juicer=
Glass Mixing Bowl=

View File

@ -1,16 +0,0 @@
-- Override mcl grass and have it drop Wheat and Oat Seeds
minetest.override_item("mcl_flowers:tallgrass", {
drop = {
max_items = 1,
items = {
{items = {"mcl_farming:wheat_seeds"}, rarity = 5},
{items = {"farming:seed_oat"},rarity = 5},
{items = {"farming:seed_barley"}, rarity = 5},
{items = {"farming:seed_rye"},rarity = 5},
{items = {"farming:seed_cotton"}, rarity = 8},
{items = {"farming:seed_rice"},rarity = 8}
}
}
})