import { world } from "@minecraft/server";for (const entity of world.getDimension("overworld").getEntities()) { const flyingSpeed = entity.getComponent("flying_speed"); flyingSpeed.value;} Copy
import { world } from "@minecraft/server";for (const entity of world.getDimension("overworld").getEntities()) { const flyingSpeed = entity.getComponent("flying_speed"); flyingSpeed.value;}
Private
Readonly
This property can throw errors.
InvalidEntityError
This property can't be read in early-execution mode.
This property can't be edited in read-only mode.
Example: getEntityFlyingSpeedComponent.js