This is a server-side mod to be used with mfpv-client.
Please note that there is an issue in MC version 1.16 where vanilla MC does a check on how fast the player is moving and if the player is moving too fast, then it will cause rubberbanding. This isn't good for the FPV mod since players are intended to go fast. To fix this, you might get away with flying slowly, but if rubberbanding becomes too much of an issue for you, then you will have to compile a custom build of the Forge MC.
To do this, you need to fork MinecraftForge, checkout branch 1.16.x, cut out the movement checking code, then compile Minecraft with your patch.
I have an example of how to do this here: https://github.com/taylrun/MinecraftForge/commit/56e6ed23816ebbd630995beb295b41dbf5232d01. You can fork this example and compile from there to remove it.
This code follows the Minecraft Forge installation methodology. It will apply some small patches to the vanilla MCP source code, giving you and it access to some of the data and functions you need to build a successful mod.
Note also that the patches are built against "unrenamed" MCP source code (aka srgnames) - this means that you will not be able to read them directly against normal code.
Source pack installation information:
See the Forge Documentation online for more detailed instructions: http://mcforge.readthedocs.io/en/latest/gettingstarted/
Step 1: Open your command-line and browse to the folder where you extracted the zip file.
Step 2: You're left with a choice. If you prefer to use Eclipse:
- Run the following command: "gradlew genEclipseRuns" (./gradlew genEclipseRuns if you are on Mac/Linux)
- Open Eclipse, Import > Existing Gradle Project > Select Folder or run "gradlew eclipse" to generate the project. (Current Issue)
- Open Project > Run/Debug Settings > Edit runClient and runServer > Environment
- Edit MOD_CLASSES to show [modid]%%[Path]; 2 times rather then the generated 4.
If you prefer to use IntelliJ:
- Open IDEA, and import project.
- Select your build.gradle file and have it import.
- Run the following command: "gradlew genIntellijRuns" (./gradlew genIntellijRuns if you are on Mac/Linux)
- Refresh the Gradle Project in IDEA if required.
If at any point you are missing libraries in your IDE, or you've run into problems you can run "gradlew --refresh-dependencies" to refresh the local cache. "gradlew clean" to reset everything {this does not affect your code} and then start the processs again.
Should it still not work, Refer to #ForgeGradle on EsperNet for more information about the gradle environment. or the Forge Project Discord discord.gg/UvedJ9m
MinecraftForge ships with this code and installs it as part of the forge installation process, no further action is required on your part.
https://www.youtube.com/watch?v=8VEdtQLuLO0&feature=youtu.be
For more details update more often refer to the Forge Forums: http://www.minecraftforge.net/forum/index.php/topic,14048.0.html