mirror of
https://github.com/minetest/minetest_game.git
synced 2025-07-02 23:00:21 +02:00
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:
@ -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`.
|
||||
|
Reference in New Issue
Block a user