Ability to have player craft item
Posted: Wed Mar 16, 2016 7:24 am
Hi there,
Was 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 a player begin crafting an item 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.
Thank you.
Was 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 a player begin crafting an item 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.
Thank you.