Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MAIN CLASS:
- package com.vicken.mod3;
- import com.google.common.eventbus.Subscribe;
- import com.vicken.mod3.items.ItemBase;
- import com.vicken.mod3.util.RegistryHandler;
- import net.minecraft.block.Block;
- import net.minecraft.block.Blocks;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemGroup;
- import net.minecraft.item.ItemStack;
- import net.minecraftforge.common.MinecraftForge;
- import net.minecraftforge.event.RegistryEvent;
- import net.minecraftforge.eventbus.api.SubscribeEvent;
- import net.minecraftforge.fml.InterModComms;
- 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.lifecycle.InterModEnqueueEvent;
- import net.minecraftforge.fml.event.lifecycle.InterModProcessEvent;
- 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;
- import java.util.stream.Collectors;
- // The value here should match an entry in the META-INF/mods.toml file
- @Mod("my_mod")
- public class my_mod {
- // Directly reference a log4j logger.
- private static final Logger LOGGER = LogManager.getLogger();
- public static final String Mod_ID = "my_mod";
- public static String my_mod;
- public my_mod() {
- FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
- FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff);
- RegistryHandler.init();
- // Register ourselves for server and other game events we are interested in
- MinecraftForge.EVENT_BUS.register(this);
- }
- private void setup(final FMLCommonSetupEvent event) { }
- private void doClientStuff(final FMLClientSetupEvent event) { }
- }
- LATEST.LOG:
- [02Jan2021 16:33:35.913] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20200515.085601, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 31.2.0, --version, MOD_DEV, --assetIndex, 1.15, --assetsDir, C:\Users\vicke\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}]
- [02Jan2021 16:33:35.917] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 5.1.2+70+master.2845bb9 starting: java version 14.0.1 by Oracle Corporation
- [02Jan2021 16:33:36.145] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
- [02Jan2021 16:33:37.288] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release
- [02Jan2021 16:33:38.189] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\vicke\.gradle\caches\forge_gradle\assets, --assetIndex, 1.15, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}]
- [02Jan2021 16:33:40.629] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
- [02Jan2021 16:33:48.261] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.2.2 build 10
- [02Jan2021 16:33:49.245] [modloading-worker-9/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 31.2.0, for MC 1.15.2 with MCP 20200515.085601
- [02Jan2021 16:33:49.245] [modloading-worker-9/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v31.2.0 Initialized
- [02Jan2021 16:33:49.266] [modloading-worker-2/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: my_mod, class com.vicken.mod3.my_mod
- java.lang.ExceptionInInitializerError: null
- at com.vicken.mod3.my_mod.<init>(my_mod.java:42) ~[?:?]
- at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
- at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
- at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
- at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
- at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:124) ~[?:?]
- at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:346) ~[?:?]
- at java.lang.Class.newInstance(Class.java:604) ~[?:?]
- at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:131) ~[?:?]
- 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$dispatchParallelEvent$10(ModList.java:135) ~[?:?]
- at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) [?:?]
- at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1624) [?:?]
- at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [?:?]
- at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290) [?:?]
- at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746) [?:?]
- at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
- at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) [?:?]
- at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) [?:?]
- at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) [?:?]
- at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177) [?:?]
- Caused by: net.minecraft.util.ResourceLocationException: Non [a-z0-9/._-] character in path of location: my_mod:Ruby
- at net.minecraft.util.ResourceLocation.<init>(ResourceLocation.java:30) ~[?:?]
- at net.minecraft.util.ResourceLocation.<init>(ResourceLocation.java:39) ~[?:?]
- at net.minecraftforge.registries.DeferredRegister.register(DeferredRegister.java:82) ~[?:?]
- at com.vicken.mod3.util.RegistryHandler.<clinit>(RegistryHandler.java:32) ~[?:?]
- ... 23 more
- [02Jan2021 16:33:49.430] [Render thread/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event CONSTRUCT, 1 errors found
- [02Jan2021 16:33:49.431] [Render 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-2.2.0-service.jar:?]
- at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:115) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?]
- at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:97) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?]
- at net.minecraft.client.Minecraft.<init>(Minecraft.java:397) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?]
- at net.minecraft.client.main.Main.main(Main.java:141) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?]
- at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
- at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
- at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
- at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
- at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?]
- at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.1.2.jar:?]
- at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.1.2.jar:?]
- at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.1.2.jar:?]
- at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.1.2.jar:?]
- at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.1.2.jar:?]
- at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:102) [forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?]
- [02Jan2021 16:33:52.451] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
- [02Jan2021 16:33:52.619] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, Mod Resources
- [02Jan2021 16:33:52.653] [Server-Worker-1/ERROR] [net.minecraftforge.fml.ModLoader/LOADING]: Skipping lifecycle event SETUP, 1 errors found.
- [02Jan2021 16:33:52.653] [Server-Worker-1/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event SETUP, 1 errors found
- [02Jan2021 16:33:52.653] [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-2.2.0-service.jar:?]
- at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:115) ~[?:?]
- at net.minecraftforge.fml.client.ClientModLoader.startModLoading(ClientModLoader.java:123) ~[?:?]
- at net.minecraftforge.fml.client.ClientModLoader.lambda$onreload$3(ClientModLoader.java:105) ~[?:?]
- at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:113) ~[?:?]
- at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1800) [?:?]
- at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1792) [?:?]
- at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
- at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) [?:?]
- at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) [?:?]
- at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) [?:?]
- at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177) [?:?]
- [02Jan2021 16:33:56.440] [Server-Worker-2/ERROR] [net.minecraftforge.fml.ModLoader/LOADING]: Skipping lifecycle event ENQUEUE_IMC, 1 errors found.
- [02Jan2021 16:33:56.440] [Server-Worker-2/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event ENQUEUE_IMC, 1 errors found
- [02Jan2021 16:33:56.440] [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-2.2.0-service.jar:?]
- at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:115) ~[?:?]
- at net.minecraftforge.fml.client.ClientModLoader.finishModLoading(ClientModLoader.java:137) ~[?:?]
- at net.minecraftforge.fml.client.ClientModLoader.lambda$onreload$4(ClientModLoader.java:107) ~[?:?]
- at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783) [?:?]
- at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479) [?:?]
- at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
- at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) [?:?]
- at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) [?:?]
- at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) [?:?]
- at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177) [?:?]
- [02Jan2021 16:33:56.727] [Render thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized.
- [02Jan2021 16:33:56.728] [Render thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started
- [02Jan2021 16:33:56.880] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
- [02Jan2021 16:33:56.963] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128x4 minecraft:textures/atlas/signs.png-atlas
- [02Jan2021 16:33:56.963] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
- [02Jan2021 16:33:56.967] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
- [02Jan2021 16:33:56.986] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
- [02Jan2021 16:33:56.987] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
- [02Jan2021 16:33:56.998] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
- [02Jan2021 16:33:57.642] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
- [02Jan2021 16:33:57.655] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
- [02Jan2021 16:33:57.657] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas
Advertisement
Add Comment
Please, Sign In to add comment