Bones animation has several frame numbers, but entity.frame only stores one. Your workaround is correct, that's the best way to get additional frame numbers.