Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.7.10] Crash Upon Initialization
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
Camellias

[1.7.10] Crash Upon Initialization

By Camellias, July 6, 2017 in Modder Support

  • Start new topic

Recommended Posts

Camellias    0

Camellias

Camellias    0

  • Tree Puncher
  • Camellias
  • Members
  • 0
  • 16 posts
Posted July 6, 2017

So I'm working on a Fallout mod for 1.7.10, and I'm only on the first item. I'm doing everything the same way as I have for my other mods, but I keep getting a crash every time I try and run the environment. I've tried several times to fix it with the help of a friend, and nothing we've tried works.

 

Below is my code, and the crash report.

 

FalloutMain.java

ItemRevolver.java

ItemIronnugget.java

EntityNugget.java

 

Latest Crash Report

Share this post


Link to post
Share on other sites

That_Martin_Guy    7

That_Martin_Guy

That_Martin_Guy    7

  • Creeper Killer
  • That_Martin_Guy
  • Members
  • 7
  • 177 posts
Posted July 6, 2017

Before this post gets closed because it's in 1.7.10, why are you creating a brand new class for the iron nugget if you are going to do literally nothing in it? Why not just make ItemIronnugget a type of Item?

Share this post


Link to post
Share on other sites

Camellias    0

Camellias

Camellias    0

  • Tree Puncher
  • Camellias
  • Members
  • 0
  • 16 posts
Posted July 6, 2017 (edited)

Because I'm doing stuff with it later. Just at the moment, my attentions are on the revolver, since it'll be the base of several more complex items. 

 

And I don't see why it should be closed for being in 1.7.10, as that's still flourishing in the modding community unlike over half of the latest versions (1.8, 1.9, and 1.12)

Edited July 6, 2017 by Camellias

Share this post


Link to post
Share on other sites

That_Martin_Guy    7

That_Martin_Guy

That_Martin_Guy    7

  • Creeper Killer
  • That_Martin_Guy
  • Members
  • 7
  • 177 posts
Posted July 6, 2017 (edited)

You should only call setUnlocalizedName inside the item class, not when you instantiate its variable. It returns an Item, not ItemIronnugget. 

 

I have been corrected. This is irrelevant.

Edited July 6, 2017 by That_Martin_Guy

Share this post


Link to post
Share on other sites

Camellias    0

Camellias

Camellias    0

  • Tree Puncher
  • Camellias
  • Members
  • 0
  • 16 posts
Posted July 6, 2017

I've tried that. The item completely disappears from the game. No texture, no names, nothing. In its place is Item.null.

Share this post


Link to post
Share on other sites

Draco18s    2098

Draco18s

Draco18s    2098

  • Reality Controller
  • Draco18s
  • Members
  • 2098
  • 14038 posts
Posted July 6, 2017 (edited)
15 minutes ago, That_Martin_Guy said:

You should only call setUnlocalizedName inside the item class, not when you instantiate its variable. It returns an Item, not ItemIronnugget. 

This is literally not a problem.

 

Quote

 

    public Item setUnlocalizedName(String string) {
        return null;
    }

 

 

And...what did you expect this to do?

Edited July 6, 2017 by Draco18s

Share this post


Link to post
Share on other sites

diesieben07    6693

diesieben07

diesieben07    6693

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6693
  • 45741 posts
Posted July 6, 2017

1.7.10 is no longer supported on this forum.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • darkgreenminer
      [1.12.2] Multiple Structure Generation

      By darkgreenminer · Posted 52 minutes ago

      Someone else had that same problem of their mod only spawning the last structure added to WorldGenCustomStructures, and I remembered that the solution I found was what a commentor named Redstone Tim mentioned, that in WorldGenStructure you have to remove 'static'.  I'm happy to email my version of these two classes to you if you want to have a look.  It took me hours and hours to get them working.  I have no idea what might cause the cascading gen lag, but fixing the multiple structure problem might help.    
    • troyvs
      problems starting with modding

      By troyvs · Posted 1 hour ago

      what command did you run to set up?  
    • MightyAhmed
      Immediate Crash On Any Version Of Forge

      By MightyAhmed · Posted 2 hours ago

      ok so its been a while but it was workling fine before somehow but now minecraft still works it just freezes and lagspikes every 5 seconds please help me on this issue i cant find anything on the internet also ihave 4GB ram total in my computer and i have dedicated 2gb ram to minecraft in the JVM arguments section also i have 125 mods installed.
    • deanvangreunen
      Custom Armor Item - Help - MC/Forge 1.14.4/1.14.3

      By deanvangreunen · Posted 3 hours ago

      Hello, I'm in progress of making a Minecraft 1.14.4 Mod using Forge. Needing some help, Could you please look at the following Class File and Explain what I'm doing wrong or what I should be doing?.   The "OnArmorTick" and other ".....Tick" functions don't work.   My intent: - if water is below and near player by 1 block while the boots are on then turn the water into ice. I'm trying to implement "Frost Walking Boots"   Code: - FrostBootsItem.java <- File I need help with - My Project Repo  <- Repo, So if you want to see how my mod is setup. (includes my world saves, etc)   Dev Details: - Minecraft Version: 1.14.4 - Minecraft Snapshot: 20191020-1.14.3 - Forge Version: 1.14.4-28.1.61   Notes: - I've followed a tutorial for 1.14.4 modding by MCJty on youtube (The author of RFTools) - I'm new to minecraft modding. I have expeirenced as a software developer/engineer.   ❤️❤️❤️❤️❤️❤️❤️❤️❤️  ❤️  .Thanks in advance. ❤️  ❤️❤️❤️❤️❤️❤️❤️❤️❤️ 
    • DragonITA
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA · Posted 3 hours ago

      please see the screenshoot above.
  • Topics

    • Merthew
      8
      [1.12.2] Multiple Structure Generation

      By Merthew
      Started November 7, 2018

    • coolian
      1
      problems starting with modding

      By coolian
      Started October 9

    • MightyAhmed
      83
      Immediate Crash On Any Version Of Forge

      By MightyAhmed
      Started November 10

    • deanvangreunen
      0
      Custom Armor Item - Help - MC/Forge 1.14.4/1.14.3

      By deanvangreunen
      Started 3 hours ago

    • DragonITA
      48
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA
      Started December 9

  • Who's Online (See full list)

    • dylandmrl
    • Yanny7
    • jan
    • LTNightshade
    • ignaciro
    • Zero
    • troyvs
    • CrackThrough
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.7.10] Crash Upon Initialization
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community