Posted July 1, 20196 yr Hello second time! Today I wanted to add some blocks in my mod but when I'm trying to test it gives me this error: https://imgur.com/a/efW9Zvg My code: https://github.com/RegeleEdge/mod1143
July 1, 20196 yr Find and post the log file too. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 1, 20196 yr Author [01Jul2019 14:25:01.708] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20190624.152911, --fml.mcVersion, 1.14.3, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 27.0.15, --version, MOD_DEV, --assetIndex, 1.14, --assetsDir, C:\Users\Mardari Loredana\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}] [01Jul2019 14:25:01.719] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher starting: java version 1.8.0_211 by Oracle Corporation [01Jul2019 14:25:02.876] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [01Jul2019 14:25:04.477] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Mardari Loredana\.gradle\caches\forge_gradle\assets, --assetIndex, 1.14, --username, Dev, --accessToken, ????????, --userProperties, {}] [01Jul2019 14:25:15.464] [Client thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev [01Jul2019 14:25:18.119] [Client thread/INFO] [net.minecraftforge.fml.ModLoader/CORE]: Loading Network data for FML net version: FML2 [01Jul2019 14:25:46.704] [Client thread/WARN] [net.minecraft.client.GameSettings/]: Skipping bad option: lastServer: [01Jul2019 14:25:46.841] [Client thread/INFO] [net.minecraft.client.Minecraft/]: LWJGL Version: 3.2.2 build 10 [01Jul2019 14:25:57.003] [modloading-worker-2/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 27.0.15, for MC 1.14.3 with MCP 20190624.152911 [01Jul2019 14:25:57.004] [modloading-worker-2/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v27.0.15 Initialized [01Jul2019 14:25:58.444] [Client thread/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/]: Exception caught during firing event: null Index: 1 Listeners: 0: NORMAL 1: ASM: class com.github.RegeleEdge.mod1143.ExtraDefence$RegistryEvents registerItems(Lnet/minecraftforge/event/RegistryEvent$Register;)V java.lang.NullPointerException at com.github.RegeleEdge.mod1143.ExtraDefence$RegistryEvents.registerItems(ExtraDefence.java:63) at net.minecraftforge.eventbus.ASMEventHandler_0_RegistryEvents_registerItems_Register.invoke(.dynamic) at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) at net.minecraftforge.fml.javafmlmod.FMLModContainer.fireEvent(FMLModContainer.java:106) at java.util.function.Consumer.lambda$andThen$0(Consumer.java:65) at java.util.function.Consumer.lambda$andThen$0(Consumer.java:65) at net.minecraftforge.fml.ModContainer.transitionState(ModContainer.java:112) at net.minecraftforge.fml.ModList.lambda$dispatchSynchronousEvent$4(ModList.java:113) at java.util.ArrayList.forEach(ArrayList.java:1257) at net.minecraftforge.fml.ModList.dispatchSynchronousEvent(ModList.java:113) at net.minecraftforge.fml.ModList.lambda$static$0(ModList.java:84) at net.minecraftforge.fml.LifecycleEventProvider.dispatch(LifecycleEventProvider.java:71) at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:173) at net.minecraftforge.fml.ModLoader.lambda$gatherAndInitializeMods$21(ModLoader.java:165) at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:918) at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:165) at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:83) at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:68) at net.minecraft.client.Minecraft.init(Minecraft.java:457) at net.minecraft.client.Minecraft.run(Minecraft.java:365) at net.minecraft.client.main.Main.main(Main.java:127) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:68) at cpw.mods.modlauncher.Launcher.run(Launcher.java:77) at cpw.mods.modlauncher.Launcher.main(Launcher.java:62) at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:101) [01Jul2019 14:25:58.486] [Client thread/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Caught exception during event RegistryEvent.Register<minecraft:item> dispatch for modid extradefence java.lang.NullPointerException: null at com.github.RegeleEdge.mod1143.ExtraDefence$RegistryEvents.registerItems(ExtraDefence.java:63) ~[main/:?] at net.minecraftforge.eventbus.ASMEventHandler_0_RegistryEvents_registerItems_Register.invoke(.dynamic) ~[?:?] at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-0.10.1-service.jar:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-0.10.1-service.jar:?] at net.minecraftforge.fml.javafmlmod.FMLModContainer.fireEvent(FMLModContainer.java:106) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:27.0] at java.util.function.Consumer.lambda$andThen$0(Consumer.java:65) ~[?:1.8.0_211] at java.util.function.Consumer.lambda$andThen$0(Consumer.java:65) ~[?:1.8.0_211] at net.minecraftforge.fml.ModContainer.transitionState(ModContainer.java:112) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraftforge.fml.ModList.lambda$dispatchSynchronousEvent$4(ModList.java:113) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_211] at net.minecraftforge.fml.ModList.dispatchSynchronousEvent(ModList.java:113) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraftforge.fml.ModList.lambda$static$0(ModList.java:84) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraftforge.fml.LifecycleEventProvider.dispatch(LifecycleEventProvider.java:71) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:173) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraftforge.fml.ModLoader.lambda$gatherAndInitializeMods$21(ModLoader.java:165) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:918) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:165) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:83) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:68) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraft.client.Minecraft.init(Minecraft.java:457) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraft.client.Minecraft.run(Minecraft.java:365) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraft.client.main.Main.main(Main.java:127) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211] at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-2.1.4.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-2.1.4.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:68) [modlauncher-2.1.4.jar:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:77) [modlauncher-2.1.4.jar:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:62) [modlauncher-2.1.4.jar:?] at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:101) [forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] [01Jul2019 14:25:58.622] [Client thread/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event LOAD_REGISTRIES, 1 errors found [01Jul2019 14:25:58.623] [Client thread/FATAL] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted. java.lang.Exception: stacktrace at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:278) ~[eventbus-0.10.1-service.jar:?] at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:85) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:68) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraft.client.Minecraft.init(Minecraft.java:457) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraft.client.Minecraft.run(Minecraft.java:365) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at net.minecraft.client.main.Main.main(Main.java:127) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211] at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-2.1.4.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-2.1.4.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:68) [modlauncher-2.1.4.jar:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:77) [modlauncher-2.1.4.jar:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:62) [modlauncher-2.1.4.jar:?] at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:101) [forge-1.14.3-27.0.15_mapped_snapshot_20190621-1.14.2-recomp.jar:?] [01Jul2019 14:26:07.156] [Client thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded [01Jul2019 14:26:08.575] [Server-Worker-2/ERROR] [net.minecraftforge.fml.ModLoader/LOADING]: Skipping lifecycle event SETUP, 1 errors found. [01Jul2019 14:26:08.576] [Server-Worker-2/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event SETUP, 1 errors found [01Jul2019 14:26:08.576] [Server-Worker-2/FATAL] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted. java.lang.Exception: stacktrace at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:278) ~[eventbus-0.10.1-service.jar:?] at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:85) ~[?:?] at net.minecraftforge.fml.client.ClientModLoader.startModLoading(ClientModLoader.java:93) ~[?:?] at net.minecraftforge.fml.client.ClientModLoader.lambda$onreload$2(ClientModLoader.java:75) ~[?:?] at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:83) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626) [?:1.8.0_211] at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1618) [?:1.8.0_211] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_211] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_211] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_211] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_211] [01Jul2019 14:26:08.582] [Thread-1/FATAL] [net.minecraftforge.common.ForgeConfig/CORE]: Forge config just got changed on the file system! [01Jul2019 14:26:19.854] [Server-Worker-1/ERROR] [net.minecraftforge.fml.ModLoader/LOADING]: Skipping lifecycle event ENQUEUE_IMC, 1 errors found. [01Jul2019 14:26:19.855] [Server-Worker-1/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event ENQUEUE_IMC, 1 errors found [01Jul2019 14:26:19.855] [Server-Worker-1/FATAL] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted. java.lang.Exception: stacktrace at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:278) ~[eventbus-0.10.1-service.jar:?] at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:85) ~[?:?] at net.minecraftforge.fml.client.ClientModLoader.finishModLoading(ClientModLoader.java:106) ~[?:?] at net.minecraftforge.fml.client.ClientModLoader.lambda$onreload$3(ClientModLoader.java:77) ~[?:?] at java.util.concurrent.CompletableFuture.uniRun(CompletableFuture.java:705) [?:1.8.0_211] at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:687) [?:1.8.0_211] at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443) [?:1.8.0_211] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_211] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_211] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_211] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_211] [01Jul2019 14:26:19.872] [Client thread/WARN] [net.minecraft.client.GameSettings/]: Skipping bad option: lastServer: [01Jul2019 14:26:20.812] [Client thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized. [01Jul2019 14:26:20.814] [Client thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started [01Jul2019 14:26:21.243] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512 textures-atlas [01Jul2019 14:26:23.347] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256 textures/particle-atlas [01Jul2019 14:26:23.350] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256 textures/painting-atlas [01Jul2019 14:26:23.351] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128 textures/mob_effect-atlas [01Jul2019 14:27:42.641] [Client thread/INFO] [net.minecraft.client.Minecraft/]: Stopping!
July 1, 20196 yr 1 hour ago, regele said: java.lang.NullPointerException at com.github.RegeleEdge.mod1143.ExtraDefence$RegistryEvents.registerItems(ExtraDefence.java:63) 1 hour ago, regele said: java.lang.NullPointerException: null at com.github.RegeleEdge.mod1143.ExtraDefence$RegistryEvents.registerItems(ExtraDefence.java:63) ~[main/:?] https://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-do-i-fix-it Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 1, 20196 yr Author huge thanks man! now I have 1 more question and I'm done for now how can I put a harvest level on a block? (sorry but I'm new and dumb too)
July 1, 20196 yr 21 minutes ago, regele said: huge thanks man! now I have 1 more question and I'm done for now how can I put a harvest level on a block? (sorry but I'm new and dumb too) If you mean specifying the level of tool needed to break it, that's in the Block.Properties class. Take a look at the Materials (might be just Material) class to help. I'm not at my computer right now, but I'm pretty sure all that's correct.
July 1, 20196 yr Yeah, Block.Properties. Take a look at existing usage. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.