Skip to content

ShapedRecipe

This component is used to create an interface similar to the Crafting Table.

Source Code

Overview

CoalCoalCoalCoalCoalCoalCoalCoalCoal
Block of Coal
md
<ShapedRecipe
    b2="coal"
    b3="stick"
    output="torch"
    :count="4"/>

<ShapedRecipe
    a1="coal" b1="coal" c1="coal"
    a2="coal" b2="coal" c2="coal"
    a3="coal" b3="coal" c3="coal"
    output="coal_block"/>

Component options

PropDefaultDescription
a1Specifies ingredients in the top left slot
b1Specifies ingredients in the top slot
c1Specifies ingredients in the top right slot
a2Specifies ingredients in the left slot
b2Specifies ingredients in the middle slot
c2Specifies ingredients in the right slot
a3Specifies ingredients in the bottom left slot
b3Specifies ingredients in the bottom slot
c3Specifies ingredients in the bottom right slot
outputSets the recipe's output.
count1The number of output items
shapelessfalseForces shapeless recipe mode if "top left slot" and similar parameters are used.

Not associated with or approved by Mojang Studios or Microsoft