2019-01-06 11:28:24 +01:00
|
|
|
|
2023-08-14 09:22:28 +02:00
|
|
|
local S = farming.translate
|
2019-01-24 12:38:21 +01:00
|
|
|
|
2019-01-06 11:28:24 +01:00
|
|
|
--= A nice addition from Ademant's grain mod :)
|
|
|
|
|
|
|
|
-- Rye
|
|
|
|
|
|
|
|
farming.register_plant("farming:rye", {
|
2020-04-26 20:34:43 +02:00
|
|
|
description = S("Rye seed"),
|
2019-01-06 11:28:24 +01:00
|
|
|
paramtype2 = "meshoptions",
|
|
|
|
inventory_image = "farming_rye_seed.png",
|
|
|
|
steps = 8,
|
2020-07-02 15:31:12 +02:00
|
|
|
place_param2 = 3
|
2019-01-06 11:28:24 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("farming:rye", {
|
2020-04-26 20:34:43 +02:00
|
|
|
description = S("Rye"),
|
2019-01-06 11:28:24 +01:00
|
|
|
groups = {food_rye = 1, flammable = 4}
|
|
|
|
})
|
|
|
|
|
2021-07-11 10:08:50 +02:00
|
|
|
minetest.override_item("farming:rye_1", {drop = {}})
|
|
|
|
minetest.override_item("farming:rye_2", {drop = {}})
|
|
|
|
minetest.override_item("farming:rye_3", {drop = {}})
|
|
|
|
|
2023-07-13 19:07:25 +02:00
|
|
|
local tmp = farming.use_utensils and "farming:mortar_pestle" or ""
|
|
|
|
|
2019-01-06 11:28:24 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "farming:flour",
|
|
|
|
recipe = {
|
2021-05-04 10:06:08 +02:00
|
|
|
{"farming:rye", "farming:rye", "farming:rye"},
|
2023-07-13 19:07:25 +02:00
|
|
|
{"farming:rye", tmp, ""}
|
2019-01-06 11:28:24 +01:00
|
|
|
},
|
2020-07-02 15:31:12 +02:00
|
|
|
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
2019-01-06 11:28:24 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Oats
|
|
|
|
|
|
|
|
farming.register_plant("farming:oat", {
|
2020-04-26 20:34:43 +02:00
|
|
|
description = S("Oat seed"),
|
2019-01-06 11:28:24 +01:00
|
|
|
paramtype2 = "meshoptions",
|
|
|
|
inventory_image = "farming_oat_seed.png",
|
|
|
|
steps = 8,
|
2020-07-02 15:31:12 +02:00
|
|
|
place_param2 = 3
|
2019-01-06 11:28:24 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("farming:oat", {
|
2020-04-26 20:34:43 +02:00
|
|
|
description = S("Oats"),
|
2019-01-06 11:28:24 +01:00
|
|
|
groups = {food_oats = 1, flammable = 4}
|
|
|
|
})
|
|
|
|
|
2021-07-11 10:08:50 +02:00
|
|
|
minetest.override_item("farming:oat_1", {drop = {}})
|
|
|
|
minetest.override_item("farming:oat_2", {drop = {}})
|
|
|
|
minetest.override_item("farming:oat_3", {drop = {}})
|
|
|
|
|
2019-01-06 11:28:24 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "farming:flour",
|
|
|
|
recipe = {
|
2021-05-04 10:06:08 +02:00
|
|
|
{"farming:oat", "farming:oat", "farming:oat"},
|
2023-07-13 19:07:25 +02:00
|
|
|
{"farming:oat", tmp, ""}
|
2019-01-06 11:28:24 +01:00
|
|
|
},
|
2020-07-02 15:31:12 +02:00
|
|
|
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
2019-01-06 11:28:24 +01:00
|
|
|
})
|
|
|
|
|
2019-01-24 12:38:21 +01:00
|
|
|
-- Multigrain flour
|
|
|
|
|
|
|
|
minetest.register_craftitem("farming:flour_multigrain", {
|
|
|
|
description = S("Multigrain Flour"),
|
|
|
|
inventory_image = "farming_flour_multigrain.png",
|
|
|
|
groups = {food_flour = 1, flammable = 1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "farming:flour_multigrain",
|
|
|
|
recipe = {
|
|
|
|
"farming:wheat", "farming:barley", "farming:oat",
|
2023-07-13 19:07:25 +02:00
|
|
|
"farming:rye", tmp
|
2019-01-24 12:38:21 +01:00
|
|
|
},
|
2020-07-02 15:31:12 +02:00
|
|
|
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
2019-01-24 12:38:21 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Multigrain bread
|
|
|
|
|
|
|
|
minetest.register_craftitem("farming:bread_multigrain", {
|
|
|
|
description = S("Multigrain Bread"),
|
|
|
|
inventory_image = "farming_bread_multigrain.png",
|
|
|
|
on_use = minetest.item_eat(7),
|
2020-07-02 15:31:12 +02:00
|
|
|
groups = {food_bread = 1, flammable = 2}
|
2019-01-24 12:38:21 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
cooktime = 15,
|
|
|
|
output = "farming:bread_multigrain",
|
|
|
|
recipe = "farming:flour_multigrain"
|
|
|
|
})
|
|
|
|
|
2019-01-06 11:28:24 +01:00
|
|
|
-- Fuels
|
|
|
|
|
2019-01-24 12:38:21 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "farming:bread_multigrain",
|
2020-07-02 15:31:12 +02:00
|
|
|
burntime = 1
|
2019-01-24 12:38:21 +01:00
|
|
|
})
|
|
|
|
|
2019-01-06 11:28:24 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "farming:rye",
|
2020-07-02 15:31:12 +02:00
|
|
|
burntime = 1
|
2019-01-06 11:28:24 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "farming:oat",
|
2020-07-02 15:31:12 +02:00
|
|
|
burntime = 1
|
2019-01-06 11:28:24 +01:00
|
|
|
})
|