Merge branch 'gh-pages' of http://github.com/rubenwardy/minetest_doc into gh-pages
This commit is contained in:
commit
fdc5c793ad
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user