mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-28 06:20:35 +02:00
onion soup added thanks to edcrypt
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
|
||||
local S = farming.intllib
|
||||
|
||||
-- potato
|
||||
-- onion
|
||||
minetest.register_craftitem("farming:onion", {
|
||||
description = S("Onion"),
|
||||
inventory_image = "crops_onion.png",
|
||||
@ -18,6 +18,25 @@ minetest.register_craftitem("farming:onion", {
|
||||
on_use = minetest.item_eat(1),
|
||||
})
|
||||
|
||||
-- onion soup
|
||||
minetest.register_craftitem("farming:onion_soup", {
|
||||
description = S("Onion Soup"),
|
||||
inventory_image = "farming_onion_soup.png",
|
||||
groups = {flammable = 2},
|
||||
on_use = minetest.item_eat(6, "farming:bowl"),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:onion_soup",
|
||||
recipe = {
|
||||
"group:food_onion", "group:food_onion", "group:food_pot",
|
||||
"group:food_onion", "group:food_onion",
|
||||
"group:food_onion", "group:food_onion", "group:food_bowl"
|
||||
},
|
||||
replacements = {{"farming:pot", "farming:pot"}}
|
||||
})
|
||||
|
||||
-- crop definition
|
||||
local crop_def = {
|
||||
drawtype = "plantlike",
|
||||
|
Reference in New Issue
Block a user