diff options
author | root <root@linux-forks.de> | 2018-11-14 12:45:17 +0100 |
---|---|---|
committer | root <root@linux-forks.de> | 2018-11-14 12:45:17 +0100 |
commit | eb2f1069f7bca09c0c25656db42dc3bfe3bf264a (patch) | |
tree | 5d8d0f21d38f7e4fcec6b3687cbd75962191761c /init.lua | |
parent | a4014f9d78e3603e01ee4b2cccac982eaf65c85c (diff) | |
parent | efdc816584d08d639b166c7799ea41f10465fccd (diff) |
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 25 |
1 files changed, 18 insertions, 7 deletions
@@ -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 |