API Event when crafting fails
Posted: Sun Mar 15, 2020 1:53 am
I would like an event I can listen to that fires when crafting fails. TMK this just means when you are missing materials/tech/non-hand-craft-able. The event should include the item/recipe that failed.
I would like this, so I can make a mod that prevents all real-crafting but instead puts a ghost of any desired item onto the cursor.
Right now I have a non-robust hack that puts the player into cheat mode (allowing them to `craft` (aka ghost-select) everything), but detects the craft event and tries to delete the item after the craft happens (undo the craft) then ghost the deleted item to the cursor. It is very buggy and often allows duplication bugs and interacts with other events poorly.
Thanks!
-Kizrak
I would like this, so I can make a mod that prevents all real-crafting but instead puts a ghost of any desired item onto the cursor.
Right now I have a non-robust hack that puts the player into cheat mode (allowing them to `craft` (aka ghost-select) everything), but detects the craft event and tries to delete the item after the craft happens (undo the craft) then ghost the deleted item to the cursor. It is very buggy and often allows duplication bugs and interacts with other events poorly.
Thanks!
-Kizrak