This repository has been archived by the owner on Oct 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Tellraw
Zoyn edited this page Sep 17, 2018
·
4 revisions
When we want to make a tellraw json, you can use md_5's TextCompount, but i think somebody still don't know how to use it, so i create this Util, make this thing easier. let's see the code below.
Tellraw tellraw = new Tellraw("§aTest")
.addHover("§a23333\n§6test")
.addAnotherTellraw(" §lclick me to show the suggest command")
.showCommandInChatBar("/test")
.addAnotherTellraw("§6 click me to run the command")
.excuteCommand("/say 123")
.addAnotherTellraw(" §a§lShow Item!")
.showItem(player.getItemInHand()) // show_item
.addAnotherTellraw(" §bClickMeToOpenAUrl!")
.openUrl("https://github.com/602723113/May-Common-Library") // open_url
.addAnotherTellraw(" §cThe man who killed you!")
.showEntity("§6This is the id of entity", "§aThis is the name of entity", "This is the type of entity"); // show_entity
tellraw.send(player);
This wiki hopes to help you!
没有中文教程...自己看代码吧..