31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
hades_farming.register_hoe(name, hoe definition)
|
|
-> Register a new hoe, see [hoe definition]
|
|
|
|
hades_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_seed = "", -- Description of seed item
|
|
description_plant = "", -- Description of plant item (needs a @1 placeholder for translation)
|
|
meshoptions = 0, -- If set, this is the meshoptions param2 value the plant spawns with
|
|
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 = 8, -- Minimum light to grow (default: 8)
|
|
maxlight = minetest.LIGHT_MAX -- Maximum light to grow (default: minetest.LIGHT_MAX)
|
|
}
|