From 188e879c4311029a9bda4560e136bda118010e94 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 1 Jan 2015 17:49:20 +0000 Subject: [PATCH] Nodes, Items and Crafting: Output Quantity --- chapters/nodes_items_crafting.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chapters/nodes_items_crafting.md b/chapters/nodes_items_crafting.md index 44efa42..af469fe 100644 --- a/chapters/nodes_items_crafting.md +++ b/chapters/nodes_items_crafting.md @@ -201,7 +201,7 @@ right place for it to work. {% highlight lua %} minetest.register_craft({ - output = "mymod:diamond_chair", + output = "mymod:diamond_chair 99", recipe = { {"mymod:diamond_fragments", "", ""}, {"mymod:diamond_fragments", "mymod:diamond_fragments", ""}, @@ -211,7 +211,8 @@ minetest.register_craft({ {% endhighlight %} This is pretty self-explanatory. You don't need to define the type, as -shaped crafts are default. +shaped crafts are default. The 99 after the itemname in output makes the +craft create 99 chairs rather than one. If you notice, there is a blank column at the far end. This means that the craft must always be exactly that.