mojira.dev
MCPE-39621

Lossy/BrokenCrafting

When crafting items with a full inventory, it is possible to lose the crafted items. AKA they get deleted after being crafted. This is a massive flaw in the crafting system, and can result in up to a 90% loss in crafted items, especially for those on windows 10 who are mass crafting. Mass crafting being where you break double chests full of items to craft them. Melon slices to melons for example.

It only happens in a specific way, and its rather hard to explain in text, so i'll just link to the bugrock of the week video i did on this, which shows how to reproduce 100% of the time.

https://youtu.be/_w9c1yUrM7o

Additional information from [~Auldrick]:

Steps to reproduce:
1. In Creative mode, place a full stack of oak planks in your inventory. Fill the rest of your inventory with wooden shovels.
2. Switch to Survival mode.
3. Open a crafting interface (either the player's inventory or a crafting table).
4. Locate the recipe for oak slabs in the recipe book and shift-click it. This will leave a stack of 60 oak slabs attached to the cursor because there is no room to store it in the player's inventory.
5. Shift-click the oak slab recipe a second time.

Expected results:
Uncertain. The excess items should probably be thrown on the ground, since there's nowhere to put them. They could also be put in the crafting grid if there's a place for them, but once the grid is full the same problem arises.

Actual results:
The ingredients are consumed but no output items are produced and stored.

Linked issues

Comments 6

This might be by design, however, I'm confirming it because I think the design could be changed to be more internally consistent in this situation, and the change would prevent losing items.

Here's what's happening:

This applies to crafting in Survival mode using either the player's crafting grid or a crafting table. It happens when you shift-click an item in the Recipe Book, so it probably only applies when using keyboard and mouse inputs. (I don't know of an equivalent auto-crafting operation using touch or controller inputs.)

When you craft something in Survival by shift-clicking its recipe in the Recipe Book, the game acts as if it crafts the output item up to a stack at a time. (The actual number crafted is the largest multiple of the recipe's output count that doesn't exceed the stack size of the item.) The game then attempts to store the resulting (full or partial) stack in inventory, first filling partial stacks and then looking for an empty slot to store any remainder. If it succeeds in storing all the items, the game goes on to craft another stack. If it cannot store all the items this way, it leaves the excess attached to the cursor and stops crafting. This is so that you can decide what to do with the excess items: You can do any combination of the following: drop some or all of them on the ground, exchange the stack with the contents of an inventory slot, or store the stack in one or more slots in the crafting grid.

If the game cannot store all the crafted items in inventory but one or more items are already attached to the cursor, it discards the excess items because it has nowhere to put them. This is how your items are being lost. It would be more consistent with other inventory operations if the game threw the items onto the ground in this situation, as it does items you leave in the crafting grid or attached to the cursor if there's no room for them in your inventory when you exit the crafting interface.

Incidentally, when you shift-click in the recipe book the contents of the crafting grid are ignored, so one way you can work around this is to store any items left attached to the cursor in the slots of the crafting grid after each shift-click operation. If you do, the next shift-click will again attach its resulting stack to the cursor instead of discarding them. Of course, when you exit the crafting interface the items in the grid will still be thrown on the ground, but you won't lose them and can move items out of your inventory to make room to pick them up.

Auto-crafting for touch controls exists in a way since it keeps the items placed in the grid that were not consumed and single taps crafts once each time.
Edit: Going to attempt to try (if not getting distracted first)

@unknown: By "auto-crafting" I specifically mean trying to craft the maximum number of items in a single operation using the recipe book. The crafting grid is not actually used by auto-crafting and its contents don't matter. As far as I'm aware, any method of crafting that uses the crafting grid works as expected and does not cause a loss of items. If you discover that this isn't true, please add a comment about it.

Cannot reproduce on Android 5.1.1 32-bit ARM (Bedrock 1.7.0.13) since it seemingly creates a spot by dropping an item ❓ in the inventory when a crafting recipe is selected if no room exists and also refuses to craft when no more room is possible.

EDIT: Not tested on heavily laggy server that is running behind on inventory control.

I had a similar issue. In survival mode on Windows 10, I crafted a single furnace, but had about 6 stacks of cobblestone in my inventory. All stacks of cobblestone disappeared, leaving only the single furnace I created. It was a large loss of materials.

This was fixed in an earlier version.

silentwisperer

(Unassigned)

164422

Confirmed

Windows

window 10

auto-crafting, crafting, crafting-grid, inventory, items, lost, mouse, recipe, recipe-book, shift-click

1.7.1, 1.8.0, 1.9.0

1.14.1 Hotfix

Retrieved