Jump to content

Compiling issue! NEED HELP PLEASE


MSandro

Recommended Posts

Hi,

since today, i can't compile my 1.10.2 mod :( 

Here is the log:

Spoiler

D:\MinecraftModding\Workspaces\MS Utilities 1.10.2>gradlew.bat build
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html.
#################################################
         ForgeGradle 2.2-SNAPSHOT-eb2e450
  https://github.com/MinecraftForge/ForgeGradle
#################################################
               Powered by MCP unknown
             http://modcoderpack.com
         by: Searge, ProfMobius, Fesh0r,
         R4wk, ZeuX, IngisKahn, bspkrs
#################################################
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
:compileJava
Note: D:\MinecraftModding\Workspaces\MS Utilities 1.10.2\build\sources\main\java\msandro\msutilities\structure\shelter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\MinecraftModding\Workspaces\MS Utilities 1.10.2\build\sources\main\java\msandro\msutilities\item\GuideItem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:processResources UP-TO-DATE
:classes
:jar UP-TO-DATE
:sourceTestJava UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:getVersionJson
:extractUserdev UP-TO-DATE
:genSrgs SKIPPED
:reobfJar FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':reobfJar'.
> java.lang.ClassNotFoundException: net.minecraft.entity.Entity

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 15.642 secs

 

I already redownloaded the Forge MDK but without success.

Since the last release of my Mod MS Utilities I haven't made any changes regarding entities.

What can I do???
 

Thank you!

Edited by MSandro
Link to comment
Share on other sites

30 minutes ago, diesieben07 said:

Re-run setupDecompWorkspace.

Thank you, but I already tried that. Don't work :(

I've noticed that something is wrong with my "shelter.jar".

if I change: "Entity LeftEntity = EntityList.createEntityByName(ConfigManager.ShelterLeftEntity, world);"

to: "EntityLiving LeftEntity = (EntityLiving) EntityList.createEntityByName(ConfigManager.ShelterLeftEntity, world);"

The log says: 
 

Quote

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':reobfJar'.
> java.lang.ClassNotFoundException: net.minecraft.entity.EntityLiving

 

shelter.java

Edited by MSandro
Link to comment
Share on other sites

Does not work too... What am I doing wrong? :(

 

shelter.java:
 

Quote

                /*Entity REntity = EntityList.createEntityByName(ConfigManager.ShelterRightEntity, world);
                
                if (REntity instanceof EntitySkeleton) {
                    ((EntityLiving)REntity).setHeldItem(EnumHand.MAIN_HAND, new ItemStack(Item.getByNameOrId("minecraft:bow")));
                    ((EntityLiving)REntity).setArrowCountInEntity(64);
                }
                
                REntity.setPosition(PosX + 1, PosY +1, PosZ + 6.5);
                world.spawnEntityInWorld(REntity);*/
                
                
                Entity LEntity = EntityList.createEntityByName(ConfigManager.ShelterLeftEntity, world);
                
                if (LEntity instanceof EntitySkeleton) {
                    ((EntityLiving)LEntity).setHeldItem(EnumHand.MAIN_HAND, new ItemStack(Item.getByNameOrId("minecraft:bow")));
                    ((EntityLiving)LEntity).setArrowCountInEntity(64);
                }
                
                LEntity.setPosition(PosX + 12, PosY +1, PosZ + 6.5);
                world.spawnEntityInWorld(LEntity);

It only works when I comment out the top block, but I do not understand why!! :( 

 

Edit: No matter which block is commented out, but it must be one.

shelter.java

Edited by MSandro
Link to comment
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.
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.