@minecraft
    Preparing search index...

    Class RecipeCraftingContextBeta

    Provides access to the slots and recipe of a players active crafting UI ie. stonecutter.

    Index
    inputSlotCount: number

    The amount of addressable input slots for getInputItem and setInputItem.

    EngineError

    isValid: boolean

    Whether this recipe crafting context is valid. Invalidates when the player closes the crafting UI or leaves.

    validRecipes: string[]

    The identifiers of the recipes that are valid for the current input items.

    EngineError

    • World mutation

      Parameters

      • recipeId: string

        The identifier of a valid recipe to select.

      Returns void

      Selects a recipe for the current crafting operation.

      EngineError