Tile

9 bits bg       
9 bits mid      
9 bits fg        32 bits
3 bits slope    
2 bits fg state  (0: fg has ore, 1: bg has ore, 2: both have ores)

5 bits liquid type 
6 bits paint        16 bits
5 bits reserved    