ColumnBlockPosition
interface ColumnBlockPosition
Represents a 2D block position in a Minecraft world, defined by integer X and Z coordinates.
This is used as the result type for column block position arguments, where the Y coordinate is not specified and must be provided separately.
Example usage in a command:
columnBlockPosition("pos") {
executes { context ->
val resolver = context.getArgument("pos", ColumnBlockPositionResolver::class.java)
val col = resolver.resolve(context.source)
val pos = col.toPosition(64) // supply Y coordinate
1
}
}Content copied to clipboard