Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Idfk_man

Members
  • Joined

  • Last visited

  1. I have a mod that is not executing receive packet events when I run @Cancelable public class ReceivePacketEvent extends Event { public Packet<?> packet; public ReceivePacketEvent(Packet<?> packet) { System.out.println("PKT"); this.packet = packet; } } Nothing will happen. Other events will work like on render or tick event but packet wont work. for reference I'm using this mod in a server I get an error seemingly randomly that looks like this and im not sure where it comes from or if it affects the packet event so id say im lost some help would be appreciated thankyou! Quote [01:22:45] [main/FATAL] (Minecraft) Error executing task java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at net.minecraft.util.Util.runTask(Util.java:43) [Util.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:987) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:443) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:111) [Main.class:?] 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.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) Caused by: java.lang.NullPointerException at net.minecraft.scoreboard.Scoreboard.removeTeam(Scoreboard.java:240) ~[Scoreboard.class:?] at net.minecraft.client.network.NetHandlerPlayClient.handleTeams(NetHandlerPlayClient.java:1452) ~[NetHandlerPlayClient.class:?] at net.minecraft.network.play.server.S3EPacketTeams.processPacket(S3EPacketTeams.java:114) ~[S3EPacketTeams.class:?] at net.minecraft.network.play.server.S3EPacketTeams.processPacket(S3EPacketTeams.java:36) ~[S3EPacketTeams.class:?] at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:24) ~[PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~ at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~ at net.minecraft.util.Util.runTask(Util.java:42) ~[Util.class:?] ... 10 more
  2. I have a mod that is not executing receive packet events when I run @SubscribeEvent public void receivePacket(ReceivePacketEvent event) { Nothing will happen. Other events will work like on render or tick event but packet wont work. for reference I'm using this mod in a server I get an error seemingly randomly that looks like this and im not sure where it comes from or if it affects the packet event so id say im lost some help would be appreciated thankyou!
  3. Im trying to be able to log into a Minecraft server while in my eclipse ide so I don't have to compile and run start Minecraft every time I want to test something and I found some code online but It says I have to edit mincraft.java and I am not sure where and how to access this file. How could I edit Mincraft.java? * In Minecraft.java replace these two lines: * * this.sessionService = (new YggdrasilAuthenticationService(gameConfig.userInfo.proxy, clientToken)).createMinecraftSessionService(); * this.session = gameConfig.userInfo.session; * * With this: * * MinecraftLogin login = new MinecraftLogin("[email protected]", "password123"); * this.sessionService = login.getSessionService(); * this.session = login.getSession(); here is the GitHub link for full code I am trying to use https://gist.github.com/Nicbo/2db069356d99250a4abd06ce20d7ca73
  4. Im working on a mod and testing it in eclipse runs fine but when I want to turn it into a jar file by running gradlew build I get the Error error: lambda expressions are not supported in -source 1.6 McR.ex(McR.ex(enderman),3,() -> {}); ^ (use -source 8 or higher to enable lambda expressions) Im using Gradle 2.7 java version "1.8.0_351" javac 1.8.0_351 All of my Path and JAVA_HOME environment variable are correct (set to 1.8) and Im not sure what else to check. In eclipse I did have to say Change project compliance and JRE to 1.8 as this popped up on the lambda error.
  5. Tysm I did this and also addad a MinecraftForge.EVENT_BUS.register(new _________) forgot that was needed
  6. When I call TickEvent.ClientTickEvent in my Main.java it does nothing but when I call it in other files like utils.MM it works fine @SubscribeEvent public void onTick(TickEvent.ClientTickEvent event) { System.out.println("tick"); } Im new to moding so this is prolly a dumb question
  7. Video of my error I'm just starting modding and don't know what went wrong here. Pretty sure this is because something is wrong with my env variables but idk Would appreciate some help thanks link to vid above

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.