more mineclone compatible recipes

This commit is contained in:
tenplus1 2023-09-02 08:13:32 +01:00
parent cca92063c4
commit 0d52c5344d
5 changed files with 41 additions and 29 deletions

View File

@ -8,13 +8,6 @@ local alias = function(orig, new)
minetest.register_alias(orig, new) minetest.register_alias(orig, new)
end end
--= Overrides (add food_* group to apple and brown mushroom)
minetest.override_item("default:apple", {
groups = {food_apple = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
leafdecay = 3, leafdecay_drop = 1}
})
--= Aliases --= Aliases
-- Banana -- Banana

View File

@ -72,8 +72,8 @@ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "farming:flour_multigrain", output = "farming:flour_multigrain",
recipe = { recipe = {
"farming:wheat", "farming:barley", "farming:oat", "group:food_wheat", "group:food_barley", "group:food_oats",
"farming:rye", a.mortar_pestle "group:food_rye", a.mortar_pestle
}, },
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
}) })

View File

@ -8,7 +8,7 @@ minetest.register_craftitem("farming:bread_slice", {
description = S("Sliced Bread"), description = S("Sliced Bread"),
inventory_image = "farming_bread_slice.png", inventory_image = "farming_bread_slice.png",
on_use = minetest.item_eat(1), on_use = minetest.item_eat(1),
groups = {food_bread_slice = 1, flammable = 2} groups = {food_bread_slice = 1, flammable = 2, compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
@ -23,7 +23,7 @@ minetest.register_craftitem("farming:toast", {
description = S("Toast"), description = S("Toast"),
inventory_image = "farming_toast.png", inventory_image = "farming_toast.png",
on_use = minetest.item_eat(1), on_use = minetest.item_eat(1),
groups = {food_toast = 1, flammable = 2} groups = {food_toast = 1, flammable = 2, compostability = 65}
}) })
minetest.register_craft({ minetest.register_craft({
@ -39,7 +39,7 @@ minetest.register_craftitem("farming:toast_sandwich", {
description = S("Toast Sandwich"), description = S("Toast Sandwich"),
inventory_image = "farming_toast_sandwich.png", inventory_image = "farming_toast_sandwich.png",
on_use = minetest.item_eat(4), on_use = minetest.item_eat(4),
groups = {flammable = 2} groups = {flammable = 2, compostability = 85}
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -52,9 +52,16 @@ farming.recipe_items = {
paper = "default:paper", paper = "default:paper",
snow = "default:snow", snow = "default:snow",
string = "farming:string", string = "farming:string",
wool = "wool:white" wool = "wool:white",
steel_ingot = "default:steel_ingot",
clay_brick = "default:clay_brick",
stone = "default:stone",
glass = "default:glass",
} }
add_groups("default:apple", {food_apple = 1})
-- change recipe items to mineclone variations -- change recipe items to mineclone variations
if farming.mcl then if farming.mcl then
@ -78,13 +85,17 @@ if farming.mcl then
a.dye_violet = "mcl_dye:violet" a.dye_violet = "mcl_dye:violet"
a.dye_yellow = "mcl_dye:yellow" a.dye_yellow = "mcl_dye:yellow"
a.bowl = "mcl_core:bowl" a.bowl = "mcl_core:bowl"
a.flour = "mcl_farming:bread" -- a.flour = "mcl_farming:bread"
a.bread = "mcl_farming:bread" a.bread = "mcl_farming:bread"
a.cactus = "mcl_core:cactus" a.cactus = "mcl_core:cactus"
a.paper = "mcl_core:paper" a.paper = "mcl_core:paper"
a.snow = "mcl_throwing:snowball" a.snow = "mcl_throwing:snowball"
a.string = "mcl_mobitems:string" a.string = "mcl_mobitems:string"
a.wool = "mcl_wool:white" a.wool = "mcl_wool:white"
a.steel_ingot = "mcl_core:iron_ingot"
a.clay_brick = "mcl_core:clay_lump"
a.stone = "mcl_core:stone"
a.glass = "mcl_core:glass"
add_groups("mcl_core:sugar", {food_sugar = 1}) add_groups("mcl_core:sugar", {food_sugar = 1})
add_groups("mcl_throwing:egg", {food_egg = 1}) add_groups("mcl_throwing:egg", {food_egg = 1})
@ -100,4 +111,11 @@ if farming.mcl then
add_groups("mcl_mobitems:beef", {food_meat_raw = 1}) add_groups("mcl_mobitems:beef", {food_meat_raw = 1})
add_groups("mcl_farming:potato_item", {food_potato = 1}) add_groups("mcl_farming:potato_item", {food_potato = 1})
add_groups("mcl_farming:bread", {food_bread = 1}) add_groups("mcl_farming:bread", {food_bread = 1})
add_groups("mcl_mobitems:milk_bucket", {food_milk = 1})
add_groups("mcl_ocean:dried_kelp", {food_seaweed = 1})
-- add missing food groups to current items so recipes work
add_groups("mcl_dye:yellow", {food_lemon = 1, food_banana = 1})
add_groups("mcl_dye:orange", {food_orange = 1})
add_groups("mcl_flowers:sunflower", {food_olive_oil = 1, food_butter = 1})
end end

View File

@ -1,5 +1,6 @@
local S = farming.translate local S = farming.translate
local a = farming.recipe_items
-- wooden bowl -- wooden bowl
@ -34,7 +35,7 @@ minetest.register_craftitem("farming:saucepan", {
minetest.register_craft({ minetest.register_craft({
output = "farming:saucepan", output = "farming:saucepan",
recipe = { recipe = {
{"default:steel_ingot", "", ""}, {a.steel_ingot, "", ""},
{"", "group:stick", ""} {"", "group:stick", ""}
} }
}) })
@ -50,8 +51,8 @@ minetest.register_craftitem("farming:pot", {
minetest.register_craft({ minetest.register_craft({
output = "farming:pot", output = "farming:pot",
recipe = { recipe = {
{"group:stick", "default:steel_ingot", "default:steel_ingot"}, {"group:stick", a.steel_ingot, a.steel_ingot},
{"", "default:steel_ingot", "default:steel_ingot"} {"", a.steel_ingot, a.steel_ingot}
} }
}) })
@ -66,9 +67,9 @@ minetest.register_craftitem("farming:baking_tray", {
minetest.register_craft({ minetest.register_craft({
output = "farming:baking_tray", output = "farming:baking_tray",
recipe = { recipe = {
{"default:clay_brick", "default:clay_brick", "default:clay_brick"}, {a.clay_brick, a.clay_brick, a.clay_brick},
{"default:clay_brick", "", "default:clay_brick"}, {a.clay_brick, "", a.clay_brick},
{"default:clay_brick", "default:clay_brick", "default:clay_brick"} {a.clay_brick, a.clay_brick, a.clay_brick}
} }
}) })
@ -83,8 +84,8 @@ minetest.register_craftitem("farming:skillet", {
minetest.register_craft({ minetest.register_craft({
output = "farming:skillet", output = "farming:skillet",
recipe = { recipe = {
{"default:steel_ingot", "", ""}, {a.steel_ingot, "", ""},
{"", "default:steel_ingot", ""}, {"", a.steel_ingot, ""},
{"", "", "group:stick"} {"", "", "group:stick"}
} }
}) })
@ -100,8 +101,8 @@ minetest.register_craftitem("farming:mortar_pestle", {
minetest.register_craft({ minetest.register_craft({
output = "farming:mortar_pestle", output = "farming:mortar_pestle",
recipe = { recipe = {
{"default:stone", "group:stick", "default:stone"}, {a.stone, "group:stick", a.stone},
{"", "default:stone", ""} {"", a.stone, ""}
} }
}) })
@ -116,7 +117,7 @@ minetest.register_craftitem("farming:cutting_board", {
minetest.register_craft({ minetest.register_craft({
output = "farming:cutting_board", output = "farming:cutting_board",
recipe = { recipe = {
{"default:steel_ingot", "", ""}, {a.steel_ingot, "", ""},
{"", "group:stick", ""}, {"", "group:stick", ""},
{"", "", "group:wood"} {"", "", "group:wood"}
} }
@ -133,8 +134,8 @@ minetest.register_craftitem("farming:juicer", {
minetest.register_craft({ minetest.register_craft({
output = "farming:juicer", output = "farming:juicer",
recipe = { recipe = {
{"", "default:stone", ""}, {"", a.stone, ""},
{"default:stone", "", "default:stone"} {a.stone, "", a.stone}
} }
}) })
@ -149,8 +150,8 @@ minetest.register_craftitem("farming:mixing_bowl", {
minetest.register_craft({ minetest.register_craft({
output = "farming:mixing_bowl", output = "farming:mixing_bowl",
recipe = { recipe = {
{"default:glass", "group:stick", "default:glass"}, {a.glass, "group:stick", a.glass},
{"", "default:glass", ""} {"", a.glass, ""}
} }
}) })