Move duplicate recipe from books to default.register_craft_metadata_copy()

This allows mods to easily implement the same behaviour, e.g. for letters.
This commit is contained in:
Thomas--S 2020-01-04 01:09:58 +01:00 committed by Paramat
parent 6e32287a42
commit 1940961d63
3 changed files with 43 additions and 28 deletions

View file

@ -1055,3 +1055,11 @@ for the wielded skeleton key.
if `nil` is returned, it is assumed that the wielder did not have
permissions to create a key for this node, and no key is created.
`default.register_craft_metadata_copy(ingredient, result)`
----------------------------------------------------------
This function registers a shapeless recipe that takes `ingredient`
and `result` as input and outputs `result`.
The metadata of the input `result` is copied to the output `result`.