summaryrefslogtreecommitdiff
path: root/crops/garlic.lua
diff options
context:
space:
mode:
authorroot <root@linux-forks.de>2018-11-14 12:45:17 +0100
committerroot <root@linux-forks.de>2018-11-14 12:45:17 +0100
commiteb2f1069f7bca09c0c25656db42dc3bfe3bf264a (patch)
tree5d8d0f21d38f7e4fcec6b3687cbd75962191761c /crops/garlic.lua
parenta4014f9d78e3603e01ee4b2cccac982eaf65c85c (diff)
parentefdc816584d08d639b166c7799ea41f10465fccd (diff)
xMerge branch 'master' of https://notabug.org/TenPlus1/farmingHEADmaster
Diffstat (limited to 'crops/garlic.lua')
-rw-r--r--crops/garlic.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/crops/garlic.lua b/crops/garlic.lua
index f2bb16d..09ab375 100644
--- a/crops/garlic.lua
+++ b/crops/garlic.lua
@@ -27,7 +27,7 @@ minetest.register_craftitem("farming:garlic", {
minetest.register_craft({
type = "shapeless",
- output = "farming:garlic_clove 9",
+ output = "farming:garlic_clove 8",
recipe = { "farming:garlic" }
})
@@ -35,7 +35,7 @@ minetest.register_craft({
output = "farming:garlic",
recipe = {
{"farming:garlic_clove", "farming:garlic_clove", "farming:garlic_clove"},
- {"farming:garlic_clove", "farming:garlic_clove", "farming:garlic_clove"},
+ {"farming:garlic_clove", "", "farming:garlic_clove"},
{"farming:garlic_clove", "farming:garlic_clove", "farming:garlic_clove"}
}
})
@@ -126,3 +126,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:garlic_5", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:garlic"] = {
+ crop = "farming:garlic",
+ seed = "farming:garlic_clove",
+ minlight = 13,
+ maxlight = 15,
+ steps = 5
+}