Far render distance problem

As you can see, I had the same question: You need to split your terrain into chunks. Then you have to move (localTranslation) all chunks in the opposite direction of the camera (camera.getDirection().negateLocal()) or you save the “virtual player position” and you use this to calculate the direction of movement. After that you need to add/remove the required terrain chunks to only render a certain amount of them.