First a suggestion instead of
public static void setState(boolean active, World worldIn, BlockPos pos)
{
BlockMachine.setState(active, worldIn, pos, ModBlocks.FLUXGRINDERWORKING, ModBlocks.FLUXGRINDER);
}
Use
public static void setState(boolean active, World worldIn, BlockPos pos)
{
super.setState(active, worldIn, pos, activeBlock, nonActiveBlock);
}
But back on topic did you look at the JSON aswell?