@minecraft
    正在准备搜索索引...

    类 ItemBlockDynamicPropertiesComponent实验性

    Represents the dynamic properties of a block. Only available from block entities. Up to 1KBytes of data can be stored per block entity in their dynamic properties storage.

    层级 (查看层级一览)

    索引

    属性

    isValid: boolean

    Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.

    typeId: string

    Identifier of the component.

    componentId: "minecraft:block_actor_dynamic_properties" = 'minecraft:block_actor_dynamic_properties'

    方法

    • 参数

      • key: string

      返回 string | number | boolean | Vector3

      Returns a DynamicProperty that was stored with the provided key. Keys are unique to each content pack and cannot be used to retrieve dynamic properties set from other content packs. Returns undefined if the key was not found.

      This function can throw errors.

      Error

      InvalidItemStackError