From 4f237ebbefe996feb4329e85a57c4218670edf98 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Thu, 24 Sep 2020 14:11:57 +0200 Subject: [PATCH] change back the spacing in game_api.txt --- game_api.txt | 51 ++++++++++++++++----------------------------------- 1 file changed, 16 insertions(+), 35 deletions(-) diff --git a/game_api.txt b/game_api.txt index 652c2696..d74ec433 100644 --- a/game_api.txt +++ b/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 }