getBlockState

fun CommandContext<CommandSourceStack>.getBlockState(name: String): BlockState

Retrieves a BlockState from the command context.