Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Advanced/Complicated Datagen (At least, I think it's complicated)


FireTamer81
 Share

Recommended Posts

So, I am rewriting my mod in an effort to do it MUCH better. I don't want to have to deal with copying, pasting, and editing 5,280 JSON files (yes I counted), so I am working on datagen. I Want to add the features I was saying "ah, I'll do it later" to, so I am doing them.

Etc........

Well, right now I am making a type of block with a custom blockstate property (an integer value of 1-4), which will make it change it's model. I have that done and have it working... with handwritten JSONS. 

Now I am wanting to do it in datagen since I will be making I think 48 actual full blocks, which would need 288 JSON files. Which I would then be doing something similar for Stair, Slab, Fence, and Wall variants. So basically, I really need to do it datagen, just don't know how.

Would any of you folk have suggestions or perhaps github repos that show datagen with custom blockstate properties, or perhaps even just how to use the "getVariantBuilder" thing since I will be doing the whole custom blockstate property to stairs, fences, and walls as well.

Link to comment
Share on other sites

While chugging along making the JSONs by hand (to get an idea of how they need to be generated for each type of block), I cam up with a possibly brilliant idea.

Could I somehow make template JSONs and when a new block of a certain type is being generated it will just pull the template and replace certain keywords like "NAME" and "COLOR" instead of all of this getVariantBuilder stuff

Link to comment
Share on other sites

On 9/17/2021 at 11:41 PM, FireTamer81 said:

While chugging along making the JSONs by hand (to get an idea of how they need to be generated for each type of block), I cam up with a possibly brilliant idea.

Could I somehow make template JSONs and when a new block of a certain type is being generated it will just pull the template and replace certain keywords like "NAME" and "COLOR" instead of all of this getVariantBuilder stuff

Make a method which has the parameters that change (name, colour etc.) and perform the datagen logic inside that method. You can even have a method which generates each of the blocks (regular cube, wall, stairs etc.) for a single name.

Unfortunately I don't have a good example of datagen as the mod I am working on using it for uses either simple cubes or a custom model loader. When I was learning how to use the datagen I spent a lot of time looking through the source and IIRC Tropicraft was my starting point, although I cannot remember what that was like. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • I wanted to play Better Minecraft with my friends on my Server but after I installed the mods, the server crashed immedeatly after starting. There is no crashlog created so I cant figure it out by myself.   Thats the Log: [18Oct2021 20:30:51.250] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.8, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge] [18Oct2021 20:30:51.259] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_282 by IcedTea [18Oct2021 20:30:51.658] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [18Oct2021 20:30:51.747] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/home/container/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=SERVER [18Oct2021 20:30:54.167] [main/INFO] [STDERR/]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]: line 1:0 token recognition error at: '~' [18Oct2021 20:30:55.753] [main/ERROR] [mixin/]: Mixin config antiqueatlas.mixins.json does not specify "minVersion" property [18Oct2021 20:30:55.947] [main/ERROR] [mixin/]: Mixin config mixins.terraform-biome-builder.json does not specify "minVersion" property [18Oct2021 20:30:55.950] [main/ERROR] [mixin/]: Mixin config mixins.terraform-dirt.json does not specify "minVersion" property [18Oct2021 20:30:55.953] [main/ERROR] [mixin/]: Mixin config mixins.terraform-leaves.json does not specify "minVersion" property [18Oct2021 20:30:55.956] [main/ERROR] [mixin/]: Mixin config mixins.terraform-signs.json does not specify "minVersion" property [18Oct2021 20:30:55.959] [main/ERROR] [mixin/]: Mixin config mixins.terraform-overworld-biome-extensions.json does not specify "minVersion" property [18Oct2021 20:30:55.961] [main/ERROR] [mixin/]: Mixin config mixins.terraform-tree-api-v1.json does not specify "minVersion" property [18Oct2021 20:30:55.964] [main/ERROR] [mixin/]: Mixin config mixins.terraform-utils.json does not specify "minVersion" property [18Oct2021 20:30:56.170] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [org.infernalstudios.infernalexp.mixin.MixinConnector] [18Oct2021 20:30:56.172] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [someoneelse.betternetherreforged.mixin.MixinConnector] [18Oct2021 20:30:56.173] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.blackgear.cavesandcliffs.mixin.CCBMixinConnector] [18Oct2021 20:30:56.174] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [cech12.extendedmushrooms.mixin.ModMixinConnector] [18Oct2021 20:30:56.214] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [vazkii.patchouli.common.MixinConnector] [18Oct2021 20:30:56.216] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.integral.enigmaticlegacy.MixinConnector] [18Oct2021 20:30:56.219] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.fuzs.easymagic.mixin.MixinConnector] [18Oct2021 20:30:56.223] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.performant.coremod.mixin.Connector] [18Oct2021 20:30:56.231] [main/INFO] [someoneelse.betternetherreforged.BetterNether/]: Better Nether: Mixin Connected! [18Oct2021 20:30:56.247] [main/ERROR] [mixin/]: Mixin config assets/enigmaticlegacy/enigmaticlegacy.mixins.json does not specify "minVersion" property [18Oct2021 20:30:56.254] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, .] [18Oct2021 20:30:56.332] [main/WARN] [mixin/]: Reference map 'immersivecooking.refmap.json' for immersivecooking.mixins.json could not be read. If this is a development environment you can ignore this message [18Oct2021 20:30:56.556] [main/WARN] [mixin/]: Reference map 'globaldataandresourcepacks.refmap.json' for globaldataandresourcepacks.mixins.json could not be read. If this is a development environment you can ignore this message [18Oct2021 20:30:56.625] [main/WARN] [mixin/]: Reference map 'craftabledeeds.refmap.json' for craftabledeeds.mixins.json could not be read. If this is a development environment you can ignore this message [18Oct2021 20:30:56.652] [main/WARN] [mixin/]: Reference map 'nethers_delight.refmap.json' for nethers_delight.mixins.json could not be read. If this is a development environment you can ignore this message [18Oct2021 20:30:56.657] [main/WARN] [mixin/]: Reference map 'brazier-forge-refmap.json' for brazier-forge.mixins.json could not be read. If this is a development environment you can ignore this message [18Oct2021 20:30:56.951] [main/INFO] [com.performant.coremod.Performant/]: Performant configs loaded [18Oct2021 20:30:58.138] [main/WARN] [mixin/]: Error loading class: com/terraforged/mod/chunk/column/post/LayerDecorator (java.lang.ClassNotFoundException: null) [18Oct2021 20:30:58.138] [main/WARN] [mixin/]: @Mixin target com.terraforged.mod.chunk.column.post.LayerDecorator was not found snowrealmagic.mixins.json:MixinLayerDecorator [18Oct2021 20:30:58.143] [main/WARN] [mixin/]: Error loading class: com/terraforged/mod/feature/feature/FreezeLayer (java.lang.ClassNotFoundException: null) [18Oct2021 20:30:58.143] [main/WARN] [mixin/]: @Mixin target com.terraforged.mod.feature.feature.FreezeLayer was not found snowrealmagic.mixins.json:MixinFreezeLayer [18Oct2021 20:30:59.538] [main/FATAL] [net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/renderer/entity/PlayerRenderer for invalid dist DEDICATED_SERVER [18Oct2021 20:30:59.538] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/renderer/entity/PlayerRenderer (java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/entity/PlayerRenderer for invalid dist DEDICATED_SERVER) [18Oct2021 20:30:59.538] [main/WARN] [mixin/]: @Mixin target net.minecraft.client.renderer.entity.PlayerRenderer was not found seals.mixins.json:MixinPlayerRenderer [18Oct2021 20:31:00.021] [main/FATAL] [net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/gui/screen/CreateWorldScreen for invalid dist DEDICATED_SERVER [18Oct2021 20:31:00.021] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/gui/screen/CreateWorldScreen (java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screen/CreateWorldScreen for invalid dist DEDICATED_SERVER) [18Oct2021 20:31:00.021] [main/WARN] [mixin/]: @Mixin target net.minecraft.client.gui.screen.CreateWorldScreen was not found mixins.defaultoptions.json:CreateWorldScreenAccessor [18Oct2021 20:31:00.023] [main/FATAL] [net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/GameSettings for invalid dist DEDICATED_SERVER [18Oct2021 20:31:00.023] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/GameSettings (java.lang.RuntimeException: Attempted to load class net/minecraft/client/GameSettings for invalid dist DEDICATED_SERVER) [18Oct2021 20:31:00.024] [main/WARN] [mixin/]: @Mixin target net.minecraft.client.GameSettings was not found mixins.defaultoptions.json:GameSettingsMixin [18Oct2021 20:31:00.140] [main/FATAL] [net.minecraftforge.fml.loading.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/renderer/tileentity/SignTileEntityRenderer for invalid dist DEDICATED_SERVER [18Oct2021 20:31:00.140] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/renderer/tileentity/SignTileEntityRenderer (java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/tileentity/SignTileEntityRenderer for invalid dist DEDICATED_SERVER) [18Oct2021 20:31:00.140] [main/WARN] [mixin/]: @Mixin target net.minecraft.client.renderer.tileentity.SignTileEntityRenderer was not found farmersdelight.mixins.json:CanvasSignMaterialMixin [18Oct2021 20:31:00.221] [main/WARN] [mixin/]: Error loading class: biomesoplenty/common/world/BOPBiomeProvider (java.lang.ClassNotFoundException: null) [18Oct2021 20:31:00.227] [main/WARN] [mixin/]: Error loading class: xiroc/dungeoncrawl/dungeon/Dungeon (java.lang.ClassNotFoundException: null) [18Oct2021 20:31:00.463] [main/WARN] [mixin/]: Error loading class: biomesoplenty/common/world/BOPBiomeProvider (java.lang.ClassNotFoundException: null) [18Oct2021 20:31:02.548] [main/WARN] [mixin/]: Error loading class: shadows/apotheosis/ench/table/ApothEnchantContainer (java.lang.ClassNotFoundException: null) [18Oct2021 20:31:02.555] [main/WARN] [mixin/]: Error loading class: net/darkhax/darkutils/features/charms/CharmEffects (java.lang.ClassNotFoundException: null) [18Oct2021 20:31:02.633] [main/INFO] [com.performant.coremod.Performant/]: Not enabling mixin forcom.performant.coremod.mixin.forge.BasicEventHooksMixin as config disables it. [18Oct2021 20:31:02.640] [main/INFO] [com.performant.coremod.Performant/]: Not enabling mixin forcom.performant.coremod.mixin.world.WorldMixin as config disables it. [18Oct2021 20:31:02.728] [main/INFO] [com.performant.coremod.Performant/]: Not enabling mixin forcom.performant.coremod.mixin.entity.LivingEntityUpdateEventMixin as config disables it. [18Oct2021 20:31:06.753] [main/WARN] [mixin/]: Mixin apply failed simplyseasons.mixins.json:SSWorld -> net.minecraft.world.World: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException @At("INVOKE") on net/minecraft/world/World::getTemperature with priority 999 cannot inject into net/minecraft/world/World::func_175727_C(Lnet/minecraft/util/math/BlockPos;)Z merged by sereneseasons.mixin.MixinWorld with priority 1000 [ -> redirect$zjf000$getTemperature(Lnet/minecraft/world/biome/Biome;Lnet/minecraft/util/math/BlockPos;)F -> Prepare] org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: @At("INVOKE") on net/minecraft/world/World::getTemperature with priority 999 cannot inject into net/minecraft/world/World::func_175727_C(Lnet/minecraft/util/math/BlockPos;)Z merged by sereneseasons.mixin.MixinWorld with priority 1000 [ -> redirect$zjf000$getTemperature(Lnet/minecraft/world/biome/Biome;Lnet/minecraft/util/math/BlockPos;)F -> Prepare]     at org.spongepowered.asm.mixin.injection.code.Injector.findTargetNodes(Injector.java:305) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.injection.code.Injector.find(Injector.java:240) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.prepare(InjectionInfo.java:421) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1319) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1042) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:393) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) ~[modlauncher-8.0.9.jar:8.0.9+86+master.3cf110c]     at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) ~[modlauncher-8.0.9.jar:?]     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-8.0.9.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) ~[modlauncher-8.0.9.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) ~[modlauncher-8.0.9.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) ~[modlauncher-8.0.9.jar:?]     at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[?:1.8.0_282]     at net.minecraft.block.Blocks.<clinit>(Blocks.java:30) ~[?:?]     at net.minecraft.world.gen.surfacebuilders.SurfaceBuilder.<clinit>(SurfaceBuilder.java:12) ~[?:?]     at net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilders.<clinit>(SourceFile:11) ~[?:?]     at net.minecraft.util.registry.WorldGenRegistries.func_243674_g(WorldGenRegistries.java:33) ~[?:?]     at net.minecraft.util.registry.WorldGenRegistries.func_243668_a(WorldGenRegistries.java:89) ~[?:?]     at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) ~[?:1.8.0_282]     at net.minecraft.util.registry.WorldGenRegistries.<clinit>(WorldGenRegistries.java:88) ~[?:?]     at net.minecraft.util.registry.Registry.<clinit>(Registry.java:464) ~[?:?]     at net.minecraft.util.registry.Bootstrap.func_151354_b(Bootstrap.java:38) ~[?:?]     at net.minecraft.server.Main.main(Main.java:92) ~[?:?]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_282]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_282]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_282]     at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_282]     at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51) ~[forge-1.16.5-36.2.8.jar:36.2]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?]     at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) [forge-1.16.5-36.2.8.jar:?]     at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) [forge-1.16.5-36.2.8.jar:?]     at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) [forge-1.16.5-36.2.8.jar:?] [18Oct2021 20:31:07.367] [main/WARN] [mixin/]: @Redirect conflict. Skipping cavebiomes.mixins.json:ChunkGeneratorMixin->@Redirect::generateSurfaceFeatures(Lnet/minecraft/world/biome/provider/BiomeProvider;III)Lnet/minecraft/world/biome/Biome; with priority 1000, already redirected by cavebiomeapi.mixins.json:common.ChunkGeneratorMixin->@Redirect::cba$generateSurfaceFeatures(Lnet/minecraft/world/biome/provider/BiomeProvider;III)Lnet/minecraft/world/biome/Biome; with priority 1000 [18Oct2021 20:31:07.369] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [18Oct2021 20:31:07.369] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39) [18Oct2021 20:31:07.369] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [18Oct2021 20:31:07.369] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [18Oct2021 20:31:07.370] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [18Oct2021 20:31:07.370] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [18Oct2021 20:31:07.370] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) [18Oct2021 20:31:07.370] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) [18Oct2021 20:31:07.370] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) [18Oct2021 20:31:07.370] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: java.lang.reflect.InvocationTargetException [18Oct2021 20:31:07.370] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [18Oct2021 20:31:07.370] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [18Oct2021 20:31:07.370] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [18Oct2021 20:31:07.371] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at java.lang.reflect.Method.invoke(Method.java:498) [18Oct2021 20:31:07.371] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51) [18Oct2021 20:31:07.371] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [18Oct2021 20:31:07.371] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     ... 7 more [18Oct2021 20:31:07.371] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]: Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered [18Oct2021 20:31:07.371] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) [18Oct2021 20:31:07.372] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) [18Oct2021 20:31:07.372] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) [18Oct2021 20:31:07.372] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) [18Oct2021 20:31:07.372] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) [18Oct2021 20:31:07.372] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) [18Oct2021 20:31:07.372] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) [18Oct2021 20:31:07.372] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [18Oct2021 20:31:07.372] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [18Oct2021 20:31:07.372] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [18Oct2021 20:31:07.373] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at java.lang.ClassLoader.loadClass(ClassLoader.java:352) [18Oct2021 20:31:07.373] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.block.Block.<clinit>(Block.java:485) [18Oct2021 20:31:07.373] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.block.Blocks.<clinit>(Blocks.java:30) [18Oct2021 20:31:07.373] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.world.gen.surfacebuilders.SurfaceBuilder.<clinit>(SurfaceBuilder.java:12) [18Oct2021 20:31:07.373] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilders.<clinit>(SourceFile:11) [18Oct2021 20:31:07.373] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.util.registry.WorldGenRegistries.func_243674_g(WorldGenRegistries.java:33) [18Oct2021 20:31:07.373] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.util.registry.WorldGenRegistries.func_243668_a(WorldGenRegistries.java:89) [18Oct2021 20:31:07.373] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) [18Oct2021 20:31:07.373] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.util.registry.WorldGenRegistries.<clinit>(WorldGenRegistries.java:88) [18Oct2021 20:31:07.373] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.util.registry.Registry.<clinit>(Registry.java:464) [18Oct2021 20:31:07.374] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.util.registry.Bootstrap.func_151354_b(Bootstrap.java:38) [18Oct2021 20:31:07.374] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.server.Main.main(Main.java:92) [18Oct2021 20:31:07.374] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     ... 13 more [18Oct2021 20:31:07.374] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Redirector generateSurfaceFeatures(Lnet/minecraft/world/biome/provider/BiomeProvider;III)Lnet/minecraft/world/biome/Biome; in cavebiomes.mixins.json:ChunkGeneratorMixin failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap cavebiomes.refmap.json [18Oct2021 20:31:07.374] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]:     at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.postInject(InjectionInfo.java:468) [18Oct2021 20:31:07.374] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]:     at org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1362) [18Oct2021 20:31:07.374] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]:     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1051) [18Oct2021 20:31:07.375] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]:     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:400) [18Oct2021 20:31:07.375] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]:     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) [18Oct2021 20:31:07.375] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]:     at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) [18Oct2021 20:31:07.375] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]:     at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) [18Oct2021 20:31:07.375] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]:     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) [18Oct2021 20:31:07.375] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]:     ... 34 more  
    • ItemGroup belongs to the net.minecraft.item package, not "items"
    • You're in luck! Kaupenjoe just made an entity tutorial today! Entity Spawn Eggs (13:23) Entities Spawning in World (20:49)
    • I am new to modding and I'm sure this is a simple fix but I cannot for the life of me figure out why this error is thrown.  I am running forge-1.17.1-37.0.90 and all other aspects seem to be working fine I am following this tutorial https://thebookofmodding.ml/adding-custom-items/ here is my code (sorry its messy rn) [registryhandler class] https://imgur.com/a/EGC2jyj package com.example.examplemod; import net.minecraft.item.ItemGroup; import net.minecraft.world.item.Item; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.fmllegacy.RegistryObject; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; /* public class RegistryHandler { // create DeferredRegister object public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, ExampleMod.MODID); public static void init() { // attach DeferredRegister to the event bus ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus()); } // register item public static final RegistryObject<Item> COPPER = ITEMS.register("copper", () -> // new Item(new Item.Properties().group(ItemGroup.MATERIALS)) // ); new Item( new Item.Properties().group(ItemGroup.MATERIALS) ) ); */ public class RegistryHandler { public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, ExampleMod.MODID); public static void init() { // attach DeferredRegister to the event bus ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus()); } public static final RegistryObject<Item> TITAN = ITEMS.register("titan", ()-> new Item(new Item.Properties().group(ItemGroup.REDSTONE))); }  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.