diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -101,6 +101,10 @@ local find_plant = function(node) return nil end +crops.register = function(plantdef) + table.insert(crops.plants, plantdef) +end + crops.plant = function(pos, node) minetest.set_node(pos, node) local meta = minetest.get_meta(pos) |