It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.entity.type.player.Abilities;

Name: getFlyingSpeed

Return Type: float

ZenScript
Copy
// Abilities.getFlyingSpeed() as float

myAbilities.getFlyingSpeed();

Name: getWalkingSpeed

Return Type: float

ZenScript
Copy
// Abilities.getWalkingSpeed() as float

myAbilities.getWalkingSpeed();

Name: setFlyingSpeed

ZenScript
Copy
Abilities.setFlyingSpeed(param0 as float)
参数类型
参数
param0
类型
float

Name: setWalkingSpeed

ZenScript
Copy
Abilities.setWalkingSpeed(param0 as float)
参数类型
参数
param0
类型
float
名称类型可获得可设置
名称
flyingSpeed
类型
float
可获得
true
可设置
true
名称
walkingSpeed
类型
float
可获得
true
可设置
true