Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. String out = "[\"\",{\"text\":\"click that -> \",\"color\":\"blue\"},{\"text\":\"click me\",\"color\":\"green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/me hi\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\",\"hi\"}},{\"text\":\" <-\",\"color\":\"blue\"}]";
  2.  
  3. IChatComponent chat_out = IChatComponent.Serializer.jsonToComponent(out);
  4. Minecraft.getMinecraft().thePlayer.addChatMessage(chat_out);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement