Home Commands Examples Getting Started With Scripts Global Keywords
Block BlockIngredient BlockState
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

Fallable

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.block.type.falling.Fallable;

Description

Members

getFallDamageSource(entity as Entity) as DamageSource
Gets the damage source used when this block falls on an entity.

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

script.zs
// Fallable.getFallDamageSource(entity as Entity) as DamageSource;
myFallable.getFallDamageSource(myEntity);

Parameters:

entity Type: Entity

Return Type: DamageSource

onBrokenAfterFall(level as Level, pos as BlockPos, fallingEntity as FallingBlockEntity)
script.zs
// Fallable.onBrokenAfterFall(level as Level, pos as BlockPos, fallingEntity as FallingBlockEntity);
myFallable.onBrokenAfterFall(myLevel, myBlockPos, myFallingBlockEntity);

Parameters:

level Type: Level
pos Type: BlockPos
fallingEntity Type: FallingBlockEntity
onLand(level as Level, pos as BlockPos, fallingState as BlockState, placeState as BlockState, fallingEntity as FallingBlockEntity)
script.zs
// Fallable.onLand(level as Level, pos as BlockPos, fallingState as BlockState, placeState as BlockState, fallingEntity as FallingBlockEntity);
myFallable.onLand(myLevel, myBlockPos, myBlockState, myBlockState, myFallingBlockEntity);

Parameters:

level Type: Level
pos Type: BlockPos
fallingState Type: BlockState
placeState Type: BlockState
fallingEntity Type: FallingBlockEntity