Page 1 of 1

on_player_crafted_item: add recipe

Posted: Sat Sep 24, 2016 9:04 pm
by AmE
i would require a way to find out what recipe was used on crafting an item (one that is much more efficient then searching through all recipes, even more since the the possibility to have more then one recipe for a certain item exists - due mods adding recipes for example ),

It would be really nice to have this added. (unless there is already a way, and i completely overlooked it after searching through it for an hour)

from:

Code: Select all

on_player_crafted_item
<...>
Contains
item_stack :: LuaItemStack: The crafted item
to

Code: Select all

Contains
item_stack :: LuaItemStack: The crafted item
used_recipe :: LuaRecipe: Used Recipe

Re: on_player_crafted_item: add recipe

Posted: Tue Nov 08, 2016 10:26 am
by Danielv123
But thats not possible if items were to stack. Or there are multiple recipes to create one item (petrol for example)

Re: on_player_crafted_item: add recipe

Posted: Mon Nov 14, 2016 11:51 am
by Rseding91
Added for 0.15.