# Pastebin De2IAyHN private def getTallestHeightInArea(world: World, startXZ: V3O, size: Int): V3O = { var maxY = new V3O(0, 0, 0) for { x <- startXZ.x_i() to startXZ.x_i() + size z <- startXZ.z_i() to startXZ.z_i() + size} { val tallestY = world.getTopSolidOrLiquidBlock(new BlockPos(x, 0, z)).getY if (tallestY > maxY.y_i()) maxY = new V3O(x, tallestY, z) } maxY }