Small changes to phrasing and puncturation to make it flow better
This commit is contained in:
parent
bfe6566b2b
commit
bc25c95a46
@ -182,7 +182,7 @@ identified by the ``type`` property.
|
|||||||
* shapeless - It doesn't matter where the ingredients are,
|
* shapeless - It doesn't matter where the ingredients are,
|
||||||
just that there is the right amount.
|
just that there is the right amount.
|
||||||
* cooking - Recipes for the furnace to use.
|
* cooking - Recipes for the furnace to use.
|
||||||
* fuel - Defines what can be burnt in furnaces.
|
* fuel - Defines items which can be burned in furnaces.
|
||||||
* tool_repair - Used to allow the repairing of tools.
|
* tool_repair - Used to allow the repairing of tools.
|
||||||
|
|
||||||
Craft recipes do not use Item Strings to uniquely identify themselves.
|
Craft recipes do not use Item Strings to uniquely identify themselves.
|
||||||
@ -228,10 +228,10 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
###Shapeless
|
### Shapeless
|
||||||
|
|
||||||
Shapeless recipes are a type of recipe that can be used when a flexible crafting
|
Shapeless recipes are a type of recipe which is used when it doesn't matter
|
||||||
recipe is wanted.
|
where the ingredients are placed, just that they're there.
|
||||||
For example, when you craft a bronze ingot, the steel and the copper do not
|
For example, when you craft a bronze ingot, the steel and the copper do not
|
||||||
need to be in any specific place for it to work.
|
need to be in any specific place for it to work.
|
||||||
|
|
||||||
@ -245,38 +245,36 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
When you are making the diamond, the three diamond fragments can be anywhere
|
When you are crafting the diamond, the three diamond fragments can be anywhere
|
||||||
in the grid.
|
in the grid.\\
|
||||||
Note: Other options, like the number after the result, found in the shaped
|
Note: You can still use options like the number after the result, as mentioned
|
||||||
crafting recipe, can be used here, and for some of the other craft types.
|
earlier.
|
||||||
|
|
||||||
###Cooking
|
### Cooking
|
||||||
|
|
||||||
Recipes with the type "cooking" are not made in the crafting grid, like
|
Recipes with the type "cooking" are not made in the crafting grid,
|
||||||
other recipes, but as the name suggests, they are cooked, in furnaces,
|
but are cooked in furnaces, or other cooking tools that might be found in mods.
|
||||||
or other cooking tools that might be found in mods.
|
For example, you use a cooking recipe to turn ores into bars.
|
||||||
This is the way that anything that must be cooked, like bricks, or
|
|
||||||
can be cooked to turn into something else, like cobble, are defined.
|
|
||||||
|
|
||||||
{% highlight lua %}
|
{% highlight lua %}
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "mymod:diamond_fragments",
|
output = "mymod:diamond_fragments",
|
||||||
recipe = "default:coalblock",
|
recipe = "default:coalblock",
|
||||||
cooktime = "10",
|
cooktime = 10,
|
||||||
})
|
})
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
From this example, you can see that the only difference in the code,
|
As you can see from this example, the only real difference in the code
|
||||||
between this type of crafting and any other (apart from the type), is
|
is that the recipe is just a single item, compared to being in a table
|
||||||
that the recipe is just a single node, and it is not in a table (between
|
(between braces). They also have an optional "cooktime" parameter, which
|
||||||
braces). They also have an optional "cooktime" parameter, which defines
|
defines how long the item takes to cook. If this is not set it defaults to 3.
|
||||||
how long the item takes to cook. If this is not set, it defaults to 3.
|
|
||||||
So, for this to work, the coal block is in the input slot, with the fuel
|
|
||||||
below it, and the diamond fragments will come out on the far side
|
|
||||||
of the furnace, after 10 seconds!
|
|
||||||
|
|
||||||
####Fuel
|
The recipe above works when the coal block is in the input slot,
|
||||||
|
with some form of a fuel below it.
|
||||||
|
It creates diamond fragments after 10 seconds!
|
||||||
|
|
||||||
|
#### Fuel
|
||||||
|
|
||||||
This type is an accompaniment to the cooking type, as it defines
|
This type is an accompaniment to the cooking type, as it defines
|
||||||
what can be burned in furnaces and other cooking tools from mods.
|
what can be burned in furnaces and other cooking tools from mods.
|
||||||
@ -289,37 +287,14 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
They don't have an output, like other recipes, but they have a burn time,
|
They don't have an output like other recipes, but they have a burn time
|
||||||
which defines how long they will last as fuel, in seconds.
|
which defines how long they will last as fuel, in seconds.
|
||||||
So, the diamond is good as fuel for 300 seconds!
|
So, the diamond is good as fuel for 300 seconds!
|
||||||
|
|
||||||
###Tool Repair
|
|
||||||
This is a fairly simple type of craft. It simply allows two tools, of the
|
|
||||||
same type, to be crafted together, and produce a tool with the
|
|
||||||
combined wear of the two separate tools, minus the additional wear
|
|
||||||
as defined in the additional_wear field.
|
|
||||||
|
|
||||||
{% highlight lua %}
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "toolrepair",
|
|
||||||
additional_wear = -0.2,
|
|
||||||
})
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
This looks very different from other crafts! The only field (other than
|
|
||||||
type) that it has is a field that looks rather strange. It defines the amount
|
|
||||||
of wear subtracted from tools that are repaired. Because it is subtracted,
|
|
||||||
negative values make the new tool more durable. -1 means that any 2
|
|
||||||
tools will form to make a new one without any wear, while 1 disables
|
|
||||||
it, because even 2 new tools will make a tool with 100% wear!
|
|
||||||
So, in the example provided, two tools crafted together will regain 20%
|
|
||||||
of the total wear, along with the amounts of use that both tools had
|
|
||||||
left.
|
|
||||||
|
|
||||||
## Groups
|
## Groups
|
||||||
|
|
||||||
Items can be members of many groups, and groups may have many members.
|
Items can be members of many groups, and groups can have many members.
|
||||||
Groups are usually identified using ``group:group_name``
|
Groups are usually identified using `group:group_name`
|
||||||
There are several reason you use groups.
|
There are several reason you use groups.
|
||||||
|
|
||||||
Groups can be used in crafting recipes to allow interchangeability
|
Groups can be used in crafting recipes to allow interchangeability
|
||||||
|
Loading…
x
Reference in New Issue
Block a user