Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[1.7.10] How to code a minecraft forge mod Part 1: Setup and Base Mod File.

Featured Replies

Posted

Hello, in these tutorials, i will be showing you(rather telling you) how to start a minecraft forge mod. Follow these steps to actually setup you're mod.

 

[spoiler=REQUIREMENTS:]

1. Eclipse

2. JRE

3. JDK

4. (Recromended) Some java/mc modding experience

 

 

[spoiler=PART 1/2: Setup]STEP 1. Download eclipse from https://www.eclipse.org/downloads/

STEP 2. Download Minecraft Forge 1.7.10 SRC from http://www.minecraftforge.net/forum/index.php/topic,21177.0.html

STEP 3. Un-zip the 1.7.10 SRC to any folder, I called the folder Tutorial, you can call it as you please.

STEP 4. Open Command Prompt(cmd) on windows and I think its called command line on mac.

STEP 5. Type in

cd

and drag you're folder into CMD, press enter, a new path should come up with an empty cmd line.

STEP 6. Type in

gradlew setupDevWorkspace eclipse

STEP 7. Wait anywhere from 1-5 minutes for it to download NOTE~ IF you get Build Failed, try again later, it usually means servers are down.

STEP 8(Optional). In the folder you created, look for a .project file. If it is there, you are set!

 

 

[spoiler=PART 2/2: Base File]

STEP 1. Open Eclipse then set the path to the file you created + /eclipse

STEP 2. Navigate to Minecraft/src/main/java

STEP 3. Right click on com.example.examplemod, and hover over Refactor, click rename and rename it to com.'yourname'.'modname', i named mine com.jonnyetiz.tutorial.

STEP 4. Right click on ExampleMod.java and rename that as well to the name of You're mod, after that open ExampleMod.java

STEP 5. Change the 2 strings to whatever you want, the Modid is not the name, it is how minecraft identifies you're mod, I RECROMEND that you use no spaces and all lower case for modid..

STEP 6. Press Run in the top, it looks like a play button in a green circle, if you look in the console, it will say DIRT BLOCK>> tile.dirt, this means it is working!

STEP 7. Close Minecraft and change the example code to 'your mod name'.MODID + " Is Rendering!"

STEP 8. Above Version and Below Modid, place in  public static final String NAME = "Tutorial Mod";  then after Version at the top in the annotation @Mod, put in name = Tutorial.NAME

STEP 9. Run the game.

 

 

[spoiler=HERE is how to make an MCMOD.info(not required)]

STEP 1. Take away the Strings in Tutorial.java, Rename anything that is Tutorial.MODID, VERSION and, NAME you should replace with "insert your text here"

STEP 2. Navigate to minecraft/src/main/resources and open mcmod.info

STEP 3. Make the modid, mod name and version EXACTLY the same as in you're main file.

STEP 4. Change ALL feilds to you're own.

STEP 5(Optional). Go to http://www.textcraft.net and create a logo and click download. Then drag the file to eclipse in minecraft/src/main/resources and rename it to logo.png, then in the MCMOD.info, you can set "logoFile": "/logo.png"

STEP 6. Run and go to Mods and everything should load!

 

 

 

 

 

Hope you found interest in this tutorial! I will upload the second tutorial shortly!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.