跳转至

EntityLeashableComponent

文档版本:1.21.0.24

EntityLeashableComponent类,扩展自EntityComponent。script_api.minecraft/server.entityleashablecomponent.description

常量

componentId
static read-only componentId = "minecraft:leashable";

属性

softDistance
read-only softDistance: float;

方法

leash

script_api.minecraft/server.entityleashablecomponent.leash.description

leash(leashHolder: Entity): void
unleash

script_api.minecraft/server.entityleashablecomponent.unleash.description

unleash(): void