From f11fe2ff903f7bfc8e8255b88e8553dbfca5a03a Mon Sep 17 00:00:00 2001 From: octacian Date: Fri, 24 Feb 2017 14:08:28 -0800 Subject: [PATCH] Fix documentation of recipe registration --- doc/api.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api.md b/doc/api.md index 4ebd8d6..20a309d 100644 --- a/doc/api.md +++ b/doc/api.md @@ -10,7 +10,7 @@ __Single Recipe:__ ```lua microexpansion.register_recipe("default:steelblock", { "single", - { + { 1, { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }, { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }, { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }, @@ -18,25 +18,25 @@ microexpansion.register_recipe("default:steelblock", { }) ``` -The above registers a single recipe for the item specified. +The above registers a single recipe for the item specified. The `1` specifies the output quantity. __Multiple Recipes:__ ```lua microexpansion.register_recipe("default:steelblock", { "multiple", - { + { 1, { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }, { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }, { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }, }, - { + { 1, { "default:steel_ingot", "default:steel_ingot" }, { "default:steel_ingot", "default:steel_ingot" }, } }) ``` -The above registers multiple recipes for the item specified. +The above registers multiple recipes for the item specified. The `1` specifies the output quantity. #### `register_item(itemstring, def)` __Usage:__ `microexpansion.register_item(, `