Posted October 5, 20214 yr Hello! whenever I use the processrightclick method it does nothing... here's my code! using the click public void openMarketContainer() { if (Mineclub.controller != null) { Mineclub.controller.processRightClick(Mineclub.player, Mineclub.player.world, Hand.MAIN_HAND); } else { Mineclub.setController(); Mineclub.controller.processRightClick(Mineclub.player, Mineclub.player.world, Hand.MAIN_HAND); } } creating the playercontroller public static void setController() { clienthandler = Minecraft.getInstance().getConnection(); if (clienthandler != null) { controller = new PlayerController(Minecraft.getInstance(), clienthandler); Mineclub.player.sendMessage(new StringTextComponent("Created CONTROLLER"), UUID.fromString("195953ec-9073-4c89-8c96-345821c9ce14")); if (controller == null) { Mineclub.player.sendMessage(new StringTextComponent("CONTROLLER IS NULL"), UUID.fromString("195953ec-9073-4c89-8c96-345821c9ce14")); } } else { Mineclub.player.sendMessage(new StringTextComponent("Client Handler Null"), UUID.fromString("195953ec-9073-4c89-8c96-345821c9ce14")); } }
October 5, 20214 yr it does not work because you create again a client side only mod, do this on server also again this is the wrong sub forum..!
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.