The BlockDynamicPropertiesComponent class in @minecraft/server.
Class in @minecraft/server
Extends BlockComponent
import { BlockDynamicPropertiesComponent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”componentId
Section titled “componentId”static read-only
static readonly componentId = 'minecraft:dynamic_properties';Methods
Section titled “Methods”get(key: string): boolean | number | string | Vector3 | undefined;Parameters
keystring
Returns
boolean | number | string | Vector3 | undefinedTypes
set(key: string, value?: boolean | number | string | Vector3): void;Parameters
keystringvalueoptionalboolean | number | string | Vector3
Types
totalByteCount
Section titled “totalByteCount”totalByteCount(): number;Returns
numberInherited
Section titled “Inherited”From BlockComponent: block