Default/functions: Reduce lavacooling ABM/sound overload
[oweals/minetest_game.git] / mods / farming / API.txt
1 farming.register_hoe(name, hoe definition)
2  -> Register a new hoe, see [hoe definition]
3  
4 farming.register_plant(name, Plant definition)
5  -> Register a new growing plant, see [Plant definition]
6
7 Hoe Definition
8 {
9         description = "",       -- Description for tooltip
10         inventory_image = "unknown_item.png",   -- Image to be used as wield- and inventory image
11         max_uses = 30,  -- Uses until destroyed
12         material = "",  -- Material for recipes
13         recipe = {      -- Craft recipe, if material isn't used
14                 {"air", "air", "air"},
15                 {"", "group:stick"},
16                 {"", "group:stick"},
17         }
18 }
19
20 Plant definition
21 {
22         description = "",       -- Description of seed item
23         inventory_image = "unknown_item.png",   -- Image to be used as seed's wield- and inventory image
24         steps = 8,      -- How many steps the plant has to grow, until it can be harvested
25         ^ Always provide a plant texture for each step, format: modname_plantname_i.png (i = stepnumber)
26         minlight = 13, -- Minimum light to grow
27         maxlight = default.LIGHT_MAX -- Maximum light to grow
28 }