Jump to content

Recommended Posts

Posted

I just started setting up a config file so that the item and block IDs can be changed if they need to, but when running the code it just keeps crashing and I cant find any reason why. I think that the problem lies in the variable for the IDs

 

Here is my main mod file

  Reveal hidden contents

 

Here is the Console Log

 

  Reveal hidden contents

 

Posted

This is probably not the problem, but you should use:

 

Configuration config = new Configuration(event.getSuggestedConfigurationFile());

 

instead of

 

Configuration config = new Configuration(new File("config/altarcraft.cfg"));

 

Could you also post the error you're getting when running your mod?

Posted

I just Edited it into my original post, and I would Have done that except I am receiving the error The method getSuggestedConfigurationFile() is undefined for the type FMLInitializationEvent

Posted

Moved config to PreInit, still getting crash. This is the main error I believe:

java.lang.IllegalArgumentException: Slot 0 is already occupied by afiolmahon.altarcraft.BlockShimmeringStone@4ccca363 when adding afiolmahon.altarcraft.TileEntityAltarBlock@efadff9

 

Help is much appreciated

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.