Setter/Getter/MethodMethod NamesNamesInput/Output
Setter/Getter/Method
Getter
Method Names
getBlockState();
Names
blockState();
Input/Output
Returns an IBlockState
Setter/Getter/Method
Getter
Method Names
getBlock();
Names
block();
Input/Output
Returns an IBlock
Setter/Getter/Method
Getter
Method Names
getOriginalSpeed();
Names
originalSpeed();
Input/Output
Returns an Float
Setter/Getter/Method
Getter
Method Names
getNewSpeed();
Names
newSpeed();
Input/Output
Returns an Float
Setter/Getter/Method
Setter
Method Names
setNewSpeed(float newSpeed);
Names
newSpeed(float newSpeed);
Input/Output
Takes an Float
Copy
var test = mods.compatskills.TraitCreator.createTrait("test", 2, 3, "compatskills:banana", 1, "compatskills:banana|5");

test.onBreakSpeed = function(event as crafttweaker.event.PlayerBreakSpeedEvent) {
    ...
};