I am making an isometric game where you control a dice. Whenever you move one cell the number flips real time to the number shown on top of it (so no randomness). My question is, if the dice has the below edges (show on graph) and the isometric board goes only forward-backward and sideways to infinity, how many animation will i need to make it so that whenver it starts from dice number 1 and rolls forward (for eg.) and comes again to number 1, and same goes to other dice numbers?

It's a bit complicated question, help is appreciated

There is a dice, it starts with "1 on top", "2 on left side", "5 on right side", "3 on the rear", "4 on the front" and "6 underneath". There is an isometric board which this dice is on top of and it only goes foraward-backward or left-right. The isometric board is made up of single cells. Whenever the dice goes one cell forward it flips one side (like before 1 was on top, now 3 is on top and etc.). If this iso board goes from right-left to forward-backward to infinity, how many different transitions at total will it take when doing all of the sections one by one?

You know, you could give each number it's own animation as a face.

For example, have an active object for the 1-face that has an animation for the 1 displayed on the top, front-left and front-right faces, and invisible when the 1 would be displayed on the rear and bottom faces, and a transitionary animation from each of those to each other.
Then do the same for the other five numbers, and have your dice object made of these.

That way you'd need to do less animations, and could handle everything in the coding.