Minecraft Blogs / Tutorial

How to make a minecraft mod for 1.7.10 - Blog 2 - First setup files

  • 296 views, 1 today
  • 1
  • 0
Planetjoshua's Avatar Planetjoshua
Level 24 : Expert Architect
10
Welcome back everyone to the Mod Tutorials for 1.7.10!
Today we will setup your mod.
So you see in game your mod is set as the mod: Example Mod. Its annoying. You dont want that
You have came to the right blog
So first
Delete the package in Minecraft < Src/main/java < com.example.example mod delete it. Then right click Src Main Java and press new and click package name it:
com.yourname.yourmodid. As example on me I would do com.joshua.tutorialmod as a example.
Now make a new Class in there name it: MainRegistry
in your MainRegister class on top of the code: public class MainRegistery {



}
Type this:
@Mod(modid = , name = , version = , (optional) modLanguage = )
Now you will have errors
1.  Put your mouse over @Mod and import mod to cpw.mods.fml.common. Then in src main java and another new package
name it com.yourname.yourmodid.lib for example: com.joshua.tutorialmod.lib
Another new class and name it: RefStrings It stands Reference Strings.
In there type:
public static final String MODID = "tutorialmod"; thats for me it must be your modid like that
then make one for your name, version, and optional modLaunguage
your name should be like "Tutorial Mod"  the version should be like: "1.0 Alpha", "1.0", "0.1" "Pre Release 1.0" Something like it and if you are adding ModLaunguage sence this is English type en_US.lang cause yeah
Back in MainRegistry lets fix these errors.
Value for MODID: RefStrings.MODID Value for name: RefStrings.NAME Value for version: RefStrings.VERSION, and for the language RefStrings.MODLANGUAGE
Now you cant hover to import RefStrings so press Ctrl + Shift + O to import tell it to import to the correct package com.yourname.yourmodid.lib now Run the gradlew runClient.bat and you see your mod stuff is there.
MCMOd.info Will be filled when we Export this mod




Congrats! You have did your First setup files for your mod
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome