Posted February 7, 20178 yr I'm trying to get a item to print text in chat with out saying a player sent it. What I have happening right now is this. public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn) { Minecraft.getMinecraft().player.sendChatMessage("Hello fellow Foxes!!"); return new ActionResult(EnumActionResult.PASS, playerIn.getHeldItem(handIn)); } My results are this. I don't want it to say a player sent it. I want it to just show the following text. I've been looking it up for about an hour and I finally decided to look it up here. Any help would be very great. http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 7, 20178 yr Use sendMessage instead of sendChatMessage Also you don't need to use Minecraft.getMinecraft just use the player instance given to you Did you really need to know?
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.