Jump to content

example mod crashes with Null Pointer when joining a world GradleStart.main(GradleStart.java:26) [start/:?] [1.16.5]


Dawjaw

Recommended Posts

No matter what version of forge I try, the example mod always crashes when I join the world.

1.16.5 log: https://pastebin.com/rVQGWGzf

Log 2 (diff version): https://pastebin.com/D7Lsg1Tp

 

I tired: cleaning gradle chache, deleting the contents of .gradle in users, using different mdk versions, using different java binaries

I would appreciate it if anyone could help me out here.

Edited by Dawjaw
Link to comment
Share on other sites

26 minutes ago, diesieben07 said:

That shows you connecting to Hypixel, hypixel sending a bunch of invalid scoreboard packets which cause errors and then the game shutting down.

Ok i wasnt sure if that was related since its the first time that i've seen happen.

I have a PlayerInteractEvent and a BreakEvent that for some reason only works on singleplayer worlds and not in multiplayer ones.

    @SubscribeEvent
    public void onPlayerEvent(PlayerInteractEvent event) {
        Minecraft mc =  Minecraft.getInstance();
        ITextComponent m = new TranslationTextComponent("test");
        mc.player.sendMessage(m, mc.player.getUUID());
    }

    @SubscribeEvent
    public void onBreakEvent(BlockEvent.BreakEvent event) {
        Minecraft mc =  Minecraft.getInstance();
        mc.player.sendMessage(new TranslationTextComponent(event.getState().toString()), mc.player.getUUID());
    }

(the Listener is also registered)

    public ExampleMod() {
        // Register the setup method for modloading
        FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
        // Register the enqueueIMC method for modloading
        FMLJavaModLoadingContext.get().getModEventBus().addListener(this::enqueueIMC);
        // Register the processIMC method for modloading
        FMLJavaModLoadingContext.get().getModEventBus().addListener(this::processIMC);
        // Register the doClientStuff method for modloading
        FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff);

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

I have no clue why that would not work, considering that there are a ton of mods for hypixel that do the same

Edited by Dawjaw
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.

Announcements



×
×
  • Create New...

Important Information

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