@minecraft/server
    Preparing search index...

    Class BlockTypesBeta

    Contains a catalog of Minecraft Block Types that are available in this world.

    Index

    Methods

    Methods

    • Beta

      Parameters

      • typeName: string

        Identifier of the block type. Should follow a namespace:id pattern, such as minecraft:dirt.

      Returns undefined | BlockType

      BlockType object, or undefined if the block type is not available within this world.

      Returns a BlockType object for the specified identifier.

    • Beta

      Returns BlockType[]

      Returns a collection of all available block types.