private void internal(Chunk source, Random random, int originX,
                          int originY, int originZ, int amount, BasicOre type) {
        for (int i = 0; i < amount; i++) {
            int x = originX + random.nextInt(amount / 2) - amount / 4;
            int y = originY + random.nextInt(amount / 4) - amount / 8;
            int z = originZ + random.nextInt(amount / 2) - amount / 4;
            x &= 0xf;
            z &= 0xf;
            if (y > 127 || y < 0) {
                continue;
            }
            Block block = source.getBlock(x, y, z);
            if (block.getTypeId() == 1) {
                itm.overrideBlock(block,type);
                popcount++;
            }


        }
    }