Additional variant value. Can be used to further differentiate variants.
import { world } from "@minecraft/server";world.afterEvents.entitySpawn.subscribe(({ entity }) => { const markVariant = entity.getComponent("mark_variant"); markVariant.value; markVariant.isValid();}); Copy
import { world } from "@minecraft/server";world.afterEvents.entitySpawn.subscribe(({ entity }) => { const markVariant = entity.getComponent("mark_variant"); markVariant.value; markVariant.isValid();});
Readonly
The entity that owns this component. The entity will be undefined if it has been removed.
Identifier of the component.
Value of the mark variant value for this entity.
This property can't be edited in read-only mode.
Static
Whether the component is valid.
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.
Additional variant value. Can be used to further differentiate variants.
Example: entityMarkVariant.js