Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » I am modding a minecraft mod 1.16.5
I am modding a minecraft mod 1.16.5 [message #1843711] Sun, 15 August 2021 06:32
XX Sun is currently offline XX SunFriend
Messages: 1
Registered: August 2021
Junior Member
package com.SAO.SAOMod;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

@Mod("SAOMod")
public class SAOMod {
public static final Logger LOGGER = LogManager.getLogger();
public static final String Mod_ID = "SAOMod";
public SAOMod() {
IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus();
MinecraftForge.EVENT_BUS.register(this);
}
here is my code when I try to run it, it open the minecraft success ,but the window of minecraft soon close and show me a warning message:
Exception in thread "main" [14:05:46] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1069]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
Can someone help me please! thx
  • Attachment: SAOMod.java
    (Size: 0.58KB, Downloaded 37 times)
Previous Topic:How can fix error from Eclipse WindowBuilder?
Next Topic:Part of Eclipse package
Goto Forum:
  


Current Time: Fri Jan 28 23:19:43 GMT 2022

Powered by FUDForum. Page generated in 0.03489 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top