Our own recipe model that compares the empty squares too. Click a square to cycle empty → iron → stick.
Official docs on shaped recipes · Terrain model
This is our own model, used in the video "Why does Minecraft make different items from the same ingredients, depending on how you place them?" on the YouTube channel "How Games Are Made" (ゲームのつくり方の歴史). AI was used to make the diagrams and code, and the facts were checked against sources by the creator. No game footage or official assets are used.
Why the same ingredients make different items depending on how you place them in the 3×3 grid, checked by matching against templates. Clicking a square cycles empty → iron → stick, and the shape you placed is compared with the templates (pickaxe, axe) to give an answer.
First make a pickaxe from 3 iron and 2 sticks, then put the same ingredients in the shape of an axe. "Allow the shape to be shifted" and "Allow a mirrored shape" accept the same shape even if it is not in exactly the same position as the template. With "Failure test: ignore empty squares", only the number and kind of ingredients are compared, so the pickaxe and the axe can no longer be told apart. For the 3 questions in "Guess, then try", guess the answer before you click.
Recipe matching compares not only the ingredients but also where the empty squares are, and decides which changes (shifting, mirroring) are allowed. That is how it tells items apart. This is our own matching procedure based on officially published ingredient layouts, not the original game's images, code or UI.