
dude22072
Members-
Posts
185 -
Joined
-
Last visited
Everything posted by dude22072
-
Not if your modding 1.7
-
[16:57:56] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [16:57:56] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [16:57:56] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [16:57:56] [main/INFO]: Forge Mod Loader version 7.2.21.967 for Minecraft 1.7.2 loading [16:57:56] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_07, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 [16:57:56] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [16:57:56] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:57:56] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [16:57:56] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:57:56] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:57:56] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [16:57:56] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [16:57:57] [main/ERROR]: The minecraft jar file:/C:/Users/tammi/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.967/forge-1.7.2-10.12.0.967-mcp.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [16:57:57] [main/ERROR]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [16:57:57] [main/ERROR]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/tammi/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.967/forge-1.7.2-10.12.0.967-mcp.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [16:57:57] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing [16:57:57] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [16:57:57] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [16:57:58] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main} [16:58:00] [main/ERROR]: Unable to launch java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_07] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_07] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_07] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_07] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: joptsimple.MissingRequiredOptionException: Missing required option(s) ['accessToken'] at joptsimple.OptionParser.ensureRequiredOptions(OptionParser.java:447) ~[OptionParser.class:?] at joptsimple.OptionParser.parse(OptionParser.java:437) ~[OptionParser.class:?] at net.minecraft.client.main.Main.main(Main.java:44) ~[Main.class:?] ... 6 more
-
No I hadn't. Must of missed that part. TY.
-
So i'm setting up Forge Gradle. I'm in eclipse and I've selected import. I set the root directory as the forge one. It's telling me "No projects are found to import". I'm using forge 10.12.0.967 (MC1.7.2).
-
19:57:49.734 [LIFECYCLE] [org.gradle.TaskExecutionLogger] :decompile FAILED 19:57:49.761 [iNFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :decompile (Thread[main,5,main]) completed. Took 2 mins 0.474 secs. 19:57:49.778 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 2 mins 4.855 secs, idle: 0.105 secs 19:57:49.801 [ERROR] [org.gradle.BuildExceptionReporter] 19:57:49.840 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. 19:57:49.859 [ERROR] [org.gradle.BuildExceptionReporter] 19:57:49.874 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 19:57:49.897 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':decompile'. 19:57:49.911 [ERROR] [org.gradle.BuildExceptionReporter] > java.lang.NullPointerException (no error message) 19:57:49.929 [ERROR] [org.gradle.BuildExceptionReporter] 19:57:49.935 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: 19:57:50.035 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':decompile'. 19:57:50.086 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) 19:57:50.122 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) 19:57:50.127 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) 19:57:50.134 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) 19:57:50.283 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) 19:57:50.291 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) 19:57:50.295 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 19:57:50.300 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) 19:57:50.306 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) 19:57:50.311 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:283) 19:57:50.316 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79) 19:57:50.321 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63) 19:57:50.325 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51) 19:57:50.330 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$1.run(DefaultTaskPlanExecutor.java:33) 19:57:50.334 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Factories$1.create(Factories.java:22) 19:57:50.341 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:214) 19:57:50.346 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:276) 19:57:50.351 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:142) 19:57:50.358 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:78) 19:57:50.363 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:31) 19:57:50.367 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86) 19:57:50.375 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29) 19:57:50.380 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) 19:57:50.384 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23) 19:57:50.392 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67) 19:57:50.397 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) 19:57:50.414 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) 19:57:50.419 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54) 19:57:50.425 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:166) 19:57:50.433 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113) 19:57:50.439 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81) 19:57:50.444 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64) 19:57:50.449 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33) 19:57:50.455 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24) 19:57:50.460 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35) 19:57:50.464 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) 19:57:50.469 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50) 19:57:50.475 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171) 19:57:50.480 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201) 19:57:50.485 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174) 19:57:50.497 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170) 19:57:50.502 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139) 19:57:50.507 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33) 19:57:50.539 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22) 19:57:50.543 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:46) 19:57:50.547 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) 19:57:50.551 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:37) 19:57:50.557 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50) 19:57:50.561 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32) 19:57:50.565 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23) 19:57:50.570 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30) 19:57:50.575 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127) 19:57:50.579 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:58) 19:57:50.583 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NullPointerException 19:57:50.589 [ERROR] [org.gradle.BuildExceptionReporter] at net.minecraftforge.gradle.tasks.DecompileTask.applyPatchDirectory(DecompileTask.java:224) 19:57:50.593 [ERROR] [org.gradle.BuildExceptionReporter] at net.minecraftforge.gradle.tasks.DecompileTask.doMCPStuff(DecompileTask.java:91) 19:57:50.608 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.util.JavaMethod.invoke(JavaMethod.java:62) 19:57:50.612 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:219) 19:57:50.617 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:212) 19:57:50.623 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:201) 19:57:50.627 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:527) 19:57:50.631 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:510) 19:57:50.635 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) 19:57:50.639 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) 19:57:50.643 [ERROR] [org.gradle.BuildExceptionReporter] ... 52 more 19:57:50.648 [ERROR] [org.gradle.BuildExceptionReporter]
-
[Solved]JAVA_HOME is set to an invalid directory?
dude22072 replied to dude22072's topic in ForgeGradle
Fixed: Removed the ";" from the begining. -
I opened up command prompt and went to my forge SRC folder and ran "gradlew.bat setupDecompWorkspace" and it told me ERROR: JAVA_HOME is set to an invalid directory: ;C:\Program Files\Java\jdk1.7.0_07 Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
-
Thanks for the help!
-
So, could you give me an example of how to use this to add a stat (achievement) to the player? (for an example) how would i use this to activate player.addStat(ExtraAchievments.prot3ch, 1); when the player connects to a server with the IP "173.68.68.76"? Im asking because my mod (ExtraAchievements) is being added to a modpack I used to work on and i want to add an achievement for playing on the modpack's server.
-
Make A new class. It should look something like this: package dudesmods.lozmod2.entity; import java.util.Random; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.monster.*; import net.minecraft.entity.passive.*; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.entity.living.LivingDropsEvent; import net.minecraft.entity.EntityLiving; public class ModLivingDropsEvent { public static double rand; public Random r = new Random(); @ForgeSubscribe public void onEntityDrop(LivingDropsEvent event) { if(event.entityLiving instanceof EntityCow) { event.entityLiving.dropItem(LOZmod.green_tanned_leather.itemID, r.nextInt(3)); } } } change "EntityCow" to the desired Entity. "r.nextInt(3)" indicates that it drops anywhere from 1-3 of the item "LOZmod.green_tanned_leather.itemID" is the item In your main class in the PreInt method: MinecraftForge.EVENT_BUS.register(new ModLivingDropsEvent()); "ModLivingDropsEvent" being the class you made.
-
How would I do this?
-
It is in client proxy. And i'm launching the client not the server.
-
Im getting a class not found error when the class DOES exists. :
-
How would I acomplish this?
-
You have to use both.
-
Thank you that worked No problem
-
Create a new class, doesn't extend or implement anything. in it put @ForgeSubscribe public void onEntityDrop(LivingDropsEvent event) { if(event.entity instanceof EntityZombie) { event.entity.entityDropItem(new ItemStack(Item.dyePowder, 1, 7), 0.0F); } } Replace EntityZombie with your entity Keep the Float as 0.0 in your main mod class in the preinit add: MinecraftForge.EVENT_BUS.register(new ModLivingDropsEvent()); With "ModLivingDropsEvent()" being the class previously made.
-
Did you do EntityRegistry.registerGlobalEntityID();
-
[UNSOLVED] Language registry does not accept metadata for blocks
dude22072 replied to Naftoreiclag's topic in Modder Support
Some o' my code: (and if someone yells at me for this not being right, it's what vanilla uses.) Item Class: public static final String[] Names = new String[] {"earth", "water", "fire", "air"}; ... public String getUnlocalizedName(ItemStack par1ItemStack) { int i = MathHelper.clamp_int(par1ItemStack.getItemDamage(), 0, itemNumberDamage); return super.getUnlocalizedName() + "." + Names[i]; } Where itemNumberDamage = Highest damage value used Main class: ... baseElements = new BaseElementsArray(baseElementsID).setUnlocalizedName("baseElements").setCreativeTab(tabElements); ... @EventHandler public void loadPre(FMLPreInitializationEvent event) { LanguageRegistry.addStringLocalization("item.baseElements.earth.name", "en_us", "Earth"); LanguageRegistry.addStringLocalization("item.baseElements.wind.name", "en_us", "Wind"); LanguageRegistry.addStringLocalization("item.baseElements.fire.name", "en_us", "Fire"); LanguageRegistry.addStringLocalization("item.baseElements.air.name", "en_us", "Air"); } Uses "item.(what you have in setUnlocalizedName).(a string from the string array).name" -
I have a texture that looks like this: Which uses alpha values. When i run the game, this shows up: I know their is special code i have to add for alpha in a texture but I don't know what it is.
-
also, "meta cannot be resolved or is not a field"
-
Thanks, but how would i do a specific damage value? like in "new ItemStack(Item.compass, 1, 3)" the item has a damage value of 3. how would i do something like that?
-
within the onCrafting method within a Crafting handler you can give the player an achievement for crafting somthing: if (item.itemID == Item.compass.itemID) { player.addStat(ExtraAchievments.craftCompass, 1); } I'm wondering how I do this with an item that has metadata/damage values.
-
Is there a player.getCurrentItemOrArmor() for blocks?
dude22072 replied to dude22072's topic in Modder Support
Ah ha! Got it! if(player.getHeldItem() != null && player.dimension == -1) { if(ItemStack.areItemStacksEqual(new ItemStack(Block.slowSand), player.getHeldItem())) { player.addStat(ExtraAchievments.soulSand, 1); } if(ItemStack.areItemStacksEqual(new ItemStack(Block.netherrack), player.getHeldItem())) { player.addStat(ExtraAchievments.aquireNetherrack, 1); } } if(player.getCurrentItemOrArmor(0) != null) { if(ItemStack.areItemStacksEqual(new ItemStack(Block.sand), player.getHeldItem())) { player.addStat(ExtraAchievments.aquireSand, 1); } } -
Is there a player.getCurrentItemOrArmor() for blocks?
dude22072 replied to dude22072's topic in Modder Support
Could you explain it? all i want to do is give the player an achievement for getting some soul sand...