You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when crafting an item, if it is used in a retrieval task but you immediately use it for another recipe without closing the crafting table, it doesn't count towards the completion.
e.g. you have a quest that requires planks and one that requires sticks, if you use your log to craft planks and immediately craft sticks with the planks, the plank quest will not be completed.
alternatively, quests could be checked when the player inventory is modified for basically the same result.
The text was updated successfully, but these errors were encountered:
using itemCraftedEvent works but only if shift+click is used to send it directly to the inventory, and it is called multiple times in a few cases (shift+right click to get a stack on the cursor, and vanilla crafting bench calling twice) so it needs to be scheduled.
using player.openContainer allows also getting whatever is in the currently opened inventory. (e.g. for crafting table-like blocks with inventories.)
a function that does the same job as TaskRetrieval.detect but takes a list of itemsStacks for each player or just directly uses player.openContainer and whatever the last crafted item was (clearing it after) might be the easiest way to do that.
when crafting an item, if it is used in a retrieval task but you immediately use it for another recipe without closing the crafting table, it doesn't count towards the completion.
e.g. you have a quest that requires planks and one that requires sticks, if you use your log to craft planks and immediately craft sticks with the planks, the plank quest will not be completed.
alternatively, quests could be checked when the player inventory is modified for basically the same result.
The text was updated successfully, but these errors were encountered: