Skip to content

Commit

Permalink
onion soup added thanks to edcrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
tenplus1 committed May 17, 2020
1 parent 0e42a72 commit ca0876c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t

### Changelog:

- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base options
- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base options, onion soup added (thanks edcrypt)
- 1.44 - Added 'farming_stage_length' in mod settings for speed of crop growth, also thanks to TheDarkTiger for translation updates
- 1.43 - Scythe works on use instead of right-click, added seed=1 groups to actual seeds and seed=2 group for plantable food items.
- 1.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection, add chocolate block.
Expand Down
21 changes: 20 additions & 1 deletion crops/onion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

local S = farming.intllib

-- potato
-- onion
minetest.register_craftitem("farming:onion", {
description = S("Onion"),
inventory_image = "crops_onion.png",
Expand All @@ -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",
Expand Down
Binary file added textures/farming_onion_soup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ca0876c

Please sign in to comment.