Jump to content

Recommended Posts

Posted

So I'm trying to setup my base mod file in Eclipse using this tutorial http://www.minecraftforge.net/wiki/Tutorials/Making_the_base_mod_file.

 

The problem I'm having is that certain parameters or functions are not being recognized as types.

 

package gilgamesh.tutorialmod.common;

import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

@Mod(modid = "tutorial", name = "Tutorial Mod", version = "1.0.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class mod_tutorial {

@Instance("tutorial")
public static mod_tutorial instance;

@PreInit
public void preInit(FMLPreInitializationEvent event) {

}

@Init
public void init(FMLInitializationEvent event) {

}

@PostInit
public static void postInit(FMLPostInitializationEvent event) {

}
}

 

NetworkMod, PreInit, Init, and PostInit all "cannot be resolved to a type".

 

Totally new to JAVA. I know I've done something wrong here.

Posted

If you are New to Java Then you shouldnt be modding.. Learn some Java Then come back.

 

Id guess youre Imports are wrong.

Maybe you were following a tutorial for a different Version Then you are coding Abd The Imports changed.

Also read about Java class naming Standards please

Posted

Thanks, both of you.

 

I am studying Java and it is similar to other coding languages that I work with. The major thing for me now is just learning the calls and vocab.

 

Could you please offer me the proper setup for the base mod in the newest version? I am having difficulty locating it.

Posted

1) Remove the @NetworkMod annotation completely.

2) @PreInit, @Init and @PostInit are removed, change them to @EventHandler.

3) Please use Java coding conventions.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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