Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.api.block.type.falling.Fallable;

Link to getFallDamageSource

Name: getFallDamageSource

Gets the damage source used when this block falls on an entity.

Returns: The damage source used when this block falls on an entity.
Return Type: DamageSource

ZenScript
Copy
Fallable.getFallDamageSource(entity as Entity) as DamageSource
ParameterType
Parameter
entity
Type
Entity

Link to onBrokenAfterFall

Name: onBrokenAfterFall

ZenScript
Copy
Fallable.onBrokenAfterFall(level as Level, pos as BlockPos, fallingEntity as FallingBlockEntity)
ParameterType
Parameter
level
Type
Level
Parameter
pos
Type
BlockPos
Parameter
fallingEntity
Type
FallingBlockEntity

Name: onLand

ZenScript
Copy
Fallable.onLand(level as Level, pos as BlockPos, fallingState as BlockState, placeState as BlockState, fallingEntity as FallingBlockEntity)
ParameterType
Parameter
level
Type
Level
Parameter
pos
Type
BlockPos
Parameter
fallingState
Type
BlockState
Parameter
placeState
Type
BlockState
Parameter
fallingEntity
Type
FallingBlockEntity