Posted June 3, 20178 yr 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 June 3, 20178 yr by MSandro
June 3, 20178 yr 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 June 3, 20178 yr by MSandro
June 3, 20178 yr 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.
June 3, 20178 yr 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 June 3, 20178 yr by MSandro
June 3, 20178 yr Author sorry but I never used Git bevore, but I will check it out soon. You can find a .zip in the atachement of this post. MS Utilities.zip
June 3, 20178 yr Author https://bitbucket.org/MSandro1998/ms-utilities/src Here is the link to my bitbucket repo. Edited June 3, 20178 yr by MSandro
June 4, 20178 yr Author Very strange, I tried to put my code for the entities into a separate method. Now it works perfectly
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.