This is useful for getting information about where a custom prefab voxel is located. I hope it is useful.
private VoxelPlayEnvironment environment;
private VoxelChunk selfChunk;
private Voxel selfVoxel;
private Vector3 selfPosition;
private int selfVoxelIndex;
private void Start()
{
environment = VoxelPlayEnvironment.instance;
selfVoxel = environment.GetVoxel(transform.position);
selfChunk = environment.GetChunk(transform.position);
environment.GetVoxelIndex(transform.position, out _, out selfVoxelIndex);
selfPosition = environment.GetVoxelPosition(selfChunk, selfVoxelIndex);
}