Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

  • Author
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

  • Author
10 minutes ago, diesieben07 said:

Run gradlew cleanCache and then gradlew setupDecompWorkspace and try again.

thank you very much for your help, but unfortunately that did not work either.

  • Author

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

  • Author

Very strange, I tried to put my code for the entities into a separate method. Now it works perfectly :D 

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.