summaryrefslogtreecommitdiff
path: root/farming/crops
diff options
context:
space:
mode:
Diffstat (limited to 'farming/crops')
-rw-r--r--farming/crops/barley.lua9
-rw-r--r--farming/crops/beans.lua9
-rw-r--r--farming/crops/beetroot.lua9
-rw-r--r--farming/crops/blueberry.lua9
-rw-r--r--farming/crops/carrot.lua9
-rw-r--r--farming/crops/chili.lua9
-rw-r--r--farming/crops/cocoa.lua9
-rw-r--r--farming/crops/coffee.lua9
-rw-r--r--farming/crops/corn.lua9
-rw-r--r--farming/crops/cotton.lua9
-rw-r--r--farming/crops/cucumber.lua9
-rw-r--r--farming/crops/garlic.lua13
-rw-r--r--farming/crops/grapes.lua9
-rw-r--r--farming/crops/hemp.lua9
-rw-r--r--farming/crops/melon.lua9
-rw-r--r--farming/crops/onion.lua9
-rw-r--r--farming/crops/peas.lua9
-rw-r--r--farming/crops/pepper.lua9
-rw-r--r--farming/crops/pineapple.lua9
-rw-r--r--farming/crops/potato.lua9
-rw-r--r--farming/crops/pumpkin.lua14
-rw-r--r--farming/crops/raspberry.lua9
-rw-r--r--farming/crops/rhubarb.lua9
-rw-r--r--farming/crops/tomato.lua9
-rw-r--r--farming/crops/wheat.lua9
25 files changed, 227 insertions, 7 deletions
diff --git a/farming/crops/barley.lua b/farming/crops/barley.lua
index f509335..6f3cb97 100644
--- a/farming/crops/barley.lua
+++ b/farming/crops/barley.lua
@@ -103,3 +103,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:barley_7", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:barley"] = {
+ crop = "farming:barley",
+ seed = "farming:seed_barley",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
diff --git a/farming/crops/beans.lua b/farming/crops/beans.lua
index a575956..a75030a 100644
--- a/farming/crops/beans.lua
+++ b/farming/crops/beans.lua
@@ -224,6 +224,15 @@ crop_def.drop = {
}
minetest.register_node("farming:beanpole_5", table.copy(crop_def))
+-- add to registered_plants
+farming.registered_plants["farming:beans"] = {
+ crop = "farming:beanpole",
+ seed = "farming:beans",
+ minlight = 13,
+ maxlight = 15,
+ steps = 5
+}
+
-- wild green bean bush (this is what you find on the map)
minetest.register_node("farming:beanbush", {
drawtype = "plantlike",
diff --git a/farming/crops/beetroot.lua b/farming/crops/beetroot.lua
index e683a94..8f7069b 100644
--- a/farming/crops/beetroot.lua
+++ b/farming/crops/beetroot.lua
@@ -83,3 +83,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:beetroot_5", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:beetroot"] = {
+ crop = "farming:beetroot",
+ seed = "farming:beetroot",
+ minlight = 13,
+ maxlight = 15,
+ steps = 5
+}
diff --git a/farming/crops/blueberry.lua b/farming/crops/blueberry.lua
index 9a30387..64aee3e 100644
--- a/farming/crops/blueberry.lua
+++ b/farming/crops/blueberry.lua
@@ -83,3 +83,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:blueberry_4", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:blueberries"] = {
+ crop = "farming:blueberry",
+ seed = "farming:blueberries",
+ minlight = 13,
+ maxlight = 15,
+ steps = 4
+}
diff --git a/farming/crops/carrot.lua b/farming/crops/carrot.lua
index 0aefcfd..b9cf535 100644
--- a/farming/crops/carrot.lua
+++ b/farming/crops/carrot.lua
@@ -94,3 +94,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:carrot_8", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:carrot"] = {
+ crop = "farming:carrot",
+ seed = "farming:carrot",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
diff --git a/farming/crops/chili.lua b/farming/crops/chili.lua
index 9889162..429d256 100644
--- a/farming/crops/chili.lua
+++ b/farming/crops/chili.lua
@@ -90,3 +90,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:chili_8", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:chili_pepper"] = {
+ crop = "farming:chili",
+ seed = "farming:chili_pepper",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
diff --git a/farming/crops/cocoa.lua b/farming/crops/cocoa.lua
index ecefcea..7b5e8d4 100644
--- a/farming/crops/cocoa.lua
+++ b/farming/crops/cocoa.lua
@@ -165,6 +165,15 @@ crop_def.drop = {
}
minetest.register_node("farming:cocoa_4", table.copy(crop_def))
+-- add to registered_plants
+farming.registered_plants["farming:cocoa_beans"] = {
+ crop = "farming:cocoa",
+ seed = "farming:cocoa_beans",
+ minlight = 13,
+ maxlight = 15,
+ steps = 4
+}
+
-- add random cocoa pods to jungle tree's
minetest.register_on_generated(function(minp, maxp)
diff --git a/farming/crops/coffee.lua b/farming/crops/coffee.lua
index f98694b..c4528e2 100644
--- a/farming/crops/coffee.lua
+++ b/farming/crops/coffee.lua
@@ -86,3 +86,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:coffee_5", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:coffee"] = {
+ crop = "farming:coffee",
+ seed = "farming:coffee_beans",
+ minlight = 13,
+ maxlight = 15,
+ steps = 5
+}
diff --git a/farming/crops/corn.lua b/farming/crops/corn.lua
index 4847903..52f8b94 100644
--- a/farming/crops/corn.lua
+++ b/farming/crops/corn.lua
@@ -147,3 +147,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:corn_8", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:corn"] = {
+ crop = "farming:corn",
+ seed = "farming:corn",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
diff --git a/farming/crops/cotton.lua b/farming/crops/cotton.lua
index 7f893ec..24dc7bb 100644
--- a/farming/crops/cotton.lua
+++ b/farming/crops/cotton.lua
@@ -142,6 +142,15 @@ crop_def.drop = {
}
minetest.register_node("farming:cotton_8", table.copy(crop_def))
+-- add to registered_plants
+farming.registered_plants["farming:cotton"] = {
+ crop = "farming:cotton",
+ seed = "farming:seed_cotton",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
+
--[[ Cotton (example, is already registered in cotton.lua)
farming.register_plant("farming:cotton", {
description = "Cotton seed",
diff --git a/farming/crops/cucumber.lua b/farming/crops/cucumber.lua
index 4e6981c..d7178b8 100644
--- a/farming/crops/cucumber.lua
+++ b/farming/crops/cucumber.lua
@@ -54,3 +54,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:cucumber_4", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:cucumber"] = {
+ crop = "farming:cucumber",
+ seed = "farming:cucumber",
+ minlight = 13,
+ maxlight = 15,
+ steps = 4
+}
diff --git a/farming/crops/garlic.lua b/farming/crops/garlic.lua
index f2bb16d..09ab375 100644
--- a/farming/crops/garlic.lua
+++ b/farming/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
+}
diff --git a/farming/crops/grapes.lua b/farming/crops/grapes.lua
index d8c6c3f..c341075 100644
--- a/farming/crops/grapes.lua
+++ b/farming/crops/grapes.lua
@@ -231,6 +231,15 @@ crop_def.drop = {
}
minetest.register_node("farming:grapes_8", table.copy(crop_def))
+-- add to registered_plants
+farming.registered_plants["farming:grapes"] = {
+ crop = "farming:grapes",
+ seed = "farming:grapes",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
+
-- wild grape vine (this is what you find on the map)
minetest.register_node("farming:grapebush", {
drawtype = "plantlike",
diff --git a/farming/crops/hemp.lua b/farming/crops/hemp.lua
index eb522a9..931a586 100644
--- a/farming/crops/hemp.lua
+++ b/farming/crops/hemp.lua
@@ -249,3 +249,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:hemp_8", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:hemp"] = {
+ crop = "farming:hemp",
+ seed = "farming:seed_hemp",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
diff --git a/farming/crops/melon.lua b/farming/crops/melon.lua
index 43c0809..06056a0 100644
--- a/farming/crops/melon.lua
+++ b/farming/crops/melon.lua
@@ -84,3 +84,12 @@ crop_def.groups = {
--crop_def.drop = "farming:melon_slice 9"
crop_def.drop = "farming:melon_8"
minetest.register_node("farming:melon_8", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:melon"] = {
+ crop = "farming:melon",
+ seed = "farming:melon_slice",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
diff --git a/farming/crops/onion.lua b/farming/crops/onion.lua
index d9268f8..f4291a5 100644
--- a/farming/crops/onion.lua
+++ b/farming/crops/onion.lua
@@ -66,3 +66,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:onion_5", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:onion"] = {
+ crop = "farming:onion",
+ seed = "farming:onion",
+ minlight = 13,
+ maxlight = 15,
+ steps = 5
+}
diff --git a/farming/crops/peas.lua b/farming/crops/peas.lua
index e50564e..93e9232 100644
--- a/farming/crops/peas.lua
+++ b/farming/crops/peas.lua
@@ -87,3 +87,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:pea_5", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:pea_pod"] = {
+ crop = "farming:pea",
+ seed = "farming:pea_pod",
+ minlight = 13,
+ maxlight = 15,
+ steps = 5
+}
diff --git a/farming/crops/pepper.lua b/farming/crops/pepper.lua
index 498556e..8f5e29e 100644
--- a/farming/crops/pepper.lua
+++ b/farming/crops/pepper.lua
@@ -104,3 +104,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:pepper_5", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:pepper"] = {
+ crop = "farming:pepper",
+ seed = "farming:peppercorn",
+ minlight = 13,
+ maxlight = 15,
+ steps = 5
+}
diff --git a/farming/crops/pineapple.lua b/farming/crops/pineapple.lua
index 3525136..8a60310 100644
--- a/farming/crops/pineapple.lua
+++ b/farming/crops/pineapple.lua
@@ -127,3 +127,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:pineapple_8", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:pineapple"] = {
+ crop = "farming:pineapple",
+ seed = "farming:pineapple_top",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
diff --git a/farming/crops/potato.lua b/farming/crops/potato.lua
index a1512c2..1547fc0 100644
--- a/farming/crops/potato.lua
+++ b/farming/crops/potato.lua
@@ -92,3 +92,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:potato_4", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:potato"] = {
+ crop = "farming:potato",
+ seed = "farming:potato",
+ minlight = 13,
+ maxlight = 15,
+ steps = 4
+}
diff --git a/farming/crops/pumpkin.lua b/farming/crops/pumpkin.lua
index c864d55..c362449 100644
--- a/farming/crops/pumpkin.lua
+++ b/farming/crops/pumpkin.lua
@@ -202,12 +202,16 @@ minetest.register_node("farming:pumpkin_8", {
food_pumpkin = 1, choppy = 1, oddly_breakable_by_hand = 1,
flammable = 2, plant = 1
},
--- drop = {
--- items = {
--- {items = {'farming:pumpkin_slice 9'}, rarity = 1},
--- }
--- },
sounds = default.node_sound_wood_defaults(),
})
minetest.register_alias("farming:pumpkin", "farming:pumpkin_8")
+
+-- add to registered_plants
+farming.registered_plants["farming:pumpkin"] = {
+ crop = "farming:pumpkin",
+ seed = "farming:pumpkin_slice",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
diff --git a/farming/crops/raspberry.lua b/farming/crops/raspberry.lua
index 713ea2f..4938658 100644
--- a/farming/crops/raspberry.lua
+++ b/farming/crops/raspberry.lua
@@ -67,3 +67,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:raspberry_4", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:raspberries"] = {
+ crop = "farming:raspberry",
+ seed = "farming:raspberries",
+ minlight = 13,
+ maxlight = 15,
+ steps = 4
+}
diff --git a/farming/crops/rhubarb.lua b/farming/crops/rhubarb.lua
index 90a2d8b..9471733 100644
--- a/farming/crops/rhubarb.lua
+++ b/farming/crops/rhubarb.lua
@@ -64,3 +64,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:rhubarb_3", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:rhubarb"] = {
+ crop = "farming:rhubarb",
+ seed = "farming:rhubarb",
+ minlight = 13,
+ maxlight = 15,
+ steps = 3
+}
diff --git a/farming/crops/tomato.lua b/farming/crops/tomato.lua
index 53012a8..bab0e47 100644
--- a/farming/crops/tomato.lua
+++ b/farming/crops/tomato.lua
@@ -77,3 +77,12 @@ crop_def.drop = {
}
}
minetest.register_node("farming:tomato_8", table.copy(crop_def))
+
+-- add to registered_plants
+farming.registered_plants["farming:tomato"] = {
+ crop = "farming:tomato",
+ seed = "farming:tomato",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
diff --git a/farming/crops/wheat.lua b/farming/crops/wheat.lua
index abf3ada..7c77d11 100644
--- a/farming/crops/wheat.lua
+++ b/farming/crops/wheat.lua
@@ -230,6 +230,15 @@ crop_def.drop = {
}
minetest.register_node("farming:wheat_8", table.copy(crop_def))
+-- add to registered_plants
+farming.registered_plants["farming:wheat"] = {
+ crop = "farming:wheat",
+ seed = "farming:seed_wheat",
+ minlight = 13,
+ maxlight = 15,
+ steps = 8
+}
+
-- fuels
minetest.register_craft({
type = "fuel",