How do I craft a given item from lua?
Posted: Sun Mar 13, 2016 9:31 am
Hi there,
Just trying to find the method that is called when you click an item to craft.
I realise there is an insert command to place an item in the player's inventory, but I would like to be able to have an item begin crafting on a condition set in a mod.
Hoping there is a simple 'player.craft(itemname, quantity)' style solution, but I couldn't find the code to do it.
Any help would be much appreciated.
Thank you.
Just trying to find the method that is called when you click an item to craft.
I realise there is an insert command to place an item in the player's inventory, but I would like to be able to have an item begin crafting on a condition set in a mod.
Hoping there is a simple 'player.craft(itemname, quantity)' style solution, but I couldn't find the code to do it.
Any help would be much appreciated.
Thank you.