star_wars/mods/farming/crops/grains.lua

164 lines
3.5 KiB
Lua
Raw Normal View History

2020-07-17 14:52:40 +02:00
local S = farming.intllib
2020-07-17 16:11:22 +02:00
-- Toz
2020-07-17 14:52:40 +02:00
2020-07-17 16:11:22 +02:00
farming.register_plant("farming:toz", {
description = S("Toz seed"),
2020-07-17 14:52:40 +02:00
paramtype2 = "meshoptions",
2020-07-23 04:16:18 +02:00
inventory_image = "toz_seed.png",
2020-07-17 14:52:40 +02:00
steps = 8,
place_param2 = 3
})
2020-07-17 16:11:22 +02:00
minetest.override_item("farming:toz", {
description = S("toz"),
2020-07-17 14:52:40 +02:00
groups = {food_rye = 1, flammable = 4}
})
minetest.register_craft({
type = "shapeless",
output = "farming:flour",
recipe = {
2020-07-17 16:11:22 +02:00
"farming:toz", "farming:toz", "farming:toz", "farming:toz",
2020-07-17 14:52:40 +02:00
"farming:mortar_pestle"
},
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
})
-- Oats
2020-07-17 16:11:22 +02:00
farming.register_plant("farming:shorn", {
description = S("Shorn seed"),
2020-07-17 14:52:40 +02:00
paramtype2 = "meshoptions",
2020-07-23 04:16:18 +02:00
inventory_image = "shorn_seed.png",
2020-07-17 14:52:40 +02:00
steps = 8,
place_param2 = 3
})
2020-07-17 16:11:22 +02:00
minetest.override_item("farming:shorn", {
description = S("Shorn"),
2020-07-17 14:52:40 +02:00
groups = {food_oats = 1, flammable = 4}
})
minetest.register_craft({
type = "shapeless",
output = "farming:flour",
recipe = {
2020-07-17 16:11:22 +02:00
"farming:shorn", "farming:shorn", "farming:shorn", "farming:shorn",
2020-07-17 14:52:40 +02:00
"farming:mortar_pestle"
},
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
})
2020-07-17 16:11:22 +02:00
-- Ghoba Rice
2020-07-17 14:52:40 +02:00
2020-07-17 16:11:22 +02:00
farming.register_plant("farming:ghoba_rice", {
description = S("Ghoba Rice grains"),
2020-07-17 14:52:40 +02:00
paramtype2 = "meshoptions",
2020-07-23 04:16:18 +02:00
inventory_image = "ghoba_rice_seed.png",
2020-07-17 14:52:40 +02:00
steps = 8,
place_param2 = 3
})
2020-07-17 16:11:22 +02:00
minetest.override_item("farming:ghoba_rice", {
description = S("Ghoba Rice"),
2020-07-17 14:52:40 +02:00
groups = {food_rice = 1, flammable = 4}
})
2020-07-17 16:11:22 +02:00
minetest.register_craftitem("farming:ghoba_rice_bread", {
description = S("Ghoba Rice Bread"),
2020-07-23 04:16:18 +02:00
inventory_image = "ghoba_rice_bread.png",
2020-07-17 14:52:40 +02:00
on_use = minetest.item_eat(5),
groups = {food_rice_bread = 1, flammable = 2}
})
2020-07-17 16:11:22 +02:00
minetest.register_craftitem("farming:ghoba_rice_flour", {
description = S("Ghoba Rice Flour"),
2020-07-23 04:16:18 +02:00
inventory_image = "ghoba_rice_flour.png",
2020-07-17 14:52:40 +02:00
groups = {food_rice_flour = 1, flammable = 1}
})
minetest.register_craft({
type = "shapeless",
2020-07-17 16:11:22 +02:00
output = "farming:ghoba_rice_flour",
2020-07-17 14:52:40 +02:00
recipe = {
2020-07-17 16:11:22 +02:00
"farming:ghoba_rice", "farming:ghoba_rice", "farming:ghoba_rice", "farming:ghoba_rice",
2020-07-17 14:52:40 +02:00
"farming:mortar_pestle"
},
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
})
minetest.register_craft({
type = "cooking",
cooktime = 15,
2020-07-17 16:11:22 +02:00
output = "farming:ghoba_rice_bread",
recipe = "farming:ghoba_rice_flour"
2020-07-17 14:52:40 +02:00
})
-- Multigrain flour
minetest.register_craftitem("farming:flour_multigrain", {
description = S("Multigrain Flour"),
2020-07-23 04:16:18 +02:00
inventory_image = "flour_multigrain.png",
2020-07-17 14:52:40 +02:00
groups = {food_flour = 1, flammable = 1},
})
minetest.register_craft({
type = "shapeless",
output = "farming:flour_multigrain",
recipe = {
2020-07-17 16:11:22 +02:00
"farming:lothal_wheat", "farming:roti", "farming:shorn",
"farming:toz", "farming:mortar_pestle"
2020-07-17 14:52:40 +02:00
},
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
})
-- Multigrain bread
minetest.register_craftitem("farming:bread_multigrain", {
description = S("Multigrain Bread"),
2020-07-23 04:16:18 +02:00
inventory_image = "bread_multigrain.png",
2020-07-17 14:52:40 +02:00
on_use = minetest.item_eat(7),
groups = {food_bread = 1, flammable = 2}
})
minetest.register_craft({
type = "cooking",
cooktime = 15,
output = "farming:bread_multigrain",
recipe = "farming:flour_multigrain"
})
-- Fuels
minetest.register_craft({
type = "fuel",
2020-07-17 16:11:22 +02:00
recipe = "farming:ghoba_rice_bread",
2020-07-17 14:52:40 +02:00
burntime = 1
})
minetest.register_craft({
type = "fuel",
recipe = "farming:bread_multigrain",
burntime = 1
})
minetest.register_craft({
type = "fuel",
2020-07-17 16:11:22 +02:00
recipe = "farming:toz",
2020-07-17 14:52:40 +02:00
burntime = 1
})
minetest.register_craft({
type = "fuel",
2020-07-17 16:11:22 +02:00
recipe = "farming:shorn",
2020-07-17 14:52:40 +02:00
burntime = 1
})
minetest.register_craft({
type = "fuel",
2020-07-17 16:11:22 +02:00
recipe = "farming:ghoba_rice",
2020-07-17 14:52:40 +02:00
burntime = 1
})