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
|
### Hoe Definition
|
||||||
|
|
||||||
{
|
{
|
||||||
-- Description for tooltip
|
description = "My Hoe", -- Description for the tooltip
|
||||||
description = "My Hoe",
|
inventory_image = "unknown_item.png", -- Image to be used as wield- and inventory image
|
||||||
|
max_uses = 30, -- Uses until destroyed
|
||||||
-- Image to be used as wield- and inventory image
|
material = "", -- Material for recipes
|
||||||
inventory_image = "unknown_item.png",
|
recipe = { -- Craft recipe, if material isn't used
|
||||||
|
|
||||||
-- Uses until destroyed
|
|
||||||
max_uses = 30,
|
|
||||||
|
|
||||||
-- Material for recipes
|
|
||||||
material = "",
|
|
||||||
|
|
||||||
-- Craft recipe, if material isn't used
|
|
||||||
recipe = {
|
|
||||||
{"air", "air", "air"},
|
{"air", "air", "air"},
|
||||||
{"", "group:stick"},
|
{"", "group:stick"},
|
||||||
{"", "group:stick"},
|
{"", "group:stick"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
### Plant definition
|
### Plant definition
|
||||||
|
|
||||||
{
|
{
|
||||||
-- Description of seed item
|
description = "My Plant", -- Description of seed item
|
||||||
description = "My Plant",
|
harvest_description = "", -- Description of harvest item
|
||||||
|
-- (optional, derived automatically if not provided)
|
||||||
-- Description of harvest item (optional, derived automatically if not
|
inventory_image = "unknown_item.png", -- Image to be used as seed's wield- and inventory image
|
||||||
-- provided)
|
steps = 8, -- How many steps the plant has to grow, until it can be harvested
|
||||||
harvest_description = "",
|
-- ^ Always provide a plant texture for each step,
|
||||||
|
-- format: modname_plantname_i.png (i = stepnumber)
|
||||||
-- Image to be used as seed's wield- and inventory image
|
fertility = {"grassland"}, -- Groups of soil nodes on which the seed can grow
|
||||||
inventory_image = "unknown_item.png",
|
minlight = 1, -- Minimum light to grow
|
||||||
|
maxlight = default.LIGHT_MAX -- Maximum light to grow
|
||||||
-- 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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue