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.2] Name of fields in Material.class
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
Googleman

[1.7.2] Name of fields in Material.class

By Googleman, September 21, 2014 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Googleman    0

Googleman

Googleman    0

  • Tree Puncher
  • Googleman
  • Members
  • 0
  • 10 posts
Posted September 21, 2014

Hello. When I start client with my mod, I get crash:

cpw.mods.fml.common.LoaderException: java.lang.NoSuchFieldError: air
at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:527)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:815)
at net.minecraft.client.main.Main.main(SourceFile:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NoSuchFieldError: air

 

Code in my mod:

BlockBase block = new BlockBase(Material.air);

 

How should I write name of material??

Material.***

 

I would be very thankful for the help  :)

  • Quote

Share this post


Link to post
Share on other sites

larsgerrits    510

larsgerrits

larsgerrits    510

  • Reality Controller
  • larsgerrits
  • Members
  • 510
  • 3455 posts
Posted September 21, 2014

You probably exported it wrong. You need to export it using

gradlew build

from the command line (inside the forge folder).

  • Quote

Share this post


Link to post
Share on other sites

Googleman    0

Googleman

Googleman    0

  • Tree Puncher
  • Googleman
  • Members
  • 0
  • 10 posts
Posted September 21, 2014

I'm did this

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6679

diesieben07

diesieben07    6679

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6679
  • 45660 posts
Posted September 21, 2014

Your mod did not get reobfuscated. Did you change your build.gradle?

  • Quote

Share this post


Link to post
Share on other sites

sequituri    118

sequituri

sequituri    118

  • Dragon Slayer
  • sequituri
  • Forge Modder
  • 118
  • 669 posts
Posted September 22, 2014

Sounds like an incorrect import of Block.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • kdcswag
      Can't download forge (AdBlock Problem)

      By kdcswag · Posted 53 minutes ago

      Are you even trying to fix the issue?
    • DaemonUmbra
      [solved]

      By DaemonUmbra · Posted 1 hour ago

      For future reference: 1.7.10 is no longer supported on this forum due to its age. Update to a modern version of Minecraft to receive support.
    • OdachiPlayz
      [solved]

      By OdachiPlayz · Posted 1 hour ago

      I DONT KNOW HOW TO DELETE THIS POST BUT IM DUMB AND SOLVED THE ISSUE MYSELF ADMINS PLEASE DELETE  
    • KingMax
      Endsieg WW2 - Server due to start very soon - Working guns and vehicles!

      By KingMax · Posted 2 hours ago

      Greetings Comrade/Captain/Hauptmann! Welcome to Europe's final theater of war, Scandinavia! Despite the fall of Berlin the third Reich continues to hold out in Norway and the surrounding areas, the war is not yet over. Ultimate Victory will require many more battles to be fought. Infrastructure will need to be built, tanks, planes and ships shall have to be designed and produced and factories will be needed to produce the weapons of war.Endsieg has a multitude of special mechanics found on almost no other MC servers: fully functional ground, air and sea vehicles, guns, factories and more!Will you fight for the Allies to liberate Norway from tyranny?Will you defend the Soviet motherland by finally defeating the fascist menace?Will you take up the mantle of saving the remains of the Third Reich?Will you preserve the territorial integrity of the Republic of Finland?Will you help the Kingdom of Sweden once again rise to prominence as a Baltic powerhouse?Due to launch in a short matter of days or weeks, join our discord!discord.gg/anp3BJQ
    • Crack3dC0d3
      [1.14.4] Multiple models on the same item.

      By Crack3dC0d3 · Posted 2 hours ago

      bump
  • Topics

    • kdcswag
      9
      Can't download forge (AdBlock Problem)

      By kdcswag
      Started November 30

    • OdachiPlayz
      1
      [solved]

      By OdachiPlayz
      Started 1 hour ago

    • KingMax
      0
      Endsieg WW2 - Server due to start very soon - Working guns and vehicles!

      By KingMax
      Started 2 hours ago

    • Crack3dC0d3
      4
      [1.14.4] Multiple models on the same item.

      By Crack3dC0d3
      Started December 2

    • snivinia
      2
      unable to connect to friend's modded server

      By snivinia
      Started 20 hours ago

  • Who's Online (See full list)

    • saxon564
    • coolsim
    • snivinia
    • CelloKit
    • plugsmustard
    • hobohogiepro
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.7.2] Name of fields in Material.class
  • Theme
  • Contact Us
  • Discord

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