final World world = chunk.getWorld();
for (byte count = 0; count < attempts; count++) {
final int x = chunk.getBlockX(random);
final int z = chunk.getBlockZ(random);
final int y = random.nextInt(128);
dungeon.randomize();
if (dungeon.canPlaceObject(world, x, y, z)) {
dungeon.placeObject(world, x, y, z);
}
}
}