mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 06:43:17 -04:00
change back the spacing in game_api.txt
This commit is contained in:
parent
4e8db84635
commit
4f237ebbef
1 changed files with 16 additions and 35 deletions
51
game_api.txt
51
game_api.txt
|
@ -348,50 +348,31 @@ The farming API allows you to easily register plants and hoes.
|
|||
### Hoe Definition
|
||||
|
||||
{
|
||||
-- Description for tooltip
|
||||
description = "My Hoe",
|
||||
|
||||
-- Image to be used as wield- and inventory image
|
||||
inventory_image = "unknown_item.png",
|
||||
|
||||
-- Uses until destroyed
|
||||
max_uses = 30,
|
||||
|
||||
-- Material for recipes
|
||||
material = "",
|
||||
|
||||
-- Craft recipe, if material isn't used
|
||||
recipe = {
|
||||
description = "My Hoe", -- Description for the 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 of seed item
|
||||
description = "My Plant",
|
||||
|
||||
-- Description of harvest item (optional, derived automatically if not
|
||||
-- provided)
|
||||
harvest_description = "",
|
||||
|
||||
-- Image to be used as seed's wield- and inventory image
|
||||
inventory_image = "unknown_item.png",
|
||||
|
||||
-- How many steps the plant has to grow, until it can be harvested
|
||||
steps = 8,
|
||||
-- ^ Always provide a plant texture for each step, format:
|
||||
-- modname_plantname_i.png (i = stepnumber)
|
||||
|
||||
-- Groups of soil nodes on which the seed can grow
|
||||
fertility = {"grassland"},
|
||||
|
||||
-- Minimum and maximum light to grow
|
||||
minlight = 1,
|
||||
maxlight = default.LIGHT_MAX
|
||||
description = "My Plant", -- Description of seed item
|
||||
harvest_description = "", -- Description of harvest item
|
||||
-- (optional, derived automatically if not provided)
|
||||
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)
|
||||
fertility = {"grassland"}, -- Groups of soil nodes on which the seed can grow
|
||||
minlight = 1, -- Minimum light to grow
|
||||
maxlight = default.LIGHT_MAX -- Maximum light to grow
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue