Jump to content

Crash when creating or loading a world


SynAck

Recommended Posts

First let me say that this is my first attempt at a mod with Forge.  

I don't think I made it too complicated. 

I am simply adding Blocks and Items to be used in a dimension that is defined via the json format for 1.16.4+.

The dimension by itself as a datapack works fine.. However when I combine it with the mod code the game crashes.  Being rather new to Forge I am not seeing the problem when looking at the debug log/Stack Trace.  I am hoping someone here might be able to point me in the right direction.

I have followed a few tutorials here and there, but I did my best to utilize the new formats for 1.16.4 forge 35.1.11.  (Deferred registries etc..)

That is not to say I don't have mistakes.. I am sure I flubbed somewhere, and would be thankful with any help that you guys/gals can provide.

 

Please let me know if anything is needed, I am happy to provide anything.

 

Here is the crash report:
 

---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 12/9/20 11:45 PM
Description: mouseClicked event handler

java.lang.NullPointerException: mouseClicked event handler
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:269) ~[?:1.8.0_275] {}
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_275] {}
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_275] {}
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647) ~[?:1.8.0_275] {}
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:272) ~[?:1.8.0_275] {}
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_275] {}
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_275] {}
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_275] {}
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_275] {}
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_275] {}
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[?:1.8.0_275] {}
	at net.minecraft.world.biome.BiomeGenerationSettings.<init>(BiomeGenerationSettings.java:62) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.world.biome.BiomeGenerationSettings.<init>(BiomeGenerationSettings.java:32) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.world.biome.BiomeGenerationSettings$Builder.build(BiomeGenerationSettings.java:163) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraftforge.common.ForgeHooks.enhanceBiome(ForgeHooks.java:903) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.world.biome.Biome.lambda$null$8(Biome.java:75) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B}
	at com.mojang.datafixers.util.Function8.lambda$null$6(Function8.java:22) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.datafixers.util.Function4.lambda$null$2(Function4.java:14) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.serialization.DataResult$Instance.ap2(DataResult.java:315) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.datafixers.kinds.Applicative.ap4(Applicative.java:84) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$7.decode(RecordCodecBuilder.java:404) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.Decoder.parse(Decoder.java:18) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at net.minecraft.util.registry.WorldSettingsImport$IResourceAccess$RegistryAccess.decode(WorldSettingsImport.java:236) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.util.registry.WorldSettingsImport.createRegistry(WorldSettingsImport.java:131) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.util.registry.WorldSettingsImport.lambda$decode$5(WorldSettingsImport.java:105) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at net.minecraft.util.registry.WorldSettingsImport.decode(WorldSettingsImport.java:104) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.util.registry.DynamicRegistries.loadRegistryData(DynamicRegistries.java:144) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.util.registry.DynamicRegistries.loadRegistryData(DynamicRegistries.java:132) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.util.registry.WorldSettingsImport.create(WorldSettingsImport.java:53) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.util.registry.DynamicRegistries.func_239770_b_(DynamicRegistries.java:85) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.client.gui.screen.CreateWorldScreen.func_243425_a(CreateWorldScreen.java:118) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.WorldSelectionList.func_212330_a(WorldSelectionList.java:96) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.WorldSelectionList.<init>(WorldSelectionList.java:77) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.WorldSelectionScreen.init(WorldSelectionScreen.java:45) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.Screen.init(Screen.java:325) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.displayGuiScreen(Minecraft.java:874) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.MainMenuScreen.lambda$addSingleplayerMultiplayerButtons$5(MainMenuScreen.java:150) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.widget.button.Button.onPress(Button.java:26) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.widget.button.AbstractButton.onClick(AbstractButton.java:18) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.widget.Widget.mouseClicked(Widget.java:136) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.INestedGuiEventHandler.mouseClicked(INestedGuiEventHandler.java:31) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.MainMenuScreen.mouseClicked(MainMenuScreen.java:302) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.MouseHelper.lambda$mouseButtonCallback$0(MouseHelper.java:92) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.Screen.wrapScreenError(Screen.java:427) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.MouseHelper.mouseButtonCallback(MouseHelper.java:90) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.MouseHelper.lambda$null$4(MouseHelper.java:185) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.util.concurrent.ThreadTaskExecutor.execute(ThreadTaskExecutor.java:86) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.client.MouseHelper.lambda$registerCallbacks$5(MouseHelper.java:184) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:build 10] {}
	at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:build 10] {}
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174) ~[lwjgl-glfw-3.2.2.jar:build 10] {}
	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:112) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1025) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.run(Minecraft.java:612) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
	at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_275] {}
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_275] {}
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_275] {}
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_275] {}
	at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] {}
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] {}
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] {}
	at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:269) ~[?:1.8.0_275] {}
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_275] {}
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_275] {}
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647) ~[?:1.8.0_275] {}
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:272) ~[?:1.8.0_275] {}
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_275] {}
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_275] {}
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_275] {}
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_275] {}
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_275] {}
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[?:1.8.0_275] {}
	at net.minecraft.world.biome.BiomeGenerationSettings.<init>(BiomeGenerationSettings.java:62) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.world.biome.BiomeGenerationSettings.<init>(BiomeGenerationSettings.java:32) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.world.biome.BiomeGenerationSettings$Builder.build(BiomeGenerationSettings.java:163) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraftforge.common.ForgeHooks.enhanceBiome(ForgeHooks.java:903) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
	at net.minecraft.world.biome.Biome.lambda$null$8(Biome.java:75) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B}
	at com.mojang.datafixers.util.Function8.lambda$null$6(Function8.java:22) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.datafixers.util.Function4.lambda$null$2(Function4.java:14) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.serialization.DataResult$Instance.ap2(DataResult.java:315) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.datafixers.kinds.Applicative.ap4(Applicative.java:84) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$7.decode(RecordCodecBuilder.java:404) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.Decoder.parse(Decoder.java:18) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at net.minecraft.util.registry.WorldSettingsImport$IResourceAccess$RegistryAccess.decode(WorldSettingsImport.java:236) ~[forge:?] {re:classloading}
	at net.minecraft.util.registry.WorldSettingsImport.createRegistry(WorldSettingsImport.java:131) ~[forge:?] {re:classloading}
	at net.minecraft.util.registry.WorldSettingsImport.lambda$decode$5(WorldSettingsImport.java:105) ~[forge:?] {re:classloading}
	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?] {}
	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?] {re:classloading}
	at net.minecraft.util.registry.WorldSettingsImport.decode(WorldSettingsImport.java:104) ~[forge:?] {re:classloading}
	at net.minecraft.util.registry.DynamicRegistries.loadRegistryData(DynamicRegistries.java:144) ~[forge:?] {re:classloading}
	at net.minecraft.util.registry.DynamicRegistries.loadRegistryData(DynamicRegistries.java:132) ~[forge:?] {re:classloading}
	at net.minecraft.util.registry.WorldSettingsImport.create(WorldSettingsImport.java:53) ~[forge:?] {re:classloading}
	at net.minecraft.util.registry.DynamicRegistries.func_239770_b_(DynamicRegistries.java:85) ~[forge:?] {re:classloading}
	at net.minecraft.client.gui.screen.CreateWorldScreen.func_243425_a(CreateWorldScreen.java:118) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.WorldSelectionList.func_212330_a(WorldSelectionList.java:96) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.WorldSelectionList.<init>(WorldSelectionList.java:77) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.WorldSelectionScreen.init(WorldSelectionScreen.java:45) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.Screen.init(Screen.java:325) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.displayGuiScreen(Minecraft.java:874) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.MainMenuScreen.lambda$addSingleplayerMultiplayerButtons$5(MainMenuScreen.java:150) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.widget.button.Button.onPress(Button.java:26) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.widget.button.AbstractButton.onClick(AbstractButton.java:18) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.widget.Widget.mouseClicked(Widget.java:136) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.INestedGuiEventHandler.mouseClicked(INestedGuiEventHandler.java:31) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.gui.screen.MainMenuScreen.mouseClicked(MainMenuScreen.java:302) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.MouseHelper.lambda$mouseButtonCallback$0(MouseHelper.java:92) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
-- Affected screen --
Details:
	Screen name: net.minecraft.client.gui.screen.MainMenuScreen
Stacktrace:
	at net.minecraft.client.gui.screen.Screen.wrapScreenError(Screen.java:427) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.MouseHelper.mouseButtonCallback(MouseHelper.java:90) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.MouseHelper.lambda$null$4(MouseHelper.java:185) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.util.concurrent.ThreadTaskExecutor.execute(ThreadTaskExecutor.java:86) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.client.MouseHelper.lambda$registerCallbacks$5(MouseHelper.java:184) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:build 10] {}
	at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:build 10] {}
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174) ~[lwjgl-glfw-3.2.2.jar:build 10] {}
	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:112) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1025) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.run(Minecraft.java:612) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
	at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_275] {}
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_275] {}
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_275] {}
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_275] {}
	at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] {}
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] {}
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] {}
	at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {}


-- System Details --
Details:
	Minecraft Version: 1.16.4
	Minecraft Version ID: 1.16.4
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_275, Amazon.com Inc.
	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Amazon.com Inc.
	Memory: 2919268664 bytes (2784 MB) / 3284140032 bytes (3132 MB) up to 7587495936 bytes (7236 MB)
	CPUs: 16
	JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
	ModLauncher: 8.0.6+85+master.325de55
	ModLauncher launch target: fmluserdevclient
	ModLauncher naming: mcp
	ModLauncher services: 
		/mixin-0.8.2.jar mixin PLUGINSERVICE 
		/eventbus-3.0.5-service.jar eventbus PLUGINSERVICE 
		/forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-launcher.jar object_holder_definalize PLUGINSERVICE 
		/forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-launcher.jar runtime_enum_extender PLUGINSERVICE 
		/accesstransformers-2.2.0-shadowed.jar accesstransformer PLUGINSERVICE 
		/forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-launcher.jar capability_inject_definalize PLUGINSERVICE 
		/forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-launcher.jar runtimedistcleaner PLUGINSERVICE 
		/mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE 
		/forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16.3-launcher.jar fml TRANSFORMATIONSERVICE 
	FML: 35.1
	Forge: net.minecraftforge:35.1.11
	FML Language Providers: 
		[email protected]
		minecraft@1
	Mod List: 
		client-extra.jar                                  |Minecraft                     |minecraft                     |1.16.4              |DONE      |a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
		forge-1.16.4-35.1.11_mapped_snapshot_20201028-1.16|Forge                         |forge                         |35.1.11             |DONE      |NOSIGNATURE
		main                                              |Phobos Dimension              |phobosdimension               |NONE                |DONE      |NOSIGNATURE
	Crash Report UUID: cb8e3652-013f-40e7-b3d8-2e18f92446f0
	Launched Version: MOD_DEV
	Backend library: LWJGL version 3.2.2 build 10
	Backend API: Intel(R) UHD Graphics GL version 4.6.0 - Build 26.20.100.7985, Intel
	GL Caps: Using framebuffer using OpenGL 3.0
	Using VBOs: Yes
	Is Modded: Definitely; Client brand changed to 'forge'
	Type: Client (map_client.txt)
	Graphics mode: fancy
	Resource Packs: vanilla, mod_resources
	Current Language: English (US)
	CPU: 16x Intel(R) Core(TM) i9-10980HK CPU @ 2.40GHz



Sorry for the delay I am currently the on-call at work and it was a pretty busy day..
the datapack zip is just the resources and it works when added as a datapack.

The other zip file is the whole mod source and all.

 

phobosDataPack_working.zip

Phobos-DimensionMod.zip

Edited by SynAck
Adding files
Link to comment
Share on other sites

 

I did.. I attached the whole source.

but for ease I'll put it in code tags..

This is the Dimension main JSON

{
    "type": "phobosdimension:phobos",
    "generator": {
        "type": "minecraft:noise",
        "seed": 1585980116,
        "biome_source": {
            "humidity_noise": {
                "firstOctave": 2,
                "amplitudes": [
                    1,
                    1
                ]
            },
            "altitude_noise": {
                "firstOctave": 2,
                "amplitudes": [
                    1,
                    1
                ]
            },
            "weirdness_noise": {
                "firstOctave": 2,
                "amplitudes": [
                    1,
                    1
                ]
            },
            "temperature_noise": {
                "firstOctave": 2,
                "amplitudes": [
                    1,
                    1
                ]
            },
            "type": "minecraft:multi_noise",
            "seed": 1585980116,
            "biomes": [{
                    "biome": "phobosdimension:wastes",
                    "parameters": {
                        "altitude": 0,
                        "temperature": 0,
                        "humidity": 1.0,
                        "weirdness": 0,
                        "offset": 0
                    }
                },
                {
                    "biome": "phobosdimension:caves",
                    "parameters": {
                        "altitude": 0.1,
                        "temperature": 0,
                        "humidity": 0.3,
                        "weirdness": 0.1,
                        "offset": 0
                    }
                },
                {
                    "biome": "phobosdimension:plains",
                    "parameters": {
                        "altitude": 0,
                        "temperature": 0,
                        "humidity": 0.4,
                        "weirdness": 0.2,
                        "offset": 0
                    }
                }
            ]
        },
        "settings": "phobosdimension:phobos"
    }
}

 

Dimension Type:

{
    "ultrawarm": false,
    "natural": false,
    "piglin_safe": false,
    "respawn_anchor_works": true,
    "bed_works": true,
    "has_raids": true,
    "has_skylight": true,
    "has_ceiling": true,
    "coordinate_scale": 0.01,
    "ambient_light": 1.7,
    "fixed_time": 12000,
    "logical_height": 60,
    "effects": "minecraft:the_nether",
    "infiniburn": "minecraft:soul_fire_base_blocks"
}

 

Here is the source:
Main Mod Class:

package com.synack.phobosdimension;

import com.synack.phobosdimension.features.PhobosFeatures;
import com.synack.phobosdimension.registry.RegistryHandler;
import com.synack.phobosdimension.registry.bundles.PhobosDimensionBundle;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.world.gen.GenerationStage;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.event.world.BiomeLoadingEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.event.server.FMLServerStartingEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

// The value here should match an entry in the META-INF/mods.toml file
@Mod("phobosdimension")
public class phobosdimension
{
    // Directly reference a log4j logger.
    private static final Logger LOGGER = LogManager.getLogger();
    public static final String MOD_ID = "phobosdimension";

    public phobosdimension() {
        // Register the setup method for modloading
        FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
        // Register the doClientStuff method for modloading
        FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff);
        // Register phobosdimension items
        IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus();
        PhobosDimensionBundle.init();
        //FoodRegistry.init();
        RegistryHandler.init();
        //CustomTileEntities.TILE_ENTITIES.register(bus);

        // Register ourselves for server and other game events we are interested in
        MinecraftForge.EVENT_BUS.register(this);
    }

    private void setup(final FMLCommonSetupEvent event)
    {
        // some preinit code
        LOGGER.info("HELLO FROM PREINIT");
        LOGGER.info("DIRT BLOCK >> {}", Blocks.DIRT.getRegistryName());
    }

    private void doClientStuff(final FMLClientSetupEvent event) {
        // do something that can only be done on the client
        LOGGER.info("Got game settings {}", event.getMinecraftSupplier().get().gameSettings);
    }

    public static final ItemGroup TAB = new ItemGroup("PhobosDimensionTab") {
        @Override
        public ItemStack createIcon() {
            return new ItemStack(PhobosDimensionBundle.FROST_BURN_ORE_ITEM.get());
        }
    };

    // You can use SubscribeEvent and let the Event Bus discover methods to call
    @SubscribeEvent
    public void onServerStarting(FMLServerStartingEvent event) {
        // do something when the server starts
        LOGGER.info("HELLO from server starting");
    }

    @SubscribeEvent
    public void biomeGeneration(final BiomeLoadingEvent event) {
        event.getGeneration().getFeatures(GenerationStage.Decoration.UNDERGROUND_ORES)
                .add(() -> PhobosFeatures.FROST_BURN_ORE_CONFIG);
    }

    // You can use EventBusSubscriber to automatically subscribe events on the contained class (this is subscribing to the MOD
    // Event bus for receiving Registry Events)
    @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD)
    public static class RegistryEvents {
        @SubscribeEvent
        public static void onBlocksRegistry(final RegistryEvent.Register<Block> blockRegistryEvent) {
            // register a new block here
            LOGGER.info("HELLO from Register Block");
        }
    }
}

 

Here is the registry Handler:
 

package com.synack.phobosdimension.registry;

import com.synack.phobosdimension.phobosdimension;
import net.minecraft.block.Block;
import net.minecraft.item.*;
import net.minecraft.world.gen.feature.Feature;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class RegistryHandler {
    public static DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, phobosdimension.MOD_ID);
    public static DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, phobosdimension.MOD_ID);
    public static final DeferredRegister<Feature<?>> FEATURES = DeferredRegister.create(ForgeRegistries.FEATURES, phobosdimension.MOD_ID);

    public static void init() {
        ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
        BLOCKS.register(FMLJavaModLoadingContext.get().getModEventBus());
    }
}

 

Deferred registry bundles:

package com.synack.phobosdimension.registry.bundles;

import com.synack.phobosdimension.phobosdimension;
import com.synack.phobosdimension.armor.ArmorTier;
import com.synack.phobosdimension.blocks.BlockItemBase;
import com.synack.phobosdimension.blocks.decoration.FrostBurnBlock;
import com.synack.phobosdimension.blocks.mining.FrostBurnOre;
import com.synack.phobosdimension.tools.ItemTier;
import net.minecraft.block.Block;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.*;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.WorldGenRegistries;
import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraft.world.gen.feature.Feature;
import net.minecraft.world.gen.feature.IFeatureConfig;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class PhobosDimensionBundle {
    public static DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, phobosdimension.MOD_ID);
    public static DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, phobosdimension.MOD_ID);
    public static DeferredRegister<Feature<?>> FEATURES = DeferredRegister.create(ForgeRegistries.FEATURES, phobosdimension.MOD_ID);

    public static void init() {
        ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
        BLOCKS.register(FMLJavaModLoadingContext.get().getModEventBus());
        FEATURES.register(FMLJavaModLoadingContext.get().getModEventBus());
    }

    // BLOCKS
    public static final RegistryObject<Block> FROST_BURN_BLOCK = BLOCKS.register("frost_burn_block", FrostBurnBlock::new);
    public static final RegistryObject<Block> FROST_BURN_ORE = BLOCKS.register("frost_burn_ore", FrostBurnOre::new);

    // BLOCK ITEMS
    public static final RegistryObject<Item> FROST_BURN_BLOCK_ITEM = ITEMS.register("frost_burn_block", () -> new BlockItemBase(FROST_BURN_BLOCK.get()));
    public static final RegistryObject<Item> FROST_BURN_ORE_ITEM = ITEMS.register("frost_burn_ore", () -> new BlockItemBase(FROST_BURN_ORE.get()));

    // FEATURES
    private static <FC extends IFeatureConfig> ConfiguredFeature<FC, ?> register(String key, ConfiguredFeature<FC, ?> configuredFeature) {
        return Registry.register(WorldGenRegistries.CONFIGURED_FEATURE, key, configuredFeature);
    }

    // TOOLS
    public static final RegistryObject<SwordItem> FROST_BURN_SWORD = ITEMS.register("frost_burn_sword", () ->
            new SwordItem(ItemTier.FROST_BURN, 2, -2.4F, new Item.Properties().group(phobosdimension.TAB)));

    public static final RegistryObject<PickaxeItem> FROST_BURN_PICKAXE = ITEMS.register("frost_burn_pickaxe", () ->
            new PickaxeItem(ItemTier.FROST_BURN, 0, -2.8F, new Item.Properties().group(phobosdimension.TAB)));

    public static final RegistryObject<ShovelItem> FROST_BURN_SHOVEL = ITEMS.register("frost_burn_shovel", () ->
            new ShovelItem(ItemTier.FROST_BURN, 0.5F, -3.0F, new Item.Properties().group(phobosdimension.TAB)));

    public static final RegistryObject<AxeItem> FROST_BURN_AXE = ITEMS.register("frost_burn_axe", () ->
            new AxeItem(ItemTier.FROST_BURN, 4F, -3.0F, new Item.Properties().group(phobosdimension.TAB)));

    public static final RegistryObject<HoeItem> FROST_BURN_HOE = ITEMS.register("frost_burn_hoe", () ->
            new HoeItem(ItemTier.FROST_BURN, -4, 0.0F, new Item.Properties().group(phobosdimension.TAB)));

    // ARMOR
    public static final RegistryObject<ArmorItem> FROST_BURN_HELMET = ITEMS.register("frost_burn_helmet", () ->
            new ArmorItem(ArmorTier.FROST_BURN, EquipmentSlotType.HEAD, new Item.Properties().group(phobosdimension.TAB)));

    public static final RegistryObject<ArmorItem> FROST_BURN_CHESTPLATE = ITEMS.register("frost_burn_chestplate", () ->
            new ArmorItem(ArmorTier.FROST_BURN, EquipmentSlotType.CHEST, new Item.Properties().group(phobosdimension.TAB)));

    public static final RegistryObject<ArmorItem> FROST_BURN_LEGGINGS = ITEMS.register("frost_burn_leggings", () ->
            new ArmorItem(ArmorTier.FROST_BURN, EquipmentSlotType.LEGS, new Item.Properties().group(phobosdimension.TAB)));

    public static final RegistryObject<ArmorItem> FROST_BURN_BOOTS = ITEMS.register("frost_burn_boots", () ->
            new ArmorItem(ArmorTier.FROST_BURN, EquipmentSlotType.FEET, new Item.Properties().group(phobosdimension.TAB)));
}

 

Base Block class:

package com.synack.phobosdimension.blocks;

import com.synack.phobosdimension.phobosdimension;
import net.minecraft.block.Block;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;

public class BlockItemBase extends BlockItem {
    public BlockItemBase(Block block) {
        super(block, new Item.Properties().group(phobosdimension.TAB));
    }
}

 

Block Definitions:

Ore block:
 

package com.synack.phobosdimension.blocks.mining;

import net.minecraft.block.*;
import net.minecraft.block.material.Material;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IWorldReader;
import net.minecraftforge.common.ToolType;

public class FrostBurnOre extends OreBlock {
    public FrostBurnOre() {
        super(AbstractBlock.Properties.create(Material.IRON)
                .hardnessAndResistance(3.0f, 4.0f)
                .sound(SoundType.STONE)
                .harvestLevel(2) // 0 = wood, 1 = stone / gold, 2 = iron, 3 = diamond
                .harvestTool(ToolType.PICKAXE));
    }

    @Override
    public int getExpDrop(BlockState state, IWorldReader reader, BlockPos pos, int fortune, int silktouch) {
        return 1;
    }
}

 

Block of frostburn:
 

package com.synack.phobosdimension.blocks.decoration;

import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraftforge.common.ToolType;

public class FrostBurnBlock extends Block {
    public FrostBurnBlock() {
        super(Block.Properties.create(Material.IRON)
                .hardnessAndResistance(5.5f, 6.0f)
                .sound(SoundType.METAL)
                .harvestLevel(1) // 0 = wood, 1 = stone / gold, 2 = iron, 3 = diamond
                .harvestTool(ToolType.PICKAXE)
        );
    }
}

 

Features:
 

package com.synack.phobosdimension.features;

import com.synack.phobosdimension.phobosdimension;
import com.synack.phobosdimension.registry.bundles.PhobosDimensionBundle;
import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraft.world.gen.feature.Feature;
import net.minecraft.world.gen.feature.OreFeatureConfig;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;

@Mod.EventBusSubscriber(modid = phobosdimension.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class PhobosFeatures {
    public static ConfiguredFeature<?, ?> FROST_BURN_ORE_CONFIG;

    @SubscribeEvent
    public void setup(FMLCommonSetupEvent event) {
        FROST_BURN_ORE_CONFIG = Feature.ORE.withConfiguration(
                new OreFeatureConfig(
                        OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD,
                        PhobosDimensionBundle.FROST_BURN_ORE.get().getDefaultState(),
                        9
                )
        ).range(64).square().func_242731_b(20);
    }
}

 

Item definitions:
 

package com.synack.phobosdimension.tools;

import com.synack.phobosdimension.registry.bundles.PhobosDimensionBundle;
import net.minecraft.item.IItemTier;
import net.minecraft.item.crafting.Ingredient;

import java.util.function.Supplier;

public enum ItemTier implements IItemTier {
    FROST_BURN(3, 1828, 8.2F, 4.25F, 11, () -> {
        return Ingredient.fromItems(PhobosDimensionBundle.FROST_BURN_SWORD.get());
    });

    private final int harvestLevel;
    private final int maxUses;
    private final float efficiency;
    private final float attackDamage;
    private final int enchantability;
    private final Supplier<Ingredient> repairMaterial;

    ItemTier(int harvestLevel, int maxUses, float efficiency, float attackDamage, int enchantability, Supplier<Ingredient> repairMaterial) {
        this.harvestLevel = harvestLevel;
        this.maxUses = maxUses;
        this.efficiency = efficiency;
        this.attackDamage = attackDamage;
        this.enchantability = enchantability;
        this.repairMaterial = repairMaterial;
    }

    @Override
    public int getMaxUses() {
        return maxUses;
    }

    @Override
    public float getEfficiency() {
        return efficiency;
    }

    @Override
    public float getAttackDamage() {
        return attackDamage;
    }

    @Override
    public int getHarvestLevel() {
        return harvestLevel;
    }

    @Override
    public int getEnchantability() {
        return enchantability;
    }

    @Override
    public Ingredient getRepairMaterial() {
        return repairMaterial.get();
    }
}

 

Armor definitions:
 

package com.synack.phobosdimension.armor;

import com.synack.phobosdimension.phobosdimension;
import com.synack.phobosdimension.registry.bundles.PhobosDimensionBundle;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.IArmorMaterial;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.SoundEvents;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

import java.util.function.Supplier;

public enum ArmorTier implements IArmorMaterial {
    FROST_BURN(phobosdimension.MOD_ID + ":frost_burn", 37, new int[] { 3, 6, 8, 3 }, 13,
            SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 2.5F, () -> { return Ingredient.fromItems(PhobosDimensionBundle.FROST_BURN_ORE_ITEM.get()); });

    private static final int[] MAX_DAMAGE_ARRAY = new int[] { 11, 14, 15, 13 };
    private final String name;
    private final int maxDamageFactor;
    private final int[] damageReduction;
    private final int enchantability;
    private final SoundEvent soundEvent;
    private final float toughness;
    private final Supplier<Ingredient> repairMaterial;

    ArmorTier(String name, int maxDamageFactor, int[] damageReduction, int enchantability, SoundEvent soundEvent, float toughness, Supplier<Ingredient> repairMaterial) {
        this.name = name;
        this.maxDamageFactor = maxDamageFactor;
        this.damageReduction = damageReduction;
        this.enchantability = enchantability;
        this.soundEvent = soundEvent;
        this.toughness = toughness;
        this.repairMaterial = repairMaterial;
    }

    @Override
    public int getDurability(EquipmentSlotType slotIn) {
        return MAX_DAMAGE_ARRAY[slotIn.getIndex()] * this.maxDamageFactor;
    }

    @Override
    public int getDamageReductionAmount(EquipmentSlotType slotIn) {
        return this.damageReduction[slotIn.getIndex()];
    }

    @Override
    public int getEnchantability() {
        return this.enchantability;
    }

    @Override
    public SoundEvent getSoundEvent() {
        return this.soundEvent;
    }

    @Override
    public Ingredient getRepairMaterial() {
        return this.repairMaterial.get();
    }

    @OnlyIn(Dist.CLIENT)
    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public float getToughness() {
        return this.toughness;
    }

    @Override
    public float getKnockbackResistance() {
        return 0;
    }

    // @Override
    //public float func_230304_f_() {
    //    return 0;
    //}
}

 

Edited by SynAck
Added code in script tags
Link to comment
Share on other sites

I apologize, I was unaware that adding attachments was not helpful.  In my mind the structure and layout of the code is important too, so I was TRYING to make it as easy as possible for both myself and those who would look at it.  Also on many forums any modification editing or otherwise shows a post as unread.. I was not aware that was not the case here, so by your statement I am assuming that replies are only what flag a post as unread.  If that is not the case please let me know.  

Moving on..
 

Is there a better way or example of how I should register an event handler for feature or any other event handler for that matter?

 

 

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • my game crashed and I have no idea why here is a link to the pastebin of the crash https://pastebin.com/vv89r9vC
    • I know duplicated mods are causing the crashes but i just dunno what mod(s) are duplicated   [14:54:36] [main/INFO]: ModLauncher running: args [--username, DiscoloredScars, --version, forge-40.2.0, --gameDir, E:\curseforge minecraft\Instances\MT6 (1), --assetsDir, E:\curseforge minecraft\Install\assets, --assetIndex, 1.18, --uuid, 66ccf15a7ca24a8386d37f6d3bfef878, --accessToken, ????????, --clientId, MjEwMWVmMTYtODVjYS00OTcwLWFmZTktOTZiNTAyYmM2YTQ3, --xuid, 2535421420761636, --userType, msa, --versionType, release, --width, 1024, --height, 768, --launchTarget, forgeclient, --fml.forgeVersion, 40.2.0, --fml.mcVersion, 1.18.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220404.173914] [14:54:36] [main/INFO]: ModLauncher 9.1.3+9.1.3+main.9b69c82a starting: java version 17.0.1 by Microsoft [14:54:36] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/E:/curseforge%20minecraft/Install/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2314!/ Service=ModLauncher Env=CLIENT [14:54:36] [main/INFO]: Found mod file [1.18.2-forge]-Epic-Knights-8.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file AdvancementPlaques-1.18.2-1.4.5.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Apotheosis-1.18.2-5.8.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file architectury-4.11.93-forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ars_nouveau-1.18.2-2.9.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file AutoLeveling-1.18.2-1.17.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file betterstats-2.2.2+1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file blockui-1.18.2-0.0.71-ALPHA.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Bookshelf-Forge-1.18.2-13.3.56.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file BrassAmberBattleTowers-1.18.2-2.3.12.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file bygonenether-1.3.0-1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file caelus-forge-1.18.1-3.0.0.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file cloth-config-6.5.102-forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Clumps-forge-1.18.2-8.0.0+17.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file collection-of-singiro-1.19.x-1.1.4.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file collective-1.18.2-6.65.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ConfigMenusForge-v3.2.0-1.18.2-Forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file CreativeCore_FORGE_v2.6.17_mc1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file curioofundying-forge-1.18-5.3.0.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file curios-forge-1.18.2-5.0.9.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file curiouselytra-forge-1.18.1-5.0.1.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file domum_ornamentum-1.18.2-1.0.50-ALPHA-universal.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file dungeons_enhanced-1.18.2-3.2.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file dungeons_gear-1.18.2-4.0.2-beta.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file dungeons_libraries-1.18.2-2.0.5-beta.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file dungeons_plus-1.18.2-1.2.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file embeddium-0.3.18+mc1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file EnchantmentDescriptions-Forge-1.18.2-10.0.12.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file EndlessBiomes 1.3s - 1.18.2 (Server-friendly).jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file FarmersDelight-1.18.2-1.2.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file FarmersRespite-1.18.2-1.3.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file framework-forge-1.18.2-0.4.3.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-chunks-forge-1802.3.17-build.265.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-essentials-1802.2.2-build.83.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-library-forge-1802.3.11-build.177.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-quests-forge-1802.3.14-build.191.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-teams-forge-1802.2.11-build.107.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-ultimine-forge-1802.3.3-build.70.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file geckolib-forge-1.18-3.0.57.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Goblins_Dungeons_1.0.8.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file goblintraders-1.8.0-1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ironchest-1.18.2-13.2.11.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ironfurnaces-1.18.2-3.3.3.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Jade-1.18.2-forge-5.3.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file jei-1.18.2-9.7.2.1001.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file LegendaryTooltips-1.18.2-1.3.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file mahoutsukai-1.18.2-v1.34.62.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file minecolonies-1.18.2-1.1.29-BETA.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file miners_delight-1.18.2-1.1.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file modestmining-1.18.2-0.1.41.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file modnametooltip-1.18.1-1.18.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file morevillagers-forge-1.18.2-3.3.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file MouseTweaks-forge-mc1.18-2.21.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file mowziesmobs-1.5.32.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file multi-piston-1.18.2-1.2.15-ALPHA.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file MutantMonsters-v3.0.1-1.18.2-Forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file oculus-mc1.18.2-1.6.4.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Oh_The_Biomes_You'll_Go-forge-1.18.2-1.4.7.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Origins-1.18.2-1.4.1.4-unified.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file pamhc2crops-1.18.2-1.0.6.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file pamhc2foodcore-1.18.2-1.0.3.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file pamhc2foodextended-1.18.2-1.0.5.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file pamhc2trees-1.18.2-1.0.4.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Patchouli-1.18.2-71.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Pehkui-3.7.7+1.18.2-forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Placebo-1.18.2-6.6.7.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file PuzzlesLib-v3.4.6-1.18.2-Forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Quark-3.2-358.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file reforgium-1.18.2-1.0.12a.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file rpggods-18.2.6.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file rubidium-0.5.6.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file rubidium_extras-1.18.2_v1.3.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file selene-1.18.2-1.17.9.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file sereneseasonfix-1.18.2-1.0.6.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file SereneSeasons-1.18.2-7.0.0.15.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file sons-of-sins-1.18.2-1.1.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file sophisticatedbackpacks-1.18.2-3.19.4.976.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file sophisticatedcore-1.18.2-0.5.109.515.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file spark-1.10.38-forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file structure_gel-1.18.2-2.4.7.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file structurize-1.18.2-1.0.424-ALPHA.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file supplementaries-1.18.2-1.5.18.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file TerraBlender-forge-1.18.2-1.2.0.126.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file TradingPost-v3.2.0-1.18.2-Forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file TravelersTitles-1.18.2-Forge-2.1.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file upgrade_aquatic-1.18.2-4.0.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file upgradedcore-1.18.2-3.3.0.0-release.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file upgradednetherite-1.18.2-4.3.0.1-release.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file upgradednetherite_items-1.18.2-3.3.0.0-release.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file upgradednetherite_ultimate-1.18.2-3.3.0.0-release.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file valhelsia_core-forge-1.18.2-0.4.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file villagernames-1.18.2-5.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file villagespawnpoint-1.18.2-4.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file waystones-forge-1.18.2-10.2.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file weaponmaster-1.2.1-1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsApi-1.18.2-Forge-2.2.9.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterDungeons-1.18.2-Forge-2.1.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterMineshafts-1.18.2-Forge-2.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterNetherFortresses-1.18.2-Forge-1.0.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterOceanMonuments-1.18.2-Forge-1.0.3.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterStrongholds-1.18.2-Forge-2.1.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterWitchHuts-1.18.2-Forge-1.0.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBridges-1.18.2-Forge-2.1.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsExtras-1.18.2-Forge-2.1.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:37] [main/WARN]: Mod file E:\curseforge minecraft\Install\libraries\net\minecraftforge\fmlcore\1.18.2-40.2.0\fmlcore-1.18.2-40.2.0.jar is missing mods.toml file [14:54:37] [main/WARN]: Mod file E:\curseforge minecraft\Install\libraries\net\minecraftforge\javafmllanguage\1.18.2-40.2.0\javafmllanguage-1.18.2-40.2.0.jar is missing mods.toml file [14:54:37] [main/WARN]: Mod file E:\curseforge minecraft\Install\libraries\net\minecraftforge\lowcodelanguage\1.18.2-40.2.0\lowcodelanguage-1.18.2-40.2.0.jar is missing mods.toml file [14:54:37] [main/WARN]: Mod file E:\curseforge minecraft\Install\libraries\net\minecraftforge\mclanguage\1.18.2-40.2.0\mclanguage-1.18.2-40.2.0.jar is missing mods.toml file [14:54:37] [main/INFO]: Found mod file fmlcore-1.18.2-40.2.0.jar of type LIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/INFO]: Found mod file javafmllanguage-1.18.2-40.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/INFO]: Found mod file lowcodelanguage-1.18.2-40.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/INFO]: Found mod file mclanguage-1.18.2-40.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/INFO]: Found mod file client-1.18.2-20220404.173914-srg.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/INFO]: Found mod file forge-1.18.2-40.2.0-universal.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/ERROR]: Failed to build unique mod list after mod discovery. net.minecraftforge.fml.loading.EarlyLoadingException: Duplicate mods found     at net.minecraftforge.fml.loading.UniqueModListBuilder.buildUniqueList(UniqueModListBuilder.java:78) ~[fmlloader-1.18.2-40.2.0.jar%2317!/:1.0]     at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:76) ~[fmlloader-1.18.2-40.2.0.jar%2317!/:?]     at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:166) ~[fmlloader-1.18.2-40.2.0.jar%2317!/:1.0]     at net.minecraftforge.fml.loading.FMLServiceProvider.beginScanning(FMLServiceProvider.java:86) ~[fmlloader-1.18.2-40.2.0.jar%2317!/:1.0]     at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:112) ~[modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:100) ~[modlauncher-9.1.3.jar%235!/:?]     at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) [?:?]     at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779) [?:?]     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) [?:?]     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) [?:?]     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) [?:?]     at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) [?:?]     at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) [?:?]     at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) [?:?]     at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) [?:?]     at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:102) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:55) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:87) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?] [14:54:37] [main/ERROR]: Mod Discovery failed. Skipping dependency discovery.  
    • ok apparently the issue is even stupider than that. the folder the server was in was called "𝓯𝓻𝓮𝓪𝓴𝔂 server" and apparently the special characters in the folder name break the whole damn thing. this is the stupidest thing in the history of ever
    • Thanks, but now I have the 3d model in hand (and in inventory bcz I won't need that anymore) but now when I try to throw it, it doesnt rotate and its just the end of the trident not the head part. Edit: I removed the 3d custom model. I use the original minecraft files. Json and etc. In minecraft the rendering is made in code. I sent the code in the first message. I have mostly the code. But I don't know how to register the renderers like minecraft do. For example, in minecraft there are 2 jsons: trident_in_hand and trident_throwing , I have both of them. They don't render while I have the item in hand. That's the main problem. I checked the code but I still can't figure out how to register and render the entity basically, in hand
  • Topics

×
×
  • Create New...

Important Information

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