Now its time to create our mod file, but first we need to delete the ExampleMod.
Next we create the mod package
Next you fill in the name, enter "com.[YourName].[ModId]" for example "com.jtrent238.tutmod", then click Finish.
Next create the Main Mod Class.
Now Simply Enter a name for the class file, and click Finish.
So you should now have some code, some what like below.
We need to add the following line before our Class to Register the mod. Don't worry we will fix the errors later.
Next we need to add the following to define the variables, such as mod version, name, id, Minecraft version, and author.
So now our mod file should look like this.
Now we have to setup our event handlers. To do that just add the following like so.
So now you should have this much.
Now just hover over the red errors and Import them.
This should be your current Imports:
You need to Create annotation Forge Subscribe. (One of the errors)
In the ForgeSubscribe Class enter
In the ForgeSubscribe Class enter
After you have entered that you ForgeSubscribe class should look like this.
And if you did everything correctly then Minecraft should run and your mod should be registered.
And here is what the finish mod code should look like.