summaryrefslogtreecommitdiff
path: root/init.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 /init.lua
parenta4014f9d78e3603e01ee4b2cccac982eaf65c85c (diff)
parentefdc816584d08d639b166c7799ea41f10465fccd (diff)
xMerge branch 'master' of https://notabug.org/TenPlus1/farmingHEADmaster
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua25
1 files changed, 18 insertions, 7 deletions
diff --git a/init.lua b/init.lua
index 038ba6d..04fe300 100644
--- a/init.lua
+++ b/init.lua
@@ -5,13 +5,15 @@
auto-refill by crabman77
]]
-farming = {}
-farming.mod = "redo"
-farming.version = "20180617"
-farming.path = minetest.get_modpath("farming")
-farming.select = {
- type = "fixed",
- fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+farming = {
+ mod = "redo",
+ version = "20180929",
+ path = minetest.get_modpath("farming"),
+ select = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+ },
+ registered_plants = {}
}
@@ -581,6 +583,15 @@ farming.register_plant = function(name, def)
})
end
+-- add to farming.registered_plants
+farming.registered_plants[mname .. ":" .. pname] = {
+ crop = mname .. ":" .. pname,
+ seed = mname .. ":seed_" .. pname,
+ steps = def.steps,
+ minlight = def.minlight,
+ maxlight = def.maxlight
+}
+print(dump(farming.registered_plants[mname .. ":" .. pname]))
-- Return info
return {seed = mname .. ":seed_" .. pname, harvest = mname .. ":" .. pname}
end