Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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\"}]";
- IChatComponent chat_out = IChatComponent.Serializer.jsonToComponent(out);
- Minecraft.getMinecraft().thePlayer.addChatMessage(chat_out);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement