Jump to content

DuckCreeper

Forge Modder
  • Posts

    48
  • Joined

  • Last visited

Everything posted by DuckCreeper

  1. Okkayyy... Is there a way i can switch it back to a working 1.9 environment?
  2. Executing task ':fixMcSources' (up-to-date check took 0.08 secs) due to: Output file C:\Users\Colin\.gradle\caches\minecraft\net\minecraftforge\forge\1.9.4-12.17.0.1976\snapshot\20160312\forge-1.9.4-12.17.0.1976-decompFixed.jar has changed. Output file C:\Users\Colin\.gradle\caches\minecraft\net\minecraftforge\forge\1.9.4-12.17.0.1976\snapshot\20160312\forge-1.9.4-12.17.0.1976-decompFixed.jar has been removed. :fixMcSources (Thread[Daemon worker,5,main]) completed. Took 18.701 secs. :applySourcePatches (Thread[Daemon worker,5,main]) started. :applySourcePatches Skipping task ':applySourcePatches' as task onlyIf is false. :applySourcePatches SKIPPED :applySourcePatches (Thread[Daemon worker,5,main]) completed. Took 2.027 secs. :remapMcSources (Thread[Daemon worker,5,main]) started. :remapMcSources Skipping task ':remapMcSources' as task onlyIf is false. :remapMcSources SKIPPED :remapMcSources (Thread[Daemon worker,5,main]) completed. Took 1.264 secs. :recompileMc (Thread[Daemon worker,5,main]) started. :recompileMc No output file found. Executing task ':recompileMc' (up-to-date check took 0.002 secs) due to: No history is available. [ant:javac] Compiling 2511 source files to C:\Users\Colin\Desktop\1.9 landscape mod\build\tmp\recompileMc\compiled [ant:javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [ant:javac] C:\Users\Colin\Desktop\1.9 landscape mod\build\tmp\recompileMc\sources\net\minecraft\world\biome\Biome.java:403: error: variable biome is already defined in method getBiomeFromBiomeList(int,Biome) [ant:javac] Biome biome = getBiomeForId(biomeId); [ant:javac] ^ [ant:javac] Note: Some input files use or override a deprecated API. [ant:javac] Note: Recompile with -Xlint:deprecation for details. [ant:javac] Note: Some input files use unchecked or unsafe operations. [ant:javac] Note: Recompile with -Xlint:unchecked for details. [ant:javac] 1 error [ant:javac] 1 warning :recompileMc FAILED :recompileMc (Thread[Daemon worker,5,main]) completed. Took 1 mins 3.655 secs. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':recompileMc'. > Compile failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. BUILD FAILED Total time: 2 mins 10.081 secs Stopped 0 compiler daemon(s). Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':recompileMc'.] from daemon DaemonInfo{pid=21468, address=[067d9ced-3765-43b6-87ed-772be68e5dd5 port:60360, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], idle=false, context=DefaultDaemonContext[uid=e7fdeab5-2ff6-4102-862d-617bde90b7aa,javaHome=C:\Program Files\Java\jdk1.8.0_25,daemonRegistryDir=C:\Users\Colin\.gradle\daemon,pid=21468,idleTimeout=120000,daemonOpts=-Xmx2048M,-Dfile.encoding=windows-1252,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done). Every thing else before that was just a bunch of numbers and letters.. idk if you need them or not
  3. "gradlew setupDecompWorkspace eclipse" VVV gradlew setupDecompWorkspace eclipse To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.7/userguide/gradle_daemon.html. This mapping 'snapshot_20160312' was designed for MC 1.9! Use at your own peril. ################################################# ForgeGradle 2.2-SNAPSHOT-59f33ec https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP unknown http://modcoderpack.com by: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :getVersionJson :extractUserdev UP-TO-DATE :extractDependencyATs SKIPPED :extractMcpData SKIPPED :extractMcpMappings SKIPPED :genSrgs SKIPPED :downloadClient SKIPPED :downloadServer SKIPPED :splitServerJar SKIPPED :mergeJars SKIPPED :deobfMcSRG SKIPPED :decompileMc SKIPPED :fixMcSources SKIPPED :applySourcePatches :remapMcSources SKIPPED :recompileMc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':recompileMc'. > Compile failed; see the compiler error output for details. * 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: 1 mins 27.94 secs "gradlew setupDecompWorkspace eclipse --stacktrace" VVV gradlew setupDecompWorkspace eclipse --stacktrace To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.7/userguide/gradle_daemon.html. This mapping 'snapshot_20160312' was designed for MC 1.9! Use at your own peril. ################################################# ForgeGradle 2.2-SNAPSHOT-59f33ec https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP unknown http://modcoderpack.com by: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :getVersionJson :extractUserdev UP-TO-DATE :extractDependencyATs SKIPPED :extractMcpData SKIPPED :extractMcpMappings SKIPPED :genSrgs SKIPPED :downloadClient SKIPPED :downloadServer SKIPPED :splitServerJar SKIPPED :mergeJars SKIPPED :deobfMcSRG SKIPPED :decompileMc SKIPPED :fixMcSources SKIPPED :applySourcePatches :remapMcSources SKIPPED :recompileMc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':recompileMc'. > Compile failed; see the compiler error output for details. * Try: Run with --info or --debug option to get more log output. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':recompileMc'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:62) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30) at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:155) at org.gradle.internal.Factories$1.create(Factories.java:22) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:152) at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:33) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:100) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:94) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:94) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:40) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:66) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:71) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) Caused by: : Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1174) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:930) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:77) at org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:92) at net.minecraftforge.gradle.user.TaskRecompileMc.doStuff(TaskRecompileMc.java:93) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:226) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:219) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:208) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) ... 68 more BUILD FAILED Total time: 1 mins 19.928 secs
  4. Trying to update my workspace to 1.9.4. Error trying "setup DecompWorkspace eclipse": gradlew setupDecompWorkspace eclipse To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.7/userguide/gradle_daemon.html. This mapping 'snapshot_20160312' was designed for MC 1.9! Use at your own peril. ################################################# ForgeGradle 2.1-SNAPSHOT-da90449 https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP unknown http://modcoderpack.com by: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :getVersionJson :extractUserdev UP-TO-DATE :extractDependencyATs SKIPPED :extractMcpData SKIPPED :extractMcpMappings SKIPPED :genSrgs SKIPPED :downloadClient SKIPPED :downloadServer SKIPPED :splitServerJar SKIPPED :mergeJars SKIPPED :deobfMcSRG SKIPPED :decompileMc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':decompileMc'. > java.lang.NullPointerException (no error message) * 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: 3 mins 3.985 secs Running it with --stacktrace: gradlew setupDecompWorkspace eclipse --stacktrace To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.7/userguide/gradle_daemon.html. This mapping 'snapshot_20160312' was designed for MC 1.9! Use at your own peril. ################################################# ForgeGradle 2.1-SNAPSHOT-da90449 https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP unknown http://modcoderpack.com by: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :getVersionJson :extractUserdev UP-TO-DATE :extractDependencyATs SKIPPED :extractMcpData SKIPPED :extractMcpMappings SKIPPED :genSrgs SKIPPED :downloadClient SKIPPED :downloadServer SKIPPED :splitServerJar SKIPPED :mergeJars SKIPPED :deobfMcSRG SKIPPED :decompileMc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':decompileMc'. > java.lang.NullPointerException (no error message) * Try: Run with --info or --debug option to get more log output. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':decompileMc'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:62) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30) at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:155) at org.gradle.internal.Factories$1.create(Factories.java:22) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:152) at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:33) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:100) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:94) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:94) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:40) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:66) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:71) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) Caused by: java.lang.NullPointerException at org.jetbrains.java.decompiler.main.Fernflower.getClassEntryName(Fernflower.java:76) at org.jetbrains.java.decompiler.struct.ContextUnit.save(ContextUnit.java:150) at org.jetbrains.java.decompiler.struct.StructContext.saveContext(StructContext.java:72) at org.jetbrains.java.decompiler.main.Fernflower.decompileContext(Fernflower.java:62) at org.jetbrains.java.decompiler.main.decompiler.BaseDecompiler.decompileContext(BaseDecompiler.java:41) at net.minecraftforge.gradle.tasks.ApplyFernFlowerTask.applyFernFlower(ApplyFernFlowerTask.java:101) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:226) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:219) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:208) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) ... 68 more BUILD FAILED Total time: 2 mins 19.834 secs I dont know what to do. I've also crated a gradle.properties and put the text org.gradle.jvmargs=-Xmx2048M Still didnt work.
  5. How would one go about loading a shield and a custom texture with it. I cant seem to figure out how the shield model is registered and loaded. And where to place my texture/ name it properly. Could anyone help me?
  6. Hello! I'm trying to create a register a item that is like the shield. But my texture wont load and I think that im not registering the item correctly. Here is my code, it would be nice if someone could help me! Main class: package duckcreeper.shieldmod; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import duckcreeper.shieldmod.init.ShieldItem; import duckcreeper.shieldmod.item.stone_shield; import duckcreeper.shieldmod.proxy.CommonProxy; @Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION) public class Shieldmain { @Instance(Reference.MOD_ID) public static Shieldmain instance; @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; public static stone_shield Stone_Shield = new stone_shield(); @EventHandler public void preInit(FMLPreInitializationEvent event) { GameRegistry.register(Stone_Shield); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerClientStuff(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } public static void registerItem(ShieldItem item) { GameRegistry.registerItem(item, item.getSimpleName()); } } Shield Class import java.util.List; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.EnumAction; import net.minecraft.item.EnumDyeColor; import net.minecraft.item.IItemPropertyGetter; import net.minecraft.item.Item; import net.minecraft.item.ItemBanner; import net.minecraft.item.ItemStack; import net.minecraft.util.ActionResult; import net.minecraft.util.EnumActionResult; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.ResourceLocation; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.translation.I18n; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import duckcreeper.shieldmod.init.ShieldItem; public class stone_shield extends ShieldItem { public stone_shield() { super("stone_shield"); this.maxStackSize = 1; this.setCreativeTab(CreativeTabs.tabCombat); this.setMaxDamage(336); this.addPropertyOverride(new ResourceLocation("blocking"), new IItemPropertyGetter() { @SideOnly(Side.CLIENT) public float apply(ItemStack stack, World worldIn, EntityLivingBase entityIn) { return entityIn != null && entityIn.isHandActive() && entityIn.getActiveItemStack() == stack ? 1.0F : 0.0F; } }); } /** * Called when a Block is right-clicked with this Item */ public EnumActionResult onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { return super.onItemUse(stack, playerIn, worldIn, pos, hand, facing, hitX, hitY, hitZ); } public String getItemStackDisplayName(ItemStack stack) { if (stack.getSubCompound("BlockEntityTag", false) != null) { String s = "item.stone_shield."; EnumDyeColor enumdyecolor = ItemBanner.getBaseColor(stack); s = s + enumdyecolor.getUnlocalizedName() + ".name"; return I18n.translateToLocal(s); } else { return I18n.translateToLocal("item.stone_shield.name"); } } /** * allows items to add custom lines of information to the mouseover description */ @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) { ItemBanner.func_185054_a(stack, tooltip); } /** * returns a list of items with the same ID, but different meta (eg: dye returns 16 items) */ @SideOnly(Side.CLIENT) public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems) { ItemStack itemstack = new ItemStack(itemIn, 1, 0); subItems.add(itemstack); } /** * returns the action that specifies what animation to play when the items is being used */ public EnumAction getItemUseAction(ItemStack stack) { return EnumAction.BLOCK; } /** * How long it takes to use or consume an item */ public int getMaxItemUseDuration(ItemStack stack) { return 72000; } public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand) { playerIn.setActiveHand(hand); return new ActionResult(EnumActionResult.SUCCESS, itemStackIn); } /** * Return whether this item is repairable in an anvil. */ public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) { return repair.getItem() == Item.getItemFromBlock(Blocks.planks) ? true : super.getIsRepairable(toRepair, repair); } } Shield Item Class import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; import duckcreeper.shieldmod.Reference; import duckcreeper.shieldmod.item.stone_shield; public class ShieldItem extends Item { public ShieldItem(String name) { setUnlocalizedName(name); } public String getSimpleName() { return getUnlocalizedName().substring(5); }
  7. Hello! The picture has words.. that should describe what Im thinking of doing. The only problem is that I don't really know how to code it what so ever. Planning on adding a certain item that when right clicked on a block, it activates the custom GUI creating that block a special block from my mod. Any questions please ask! (Its a bit hard to describe how I'm thinking about it) Link:
  8. What is that? I'm having a huge brainfart right now Here is my block class for the custom ladder: public class scaffolding_ladderr extends Block { public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL); public static final PropertyBool NORTH = PropertyBool.create("north"); public static final PropertyBool EAST = PropertyBool.create("east"); public static final PropertyBool SOUTH = PropertyBool.create("south"); public static final PropertyBool UP = PropertyBool.create("up"); public static final PropertyBool WEST = PropertyBool.create("west"); public scaffolding_ladderr(Material materialIn) { super(Material.wood); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); // this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.2F, 1.0F); this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.4F); } @Override public IBlockState onBlockPlaced(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { IBlockState state = super.onBlockPlaced(world, pos, facing, hitX, hitY, hitZ, meta, placer); state = state.withProperty(FACING, placer.getHorizontalFacing()); return state; } @Override public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) { return state.withProperty(UP, Boolean.valueOf(!world.isAirBlock(pos.up()))).withProperty(NORTH, Boolean.valueOf(isScaffoldingLadder(world, pos.north()))).withProperty(EAST, Boolean.valueOf(isScaffoldingLadder(world, pos.east()))).withProperty(SOUTH, Boolean.valueOf(isScaffoldingLadder(world, pos.south()))).withProperty(WEST, Boolean.valueOf(isScaffoldingLadder(world, pos.west()))); } @Override protected BlockState createBlockState() { return new BlockState(this, new IProperty[] { NORTH, EAST, SOUTH, WEST, FACING, UP }); } public boolean isScaffoldingLadder(IBlockAccess world, BlockPos pos) { return world.getBlockState(pos).getBlock() == this; } public void setBlockBoundsBasedOnState(IBlockAccess worldIn, BlockPos pos) { IBlockState iblockstate = worldIn.getBlockState(pos); if (iblockstate.getBlock() == this) { float f = 0.125F; switch ((EnumFacing)iblockstate.getValue(FACING)) { case NORTH: this.setBlockBounds(0.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.2F); break; case SOUTH: this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.2F); // this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, f); break; case WEST: this.setBlockBounds(0.8F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); break; case EAST: default: this.setBlockBounds(0.0F, 0.0F, 0.0F, 0.2F, 1.0F, 1.0F); } } } @Override public int getMetaFromState(IBlockState state) { return ((EnumFacing) state.getValue(FACING)).getHorizontalIndex(); } @Override public boolean isOpaqueCube() { return false; } @Override public boolean isFullCube() { return false; } @Override public boolean isLadder(IBlockAccess world, BlockPos pos, EntityLivingBase entity) { return true; } }
  9. So now I'm trying to make a custom ladder model when the ladder is by itself and one when its connected to another texture. I've looked at the cobblestone wall code and did pretty much what it said. But in the blockstates file for it. It had this { "variants": { "east=false,north=false,south=false,up=false,west=false": { "model": "cobblestone_wall_post" }, "east=false,north=true,south=false,up=false,west=false": { "model": "cobblestone_wall_n" }, "east=true,north=false,south=false,up=false,west=false": { "model": "cobblestone_wall_n", "y": 90, "uvlock": true }, "east=false,north=false,south=true,up=false,west=false": { "model": "cobblestone_wall_n", "y": 180, "uvlock": true }, "east=false,north=false,south=false,up=false,west=true": { "model": "cobblestone_wall_n", "y": 270, "uvlock": true }, "east=true,north=true,south=false,up=false,west=false": { "model": "cobblestone_wall_ne" }, "east=true,north=false,south=true,up=false,west=false": { "model": "cobblestone_wall_ne", "y": 90, "uvlock": true }, "east=false,north=false,south=true,up=false,west=true": { "model": "cobblestone_wall_ne", "y": 180, "uvlock": true }, "east=false,north=true,south=false,up=false,west=true": { "model": "cobblestone_wall_ne", "y": 270, "uvlock": true }, "east=false,north=true,south=true,up=false,west=false": { "model": "cobblestone_wall_ns" }, "east=true,north=false,south=false,up=false,west=true": { "model": "cobblestone_wall_ns", "y": 90, "uvlock": true }, "east=true,north=true,south=true,up=false,west=false": { "model": "cobblestone_wall_nse" }, "east=true,north=false,south=true,up=false,west=true": { "model": "cobblestone_wall_nse", "y": 90, "uvlock": true }, "east=false,north=true,south=true,up=false,west=true": { "model": "cobblestone_wall_nse", "y": 180, "uvlock": true }, "east=true,north=true,south=false,up=false,west=true": { "model": "cobblestone_wall_nse", "y": 270, "uvlock": true }, "east=true,north=true,south=true,up=false,west=true": { "model": "cobblestone_wall_nsew" }, "east=false,north=false,south=false,up=true,west=false": { "model": "cobblestone_wall_post" }, "east=false,north=true,south=false,up=true,west=false": { "model": "cobblestone_wall_n" }, "east=true,north=false,south=false,up=true,west=false": { "model": "cobblestone_wall_n", "y": 90, "uvlock": true }, "east=false,north=false,south=true,up=true,west=false": { "model": "cobblestone_wall_n", "y": 180, "uvlock": true }, "east=false,north=false,south=false,up=true,west=true": { "model": "cobblestone_wall_n", "y": 270, "uvlock": true }, "east=true,north=true,south=false,up=true,west=false": { "model": "cobblestone_wall_ne" }, "east=true,north=false,south=true,up=true,west=false": { "model": "cobblestone_wall_ne", "y": 90, "uvlock": true }, "east=false,north=false,south=true,up=true,west=true": { "model": "cobblestone_wall_ne", "y": 180, "uvlock": true }, "east=false,north=true,south=false,up=true,west=true": { "model": "cobblestone_wall_ne", "y": 270, "uvlock": true }, "east=false,north=true,south=true,up=true,west=false": { "model": "cobblestone_wall_ns_above" }, "east=true,north=false,south=false,up=true,west=true": { "model": "cobblestone_wall_ns_above", "y": 90, "uvlock": true }, "east=true,north=true,south=true,up=true,west=false": { "model": "cobblestone_wall_nse" }, "east=true,north=false,south=true,up=true,west=true": { "model": "cobblestone_wall_nse", "y": 90, "uvlock": true }, "east=false,north=true,south=true,up=true,west=true": { "model": "cobblestone_wall_nse", "y": 180, "uvlock": true }, "east=true,north=true,south=false,up=true,west=true": { "model": "cobblestone_wall_nse", "y": 270, "uvlock": true }, "east=true,north=true,south=true,up=true,west=true": { "model": "cobblestone_wall_nsew" } } } So I tried this for myself. But the in-game model wont load. Here is the error I get. [16:11:25] [Client thread/ERROR] [FML]: Model definition for location scm:scaffolding_ladderr#east=false,facing=west,north=true,south=true,up=false,west=false not found [16:11:25] [Client thread/ERROR] [FML]: Model definition for location scm:scaffolding_ladderr#east=false,facing=south,north=true,south=false,up=false,west=true not found [16:11:25] [Client thread/ERROR] [FML]: Model definition for location scm:scaffolding_ladderr#east=true,facing=east,north=false,south=true,up=false,west=true not found [16:11:25] [Client thread/ERROR] [FML]: Model definition for location scm:scaffolding_ladderr#east=true,facing=south,north=false,south=true,up=false,west=false not found Here is my blockstate code. { "variants": { "east=false,north=false,south=true,up=false,west=false": { "model": "scm:scaffolding_ladderr_regular", "y": 90}, "east=false,north=false,south=false,up=false,west=true": { "model": "scm:scaffolding_ladderr_regular", "y": 180}, "east=false,north=true,south=false,up=false,west=false": { "model": "scm:scaffolding_ladderr_regular", "y": 270}, "east=false,north=false,south=false,up=false,west=false": { "model": "scm:scaffolding_ladderr_regular"}, "east=true,north=false,south=false,up=false,west=false": { "model": "scm:scaffolding_ladderr_regular"}, "east=false,north=false,south=false,up=true,west=false": {"model": "scm:scaffolding_ladderr"}, "east=true,north=false,south=false,up=true,west=false": {"model": "scm:scaffolding_ladderr"}, "east=false,north=false,south=true,up=true,west=false": { "model": "scm:scaffolding_ladderr", "y": 90}, "east=false,north=false,south=false,up=true,west=true": { "model": "scm:scaffolding_ladderr", "y": 180}, "east=false,north=true,south=false,up=true,west=false": { "model": "scm:scaffolding_ladderr", "y": 270} } } I don't know what to do!
  10. Hello! I'm currently trying to make a custom ladder, and well, I can get 90% of it to work. The only part I cant do is actually making it function as a ladder. In the Block Ladder class of minecraft. It has the override method of isLadder . But when I try to apply it in my block class. It doesn't work. Also extending my class to BlockLadder causes my block to have the same properties as a ladder. The placement rules, block bound, etc. I just want the isLadder method to work in my class. isLadder method @Override public boolean isLadder(IBlockAccess world, BlockPos pos, EntityLivingBase entity) { return true; } If more code is needed. Please feel free to ask.
  11. Hello! So I'm working on my mod, and I was wondering. Is it possible to enable and disable parts of a model. For example I'm doing brick laying. So when the player places a brick in the specific spot it can be placed. I want it to show. B = half of brick _ _ _ | | |BB | Top down look | | ------- Like its an inadvisable model then as the blocks are placed.... the parts of it slowly turn on. _ _ _ | | |BB Top down look | | -------
  12. So I've been coding more... Now I want to create a multiblox. Basically like immersive egineerings crusher. I want to do something like that, but its the 1.7 version. Most of the code work but... for some reason I cant get my Tile Render working... the one that has the obj file reference thingy.... IES Tile render: package blusunrize.immersiveengineering.client.render; import net.minecraft.client.renderer.Tessellator; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraftforge.client.model.obj.Vertex; import org.lwjgl.opengl.GL11; import blusunrize.immersiveengineering.client.ClientUtils; import blusunrize.immersiveengineering.client.models.ModelIEObj; import blusunrize.immersiveengineering.common.IEContent; import blusunrize.immersiveengineering.common.blocks.metal.BlockMetalMultiblocks; import blusunrize.immersiveengineering.common.blocks.metal.TileEntityCrusher; import blusunrize.immersiveengineering.common.util.chickenbones.Matrix4; public class TileRenderCrusher extends TileRenderIE { ModelIEObj model = new ModelIEObj("immersiveengineering:models/crusher.obj") { @Override public IIcon getBlockIcon(String groupName) { return IEContent.blockMetalMultiblocks.getIcon(0, BlockMetalMultiblocks.META_crusher); } }; @Override public void renderStatic(TileEntity tile, Tessellator tes, Matrix4 translationMatrix, Matrix4 rotationMatrix) { TileEntityCrusher crusher = (TileEntityCrusher)tile; translationMatrix.translate(.5, 1.5, .5); rotationMatrix.rotate(Math.toRadians(crusher.facing==2?180: crusher.facing==4?-90: crusher.facing==5?90: 0), 0,1,0); if(crusher.mirrored) translationMatrix.scale(new Vertex(crusher.facing<4?-1:1,1,crusher.facing>3?-1:1)); model.render(tile, tes, translationMatrix, rotationMatrix, 0, crusher.mirrored, "base"); } @Override public void renderDynamic(TileEntity tile, double x, double y, double z, float f) { TileEntityCrusher crusher = (TileEntityCrusher)tile; if(!crusher.formed || crusher.pos!=17) return; GL11.glPushMatrix(); GL11.glTranslated(x+.5, y+1.5, z+.5); GL11.glRotatef(crusher.facing==2?180: crusher.facing==4?-90: crusher.facing==5?90: 0, 0,1,0); if(crusher.mirrored) { GL11.glScalef(-1,1,1); GL11.glDisable(GL11.GL_CULL_FACE); } ClientUtils.bindAtlas(0); boolean b = crusher.hasPower&&((crusher.active&&crusher.process>0)||crusher.mobGrinding||crusher.grindingTimer>0); float angle = crusher.barrelRotation+(b?18*f:0); GL11.glTranslated(17/16f,14/16f,-8.5/16f); GL11.glRotatef(angle, 1,0,0); model.model.renderOnly("drum1"); GL11.glRotatef(-angle, 1,0,0); GL11.glTranslated(0,0,17/16f); GL11.glRotatef(-angle, 1,0,0); model.model.renderOnly("drum0"); if(crusher.mirrored) { GL11.glScalef(-1,1,1); GL11.glEnable(GL11.GL_CULL_FACE); } GL11.glPopMatrix(); } } ModelIEObj Code used: package blusunrize.immersiveengineering.client.models; import java.util.ArrayList; import net.minecraft.client.renderer.Tessellator; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraftforge.client.model.obj.WavefrontObject; import blusunrize.immersiveengineering.client.ClientUtils; import blusunrize.immersiveengineering.common.util.chickenbones.Matrix4; public abstract class ModelIEObj { public static ArrayList<ModelIEObj> existingStaticRenders = new ArrayList(); public final String path; public WavefrontObject model; public ModelIEObj(String path) { this.path = path; this.model = ClientUtils.getModel(path); existingStaticRenders.add(this); } public WavefrontObject rebindModel() { model = ClientUtils.getModel(path); return model; } public void render(TileEntity tile, Tessellator tes, Matrix4 translationMatrix, Matrix4 rotationMatrix, int offsetLighting, boolean invertFaces, String... renderedParts) { ClientUtils.renderStaticWavefrontModel(tile, model, tes, translationMatrix, rotationMatrix, offsetLighting, invertFaces, renderedParts); } public abstract IIcon getBlockIcon(String groupName); } Here is what I have.... Tile Render: package com.duckcreeper.steelcraft.entity; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; public class SCTileRender extends TileEntitySpecialRenderer { ModelSCObj model = new ModelSCObj("sc:modles/crushT.obj"); @Override public void renderTileEntityAt(TileEntity p_180535_1_, double posX, double posZ, double p_180535_6_, float p_180535_8_, int p_180535_9_) { // TODO Auto-generated method stub } } But when i say ModelSCObj model = new ModelSCObj() the ModelSCObj is underlined saying Cannot instantiate the type ModelSCObj ModelSCObj: import java.util.ArrayList; import com.duckcreeper.steelcraft.Matrix4; import net.minecraft.client.renderer.Tessellator; import net.minecraft.tileentity.TileEntity; public abstract class ModelSCObj { public static ArrayList<ModelSCObj> existingStaticRenders = new ArrayList(); public final String path; public WavefrontObject model; public ModelSCObj(String path) { this.path = path; this.model = ClientUtils.getModel(path); existingStaticRenders.add(this); } public WavefrontObject rebindModel() { model = ClientUtils.getModel(path); return model; } public void render(TileEntity tile, Tessellator tes, Matrix4 translationMatrix, Matrix4 rotationMatrix, int offsetLighting, boolean invertFaces, String... renderedParts) { ClientUtils.renderStaticWavefrontModel(tile, model, tes, translationMatrix, rotationMatrix, offsetLighting, invertFaces, renderedParts); } public abstract IIcon getBlockIcon(String groupName); } I get errors on, public WavefrontObject model; --- WavefrontObject cannot be resolved to a type ^^ this.model = ClientUtils.getModel(path); --- ClientUtils cannot be resolved amd for "this.model" WavefrontObject cannot be resolved to a type public WavefrontObject rebindModel() <--- Same thing, WavefrontObject cannot be resolved to a type { model = ClientUtils.getModel(path); <--- Same thing return model; } ClientUtils.renderStaticWavefrontModel(tile, model, tes, translationMatrix, rotationMatrix, offsetLighting, invertFaces, renderedParts); ^^^^ ClientUtils cannot be resolved ^^^^^ public abstract IIcon getBlockIcon(String groupName); ^^^^ IIcon cannot be resolved to a type ^^^^ I dont know what to do! I'm a fairly new coder. So any tutorials, or explanations would be nice.
  13. Ok so now... I'm using a custom gui texture. But im having a bit of trouble defining the slots for it. public ContainerSCTileEntity(IInventory player, IInventory SCTileEntity){ this.lowerChestInventory = player; this.tileEntity = SCTileEntity; this.addSlotToContainer(new Slot(SCTileEntity, 0, 7, 52)); this.addSlotToContainer(new Slot(SCTileEntity, 0, 57, 34)); this.addSlotToContainer(new SlotFurnaceOutput(player, SCTileEntity, 0, 115, 34)); int i; for(i = 0; i < 3; ++i){ for(int j = 0; j < 9; ++j){ this.addSlotToContainer(new Slot(player, j+ i * 9 + 9, 8 + j * 18, 84 + i * 18)); } } for(i = 0; i < 9; ++i){ this.addSlotToContainer(new Slot(player, i, 8 + i * 18, 142)); } } this.addSlotToContainer(new SlotFurnaceOutput(player, SCTileEntity, 0, 115, 34)); <--- For that code... Im getting an error. Because I need the entity player. But I dont know how to reference that... I feel so dumb right now lol.
  14. Now I guess I have one more question relating to this.... When I open my GUI. It says container.inventory and container.SCTileEntity How would I fix this. I know in a lang file. But I tried container.inventory.name=Inventory But that doesn't seem to work. EDIT.... After toying around... I figured it out! LOL Here is what i needed to changed @Override protected void drawGuiContainerForegroundLayer(int par1, int par2) { this.fontRendererObj.drawString("Rebar Machine", (this.xSize / 2) - 44, 6, 4210752); this.fontRendererObj.drawString("Inventory", 8, this.ySize - 94, 4210752); } "Rebar Machine etc". The name that was there were : container.inventory and container.SCTileEntity
  15. Okay great! I think I have finally got this working! Here is my slot code: public class SlotSCTile extends Slot { private int itemType; public SlotSCTile(IInventory inventory, int slotIndex, int x, int y) { super(inventory, slotIndex, x, y); } @Override public boolean isItemValid(ItemStack par1ItemStack) { if (par1ItemStack == null) { return false; } Item item = par1ItemStack.getItem(); Block block = Block.getBlockFromItem(item); switch (itemType) { case 0: if (block instanceof rebar) { return true; } break; case 1: if (item instanceof ItemSpade) { return true; } break; case 2: if (item instanceof ItemSword) { return true; } break; case 3: if (item instanceof ItemAxe) { return true; } break; case 4: if (item instanceof ItemHoe) { return true; } break; case 5: if (item instanceof ItemBow) { return true; } break; } return false; } } I've only changed one so far. But it seems to be working.
  16. Basically I want the function to allow only blocks or items within my mod. I know how to allow items in... but I'm completely lost on how you allow blocks to be placed inside of it...Any ideas?
  17. package com.duckcreeper.steelcraft.gui.slots; import com.duckcreeper.steelcraft.init.SteelCraftBlocks; import com.duckcreeper.steelcraft.init.SteelCraftItems; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.Slot; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemPotion; import net.minecraft.item.ItemStack; public class SlotSCTile extends Slot { public SlotSCTile(IInventory inventory, int slotIndex, int x, int y) { super(inventory, slotIndex, x, y); } @Override public boolean isItemValid(ItemStack par1ItemStack) { return par1ItemStack != null && par1ItemStack.getItem() instanceof ItemFood; } } I belive I would have do to something like this: @Override public boolean isItemValid(ItemStack par1ItemStack) { if (par1ItemStack == null) { return false; } Item item = par1ItemStack.getItem(); switch (toolType) { case 0: if (item instanceof ItemPickaxe) { return true; } break; case 1: if (item instanceof ItemSpade) { return true; } break; case 2: if (item instanceof ItemSword) { return true; } break; case 3: if (item instanceof ItemAxe) { return true; } break; case 4: if (item instanceof ItemHoe) { return true; } break; case 5: if (item instanceof ItemBow) { return true; } break; } return false; }
  18. LOL im slowly realizing what wrong. I have it set to only food can be put in it... How do I specify all blocks. or even a certain block from my mod?
×
×
  • Create New...

Important Information

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