Posted December 2, 201311 yr I am trying to make a bot that will read chat on a server, and reply to that chat accordingly. This is all done from a player on the server, not serverside. What code do I need to use to output a message so that other people can see it as regular chat?
December 2, 201311 yr Minecraft.getMinecraft().thePlayer.addChatMessage("Message"); PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
December 2, 201311 yr Hi Start from Packet3Chat and go from there- NetClientHandler.handleChat -> Forge event ClientChatReceivedEvent Have you heard of Forge events before? EntityClientPlayerMP.sendChatMessage to send the message. Can get EntityClientPlayerMP from Minecraft.getMinecraft().thePlayer -TGG
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.