Jump to content

Recommended Posts

Posted

Heyho Guys!

 

I have created a simple Mod to test the features of Forge 1.8. Unfortunately, My Mod is not started at all. I don't know what's wrong, every structure is the same as I found in the examplemod which is run completely fine.

 

Any Ideas?

 

 

  Reveal hidden contents

 

 

Thanks in advance!

Posted

Log please.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted
  On 2/7/2015 at 11:12 AM, Abastro said:

Log please.

 

  Reveal hidden contents

 

Posted

I did it in two projects to make it easier to have several mods with one forge version. I have one folder with Forge in it. For every Mod I create a new workspace, create the mod's project and import the Forge folder as an existing project. Then I add it to the build path of the mod project and everything works fine.

 

I think, I'm going to check my Java. I installed Java 8 recently and I think, not everything was updated correctly because I had several co-existent Java versions.

Posted

GOT IT! Auch ein blindes Huhn findet mal ein Korn... (= Even a blind chicken finds something to eat sometimes)

 

There are two different versions of everything we need for a mod: The @Mod annotation, the Init events, the @EventHandler Annotation and so on, once in the package cpw.mods.fml.common and once in the package net.minecraftforge.mods.common. Although there are exactly the same, they are obviously not interchangeable. I had the wrong one imported (cpw.mods.fml.common). Was this used in 1.7? Otherwise I cannot explain why my mod worked in 1.7 with exactly the same main class...

 

@diesieben07: I'm still interested in this library thing you mentioned. Which one do I have to import? I cannot find anything that works.

Posted

You don't have to import the forge library. You just have to run

gradlew setupDecompWorkspace eclipse

and you import your project in eclipse. Done. No need for a seperate 'Forge' project.

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/

Posted
  On 2/8/2015 at 1:54 PM, Bedrock_Miner said:

  Quote

and you import your project in eclipse.

Actually this is exactly what I did. "Import existing project into workspace". But this creates a new project in the eclipse workspace, so I called it like this.

Then why don't you have your code in
src/main/java

?

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.