recipe by name
Posted: Tue Dec 29, 2015 8:12 pm
When a player crafts an item the game triggers the event "on_player_crafted_item". In that even you get the variable item_stack. So, you have the items name with "event.item_stack.name". How does one get the recipe class of the achieved name.
I tried a couple of things that (of course) didn't work. I tried just adding ".recipe" after the "item_stack" (with and without ".name"). and some other things that didn't work.
How would one get the recipe of an item if you have the name of that item?
thanks,
Matjojo
I tried a couple of things that (of course) didn't work. I tried just adding ".recipe" after the "item_stack" (with and without ".name"). and some other things that didn't work.
How would one get the recipe of an item if you have the name of that item?
thanks,
Matjojo