Type in @minecraft/server
A block face.
import type { Direction } from '@minecraft/server';Definition
Section titled “Definition”export type Direction = "Down" | "Up" | "North" | "South" | "West" | "East";Used by
Section titled “Used by”Block.liquidCanFlowFromDirection, PlayerInteractWithBlockAfterEvent.blockFace, BlockHitInformation.face, BlockComponentPlayerInteractEvent.face, BlockComponentPlayerPlaceBeforeEvent.face, BlockInstrumentComponent.getInstrumentName, BlockInstrumentComponent.playInstrumentSound, BlockRedstoneProducerComponent.getConnectedFaces, BlockRedstoneProducerComponent.getStronglyPoweredFace, EntityHitBlockAfterEvent.blockFace, ItemStartUseOnAfterEvent.blockFace, ItemUseOnEvent.blockFace, PlayerCancelBreakingBlockAfterEvent.face, PlayerStartBreakingBlockAfterEvent.face, BlockRaycastHit.face