-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
In ClickTickEvent i dont know how to get the player public static void handle(InputMessage message, Supplier<NetworkEvent.Context> contextSupplier) { NetworkEvent.Context context = contextSupplier.get(); ServerPlayerEntity player = context.getSender(); ItemStack gauntlet = player.getMainHandItem(); if(gauntlet.getItem() instanceof InfinityGauntlet) { INamedContainerProvider ncp = new InfinityGauntlet.InfinityGauntletContainerProvider((InfinityGauntlet) gauntlet.getItem(), gauntlet); NetworkHooks.openGui(player, ncp); context.setPacketHandled(false); } } You were right I check the item on the server and this code works Thanks
-
KeyBindings are client side only, you need to use TickEvent.ClientTickEvent instead why did you call KeyBinding#consumeClick, you should only check KeyBinding#isDown? last but not least i would recommend you to check the Item also on server side (in the handle method of the Message), since you should never trust the client
-
By diesieben07 · Posted
You should use 1.16.5 if you want to use 1.16. 1.16.4 is not supported. 1.16 requires Java 8. -
Hello ! I want to make a forge 1.16.4 server . I installed in a folder the forge server from the forge installer , a bat with java -Xmx1024M -Xms1024M -jar forge-1.16.4-35.1.37.jar --nogui PAUSE and when i try to start it , it says this https://prnt.sc/plXm6cy4NDTH If someone can help me pls Thanks !
-
-
Topics
-
Who's Online (See full list)
Recommended Posts
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.