mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-07-02 16:20:42 +02:00
most recipes work with mineclone
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
|
||||
local S = farming.translate
|
||||
local a = farming.recipe_items
|
||||
|
||||
-- wheat seeds
|
||||
minetest.register_node("farming:seed_wheat", {
|
||||
@ -78,13 +79,11 @@ minetest.register_craftitem("farming:flour", {
|
||||
groups = {food_flour = 1, flammable = 1}
|
||||
})
|
||||
|
||||
local tmp = farming.use_utensils and "farming:mortar_pestle" or ""
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:flour",
|
||||
recipe = {
|
||||
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
||||
{"farming:wheat", tmp, ""}
|
||||
{"farming:wheat", a.mortar_pestle, ""}
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
@ -104,54 +103,6 @@ minetest.register_craft({
|
||||
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
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
|
Reference in New Issue
Block a user