summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2015-04-14 01:09:35 -0700
committerAuke Kok <auke-jan.h.kok@intel.com>2015-04-14 01:09:35 -0700
commitaa239c4ae3d89cf146198de5f0046856e570d223 (patch)
tree455d92a0b72371dbaf49091f2ec25490ee8635a8 /init.lua
parent318f3815d372ed680cab4c45aec7eca8b54a4116 (diff)
Potatoes.
The plants themselves don't drop anything. Only if the plant matures can you dig potatoes from the soil. If you can reach the soil from the side you can save yourself one dig by digging the soil as that will remove the plant from the top, but otherwise you need to dig twice: once to remove the plant, once to dig out the potatoes. You get 3-5 potatoes. Each potato gives one (set of) "potato eyes" which are the clones that can grow back to potatoes. The plant itself is purposedly drawn "low" and not as a full block as that's how the plant grows without support, mostly close to the ground. Be careful not to dig the plant when there's flowers! You have to wait until the soil below shows potatoes. It's fairly easy to see the difference, though.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 38c098f..90fcc87 100644
--- a/init.lua
+++ b/init.lua
@@ -10,11 +10,12 @@ of the license, or (at your option) any later version.
--]]
-local crops_interval = 30
-local crops_chance = 8
+crops_interval = 30
+crops_chance = 8
dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/melon.lua")
dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/corn.lua")
dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/tomato.lua")
+dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/potato.lua")
minetest.log("action", "[crops] loaded.")