@occultus/api-root - v0.29.3
    Preparing search index...

    设置一个带有方块实体的方块

    BlockEntity

    new BlockWithEntity("minecraft:stone", "starock:stone");
    
    Index

    Constructors

    • Parameters

      • blockId: string

        方块的 ID

      • entityId: string

        方块实体的 ID

      • OptionaltickEventName: string

      Returns BlockWithEntity

    Properties

    blockId: string

    方块的 ID

    entityId: string

    方块实体的 ID

    tickEventName?: string

    Methods

    • 获取方块实体的数据

      Parameters

      • block: Block

        要获取方块实体的方块

      Returns BlockEntityData | undefined

      获取到的方块实体

    • Parameters

      • _event: PlayerInteractWithBlockAfterEvent

      Returns void

    • Parameters

      • _event: DataDrivenEntityTriggerAfterEvent

      Returns void

    • 放置一个方块实体

      Parameters

      • dimension: Dimension

        要放置实体的维度

      • location: Vector3

        要放置实体的位置

      Returns Entity