mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2026-01-01 13:45:31 +01:00
Updated MinetestForFun Game
- Merged listring, not handled by server yet!
This commit is contained in:
28
minetestforfun_game/mods/farming/API.txt
Executable file
28
minetestforfun_game/mods/farming/API.txt
Executable file
@@ -0,0 +1,28 @@
|
||||
farming.register_hoe(name, hoe definition)
|
||||
-> Register a new hoe, see [hoe definition]
|
||||
|
||||
farming.register_plant(name, Plant definition)
|
||||
-> Register a new growing plant, see [Plant definition]
|
||||
|
||||
Hoe Definition
|
||||
{
|
||||
description = "", -- Description for tooltip
|
||||
inventory_image = "unknown_item.png", -- Image to be used as wield- and inventory image
|
||||
max_uses = 30, -- Uses until destroyed
|
||||
material = "", -- Material for recipes
|
||||
recipe = { -- Craft recipe, if material isn't used
|
||||
{"air", "air", "air"},
|
||||
{"", "group:stick"},
|
||||
{"", "group:stick"},
|
||||
}
|
||||
}
|
||||
|
||||
Plant definition
|
||||
{
|
||||
description = "", -- Description of seed item
|
||||
inventory_image = "unknown_item.png", -- Image to be used as seed's wield- and inventory image
|
||||
steps = 8, -- How many steps the plant has to grow, until it can be harvested
|
||||
^ Always provide a plant texture for each step, format: modname_plantname_i.png (i = stepnumber)
|
||||
minlight = 13, -- Minimum light to grow
|
||||
maxlight = default.LIGHT_MAX -- Maximum light to grow
|
||||
}
|
||||
Reference in New Issue
Block a user