getPosition

fun getPosition(context: CommandContext<ClientCommandSource>, name: String): Vec3

Reads the resolved position for the parsed name argument. Relative (~) coordinates resolve against the player, local (^) against the look direction.

Defaults to the vanilla Vec3Argument.vec3() behavior (centerCorrect = true), which centers integer block positions on x/z.