Jump to content

WhiteBear60

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by WhiteBear60

  1. Good afternoon.

    I'm trying to write the functionality that I described in the title - for example, when the player logs in, he should automatically greet everyone with /say Hello. I have wrote the following:

     

    @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.FORGE,value = Dist.CLIENT,modid = "examplemod")
        public static class PlayerEvents {
            @SubscribeEvent
            public static void onPlayerLoggedIn(PlayerEvent.PlayerLoggedInEvent event) {
                Minecraft.getInstance().player.chat("/say Test message");
            }
    }

    but when I trying to load a world, it kicks me with an error that Minecraft.getInstance().player is null. What I'm doing wrong?

  2. The forge installer crashes when I'm trying to start it with doubleclick or via command in terminal: 

    open forge-1.16.5-36.0.22-installer.jar

     

    Here is logs:

     

    "Problem Details and System Configuration" log that is shown by OSX after crash: https://pastebin.com/dsiV06Zn

    Forge installer log is attached.

     

    System:

    MacBook Pro 2011

    CPU: 2,4 GHz Intel Core i5

    RAM: 16GB 1600 MHz DDR3

    GPU: Intel HD Graphics 3000 512 MB

    OSX 10.10 Yosemite

    forge-1.16.5-36.0.22-installer.jar.log

×
×
  • Create New...

Important Information

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