Posted July 9, 201411 yr I have a system set up where if you right click my custom mob, when it is tamed, text appears, but on servers it appears for everyone to see which is not what I want. I am using this at the moment but I know it isn't the correct way to do it. FMLClientHandler.instance().getClient().ingameGUI.getChatGUI().printChatMessage(new ChatComponentText("TEXT HERE"));
July 9, 201411 yr Author Oh, wow, thanks, it works. Is there anyway to change the chat colour in this version, because I am fairly sure there was in 1.6.4?
July 9, 201411 yr targetPlayer.addChatMessage(new ChatComponentText("TEXT HERE").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.AQUA))); or targetPlayer.addChatMessage(new ChatComponentText(EnumChatFormatting.AQUA + "TEXT HERE"));
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.