Idfk_man
Members-
Posts
7 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Idfk_man's Achievements
Tree Puncher (2/8)
0
Reputation
-
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
-
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!
-
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
-
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.
-
Tysm I did this and also addad a MinecraftForge.EVENT_BUS.register(new _________) forgot that was needed