Nodes, Items and Crafting: Output Quantity

gh-pages
rubenwardy 2015-01-01 17:49:20 +00:00
parent 300d23992c
commit 188e879c43
1 changed files with 3 additions and 2 deletions

View File

@ -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.