int z = pos.getBlockZ();
for (int y = pos.getBlockY() + 1; y <= maxY; y++) {
if (BlockType.canPassThrough(world.getId(x, y, z))) {
if (rider.length() != 0 && c.isValidMob(rider)) {
world.spawnMob(x, y, z, id, rider);
} else {
world.spawnMob(x, y, z, id);
}
return;
}