Jump to content

Eractnod

Members
  • Posts

    56
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    Am I the only zen one around here?

Eractnod's Achievements

Stone Miner

Stone Miner (3/8)

1

Reputation

  1. Thanks all. Was very helpful. I changed it to this. private static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID); Everything else stayed the same as before.
  2. In 1.15.2 I used DeferredRegister to register all my blocks and items. In 1.16.1, DeferredRegister is private. Is this an error and if no, then what is the preferred method to register blocks and items in 1.16.1? public static final DeferredRegister<Block> BLOCKS = new DeferredRegister<>(ForgeRegistries.BLOCKS, MODID);
  3. That is what I thought. Thank you for the response.
  4. Just wondering if we are in a holding pattern on recipe registry, or am I missing something? @Deprecated //TODO Make IRecipe a registry public static IRecipe addShapedRecipe(ResourceLocation name, @Nonnull ItemStack output, Object... params) { throw new RuntimeException("TODO: Forge implement IRecipe registry"); //return CraftingManager.addRecipe(output, params); } @Deprecated //TODO Make IRecipe a registry public static void addShapelessRecipe(ResourceLocation name, @Nonnull ItemStack output, Ingredient... params) { throw new RuntimeException("TODO: Forge implement IRecipe registry"); //CraftingManager.getInstance().addShapelessRecipe(output, params); } @Deprecated //TODO Make IRecipe a registry public static void addRecipe(ResourceLocation name, IRecipe recipe) { throw new RuntimeException("TODO: Forge implement IRecipe registry"); //CraftingManager.getInstance().getRecipeList().add(recipe); }
  5. Just tried to build my mod and am getting a No Such version exists error pointing to line 25 of the build.gradle file. This line is the forge version line. Stack trace error FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\User\Documents\Minecraft forge\1.7.10_DamPower\build.gradle' line: 25 * What went wrong: A problem occurred evaluating root project '1.7.10_DamPower'. > No such version exists! * Try: Run with --info or --debug option to get more log output. * Exception is: org.gradle.api.GradleScriptException: A problem occurred evaluating root project '1.7.10_DamPower'. at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54) at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:187) at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:39) at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26) at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34) at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55) at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:470) at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:79) at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:31) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:128) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:105) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:85) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:81) 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:39) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:29) 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:237) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169) 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:33) at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54) at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35) 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:56) Caused by: net.minecraftforge.gradle.GradleConfigurationException: No such version exists! at net.minecraftforge.gradle.user.patch.UserPatchExtension.checkAndSetVersion(UserPatchExtension.java:170) at net.minecraftforge.gradle.user.patch.UserPatchExtension.setVersion(UserPatchExtension.java:81) at net.minecraftforge.gradle.user.patch.UserPatchExtension_Decorated.setVersion(Unknown Source) at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.setProperty(BeanDynamicObject.java:187) at org.gradle.api.internal.BeanDynamicObject.setProperty(BeanDynamicObject.java:112) at org.gradle.api.internal.CompositeDynamicObject.setProperty(CompositeDynamicObject.java:101) at net.minecraftforge.gradle.user.patch.UserPatchExtension_Decorated.setProperty(Unknown Source) at build_5mpvjavmuqlolqtj20lis32pao$_run_closure1.doCall(C:\Users\User\Documents\Minecraft forge\1.7.10_DamPower\build.gradle:25) at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:59) at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.configure(ExtensionsStorage.java:145) at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(ExtensionsStorage.java:69) at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicObject.invokeMethod(DefaultConvention.java:207) at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147) at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:79) at build_5mpvjavmuqlolqtj20lis32pao.run(C:\Users\User\Documents\Minecraft forge\1.7.10_DamPower\build.gradle:24) at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52) ... 34 more BUILD FAILED Total time: 5.36 secs build.gradle buildscript { repositories { mavenCentral() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } maven { name = "sonatype" url = "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' } } apply plugin: 'forge' version = "MC1.7.10_DP1.0.8.1448" group= "com.eractnod.dampower" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "dampower" minecraft { version = "1.7.10-10.13.4.1448-1.7.10" runDir = "eclipse" } dependencies { // you may put jars on which you depend on in ./libs // or you may define them like so.. //compile "some.group:artifact:version:classifier" //compile "some.group:artifact:version" // real examples //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // for more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } processResources { // this will ensure that this task is redone when the versions change. inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' // replace version and mcversion expand 'version':project.version, 'mcversion':project.minecraft.version } // copy everything else, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } So I downloaded the source code again and tried to run gradlew setupDecompWorkspace and getting the same fault on a fresh start. I was able to build this mod yesterday with no issues. Edit: I had to reboot my computer. It built after the reboot.
  6. The reason why the vanilla json works in vanilla is the POWERED property is ignored. Just found this. When I built my doors, there was no ModelLoader yet, so had to add the POWERED property to the json to get it to work. Same went with my gates. this.registerBlockWithStateMapper(Blocks.oak_door, (new StateMap.Builder()).addPropertiesToIgnore(new IProperty[] {BlockDoor.POWERED}).build()); this.registerBlockWithStateMapper(Blocks.spruce_door, (new StateMap.Builder()).addPropertiesToIgnore(new IProperty[] {BlockDoor.POWERED}).build()); this.registerBlockWithStateMapper(Blocks.birch_door, (new StateMap.Builder()).addPropertiesToIgnore(new IProperty[] {BlockDoor.POWERED}).build()); this.registerBlockWithStateMapper(Blocks.jungle_door, (new StateMap.Builder()).addPropertiesToIgnore(new IProperty[] {BlockDoor.POWERED}).build()); this.registerBlockWithStateMapper(Blocks.acacia_door, (new StateMap.Builder()).addPropertiesToIgnore(new IProperty[] {BlockDoor.POWERED}).build()); this.registerBlockWithStateMapper(Blocks.dark_oak_door, (new StateMap.Builder()).addPropertiesToIgnore(new IProperty[] {BlockDoor.POWERED}).build()); this.registerBlockWithStateMapper(Blocks.iron_door, (new StateMap.Builder()).addPropertiesToIgnore(new IProperty[] {BlockDoor.POWERED}).build());
  7. Show your door blockstates.json file. If you just copied the vanilla one, then you will need to add the powered states to the file like your errors were showing. Or remove the powered property from your door block like CoolAlias said. Vanilla "facing=east,half=lower,hinge=left,open=false": { "model": "wooden_door_bottom" }, My custom door "facing=east,half=lower,hinge=left,open=false,powered=true": { "model": "telvarianexpanse:door_purpleheart_bottom" },
  8. I think your woodPlank should be plankWood. This is what I have for ore dictionary recipe in my 1.8 mod. for(ItemStack s : OreDictionary.getOres("plankWood")) { GameRegistry.addRecipe(new ItemStack(TEBlocks.woodenDrawBridge), new Object[]{"SSS", "III","SSS", 'S', (s), 'I', Blocks.iron_block}); }
  9. Unless you changed some filenames in your assets from the screen shots in the above posts, it should have worked. This is what I have with my modeled lamps which are two blocks tall. Blockstates Filename TEFloorLamp.json { "variants": { "normal": { "model": "telvarianexpanse:lamp_floor" } } } Models.Blocks Filename lamp_floor.json with the texture name of floorLamp.png { "parent": "block/cube_all", "textures": { "all": "telvarianexpanse:blocks/floorLamp" } } Models.items Filename TEFloorLamp.json { "parent": "builtin/generated", "textures": { "layer0": "telvarianexpanse:items/floorLamp" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } }
  10. The Blockstates json needs to point to the blocks json file. Try { "variants": { "normal": { "model": "fruitsmodpro:Tisch" } } }
  11. Show your Blockstates Tisch.json and your models.blocks Tisch.json please
  12. It is in the equation. You can harvest wood with your hand, but can not harvest cobblestone with your hand. You can break both with your hand. Since you can harvest wood with your hand the divisor is 30. You can't harvest cobblestone, so the divisor is 100. That is the difference.
  13. Not sure if this will help, but to fix shadowing on my stairs I had to useNeighborBrightness = true;
  14. Instead of "particle": "#side", try "particle": "#0". If this doesn't work then I would try "particle":"sureencore:blocks/zombie_spawner_north",. I think the second one would work better.
  15. In your Model Block json, since you are not using a parent json, try adding a particle texture to the bottom of your texture section "textures": { "0": "sureencore:blocks/zombie_spawner_north", "particle": "#side" },
×
×
  • Create New...

Important Information

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