Initializes a new BlockAction.
BlockAction
The parameters for this block action.
BlockAction
The type of this block action in the game.
BlockAction
Clones the block action into a new instance.
A new instance of the current block action.
BlockAction
Static explodeCreates an explosion at the specified offset from the affected block.
The x offset.
The y offset.
The z offset.
The block to be used to replace all blocks affected by the explosion.
BlockAction
Static playPlays a sound globally.
The sound to play.
Optional volume: number = 1The volume of the sound.
Optional pitch: number = 1The pitch of the sound.
Optional pan: number = 0The pan of the sound.
BlockAction
Static replaceReplaces a block at the specified offset from the affected block with the specified block state.
The x offset.
The y offset.
The z offset.
The block to replace the existing block with.
BlockAction
Static runRuns a trigger at the specified offset from the affected block.
The x offset.
The y offset.
The z offset.
The trigger to run.
Optional tickDelay: number = 0The number of ticks to delay the trigger.
BlockAction
Static setSets the block state parameters at the specified offset from the affected block.
The x offset.
The y offset.
The z offset.
The block state parameters to be used.
BlockAction
Generated using TypeDoc
Defines a block action that can be performed in a TriggerSheet.
BlockAction