Browse Source

onion soup added thanks to edcrypt

master
TenPlus1 2 weeks ago
parent
commit
ca0876c6d8
3 changed files with 21 additions and 1 deletions
  1. +1
    -1
      README.md
  2. +20
    -0
      crops/onion.lua
  3. BIN
      textures/farming_onion_soup.png

+ 1
- 1
README.md View File

@@ -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.


+ 20
- 0
crops/onion.lua View File

@@ -7,7 +7,7 @@

local S = farming.intllib

-- 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",


BIN
textures/farming_onion_soup.png View File

Before After
Width: 16  |  Height: 16  |  Size: 161B

Loading…
Cancel
Save