Home Commands Examples Getting Started With Scripts Global Keywords

Abilities

Importing the class

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.

script.zs
import crafttweaker.api.entity.type.player.Abilities;

Methods

Return Type: float

script.zs
// Abilities.getFlyingSpeed() as float
myAbilities.getFlyingSpeed();

Return Type: float

script.zs
// Abilities.getWalkingSpeed() as float
myAbilities.getWalkingSpeed();
script.zs
Abilities.setFlyingSpeed(param0 as float)
ParameterType
Parameter
param0
Type
float
script.zs
Abilities.setWalkingSpeed(param0 as float)
ParameterType
Parameter
param0
Type
float

Properties

NameTypeHas GetterHas Setter
Name
flyingSpeed
Type
float
Has Getter
true
Has Setter
true
Name
walkingSpeed
Type
float
Has Getter
true
Has Setter
true