Jump to content

TheReturningVoid

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by TheReturningVoid

  1. Cubik Studio is what I use to make models. Sadly, it's not a free application. You might be able to find a copy of Cubik Lite (older and less features than Studio) somewhere on the internet, however.
  2. I was completely unaware of the existence of pack.mcmeta I'll have to look into that.
  3. I don't think that's correct (or it doesn't apply to localization files at least); I'm using a file with the same name which works fine in 1.12.
  4. Here's a few things that could be wrong: 1. Your mod id isn't "m1". In that case, change the "assets/m1" folder name accordingly. 2. Your item's registry name isn't "johncena". If it isn't, either change the model name or the registry name to match. 3. Your lang and/or model file could be formatted incorrectly. Post them here or on a service like pastebin so I can make sure they're correct. And just a tip: the unlocalized name should be unique from any other mod. I'd reccomend changing it to "<modid>.johncena" to avoid conflicts with any other mod. EDIT: Looking at this tutorial, it seems to use some old ways of registering items and models, the latter of which could be causing your model problem. For items, you should listen on the RegistryEvent.Register<Item> event (make a method with this type as a parameter, annotate the method with @EventSubscriber, and annotate the class with @Mod.EventBusSubscriber) and call "event.getRegistry().register(item)". Likewise, you should listen on the ModelRegistryEvent and use ModelLoader.setCustomModelResourceLocation instead of Minecraft.getMinecraft().getRenderItem()... for your item models. Also, the first parameter should just be "item.getRegistryName" instead of manually putting it together.
  5. Hmm, I assumed because this was in a singleton object, that it was static enough Thanks for that, will keep an eye on that one.
  6. Hello all, Currently having a bit of an issue with the @GameRegistry.ObjectHolder annotation. Using it like so in Java works just fine: @GameRegistry.ObjectHolder("tutorialmod:tutorialblock") public static TutorialBlock tutorialBlock; However, in Scala, it's a bit of a different story. @ObjectHolder("tutorialmod:tutorialblock") final val tutorialBlock: TutorialBlock = null Trying to access tutorialBlock after it's been registered gives me a NPE, which it shouldn't be doing, because it's already registered. What I'm finding odd here is that it works in Java, but not in Scala. I'd assume that reflection would stay the same between the two languages, but apparently not... Worst-case scenario, I'll just have to initialize that variable manually. I know I'm probably not going to get much by way of help because I'm using Scala, but any help would be greatly appreciated!
  7. Hello, Trying to build the version of Forge stated in the title with "gradlew setupDecompWorkspace" and it errors with the following message: A problem occurred configuring root project '<foldername>'. > For input string: "pre4" Adding the --stacktrace flag gives me this stacktrace: org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'mc-modding-guide'. at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:79) at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:74) at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61) at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:493) at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:80) at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:31) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64) at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33) at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50) at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22) at org.gradle.launcher.Main.doAction(Main.java:46) at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) at org.gradle.launcher.Main.main(Main.java:37) at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50) at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32) at org.gradle.launcher.GradleMain.main(GradleMain.java:23) at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:55) Caused by: java.lang.NumberFormatException: For input string: "pre4" at net.minecraftforge.gradle.user.patch.UserPatchBasePlugin.doVersionChecks(UserPatchBasePlugin.java:203) at net.minecraftforge.gradle.user.UserBasePlugin.afterEvaluate(UserBasePlugin.java:971) at net.minecraftforge.gradle.common.BasePlugin$2.execute(BasePlugin.java:130) at net.minecraftforge.gradle.common.BasePlugin$2.execute(BasePlugin.java:122) at org.gradle.listener.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:109) at org.gradle.listener.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:98) at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:83) at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:31) at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy13.afterEvaluate(Unknown Source) at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67) ... 29 more This leads me to believe that the build.gradle is setup incorrectly (providing a string where an integer was expected). It looks to be the version entry in the minecraft section. Is there a fix yet or should I use the 1.7.10 builds instead of the 1.7.10-pre4 ones? EDIT: Apparently the pre4 builds are very old. I thought they were just newer releases of the 1.7.10 forge. That explains my problem Can a moderator or someone else please lock this thread?
×
×
  • Create New...

Important Information

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