<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 樣式代碼 樣式代碼即為幫文字添加樣式的代碼 例如加粗,斜體,顏色等等 同時,樣式代碼不像`text`/`selector`/`score`并不能重復 每個對象都可以使用多個樣式代碼,以達成多種效果疊加 ## color-顏色 color代碼,就是幫文字添加顏色的代碼 基本格式為: ``` "color":"[顏色代碼]" ``` 實際使用時,添加在文本類型后方,使用`,`分隔即可 所有的樣式代碼都是如此使用的,可以添加多于一個樣式代碼 例如: ``` /tellraw @a {"text":"Hello World","color":"dark_blue"} ``` ![N4](https://box.kancloud.cn/7dacdd4d47f33d0e0cbe4db3ed198769_648x18.png) > 顏色表格 > ![](https://box.kancloud.cn/ec9e78d8e0ed081f2975e43274c1a380_3525x1538.png) ## bold-加粗 bold,加粗文字 基本格式: ``` "bold":true ``` 如果是后方的數值不為`true`而是`false`的話,文字就不會加粗 將樣式代碼設置為false的用途主要體現在**extra-分項**/**JSON array**中,后續將有說明 使用例子: ``` /tellraw @a {"text":"Hello World","bold":true} ``` ![11](https://box.kancloud.cn/1a7742140f2e98bbfee7c1b728198d4e_599x18.png) 如果是想搭配其他樣式代碼,如顏色使用的話: ``` /tellraw @a {"text":"Hello World","bold":true,"color":"dark_red"} ``` ![12](https://box.kancloud.cn/1b01d79cc659374f2cc0ce310741cbc7_599x18.png) 請注意,樣式代碼的先后順序并無影響 其他樣式代碼同理,不再作示范 ## italic-斜體 italic,斜體,與bold的使用方式類近 基本格式: ``` "italic":true ``` 使用例子: ``` /tellraw @a {"text":"Hello World","italic":true} ``` ![13](https://box.kancloud.cn/005647270e3e47ea78ce10cfe72f1766_600x18.png) ## underlined-下劃線 underlined,下劃線,與bold的使用方式類近 基本格式: ``` "underlined":true ``` 使用例子: ``` /tellraw @a {"text":"Hello World","underlined":true} ``` ![14](https://box.kancloud.cn/9d63cd34799d7ad69635a225119f4f6e_601x22.png) ## strikethrough-刪除線 strikethrough,刪除線,與bold的使用方式類近 基本格式: ``` "strikethrough":true ``` 使用例子: ``` /tellraw @a {"text":"Hello World","strikethrough":true} ``` ![15](https://box.kancloud.cn/da45876faab2502906f250ad2e5b365c_599x18.png) ## obfuscated-混淆文字 obfuscated,混淆文字 這個是一個特別的樣式代碼 生效條件是文本內容**必須為英文** 效果為不斷跳動變換的亂碼文字 基本格式: ``` "obfuscated":true ``` 使用例子: ``` /tellraw @a {"text":"Hello World","obfuscated":true} ``` ![16](https://box.kancloud.cn/e7551c46e3b7f979cb37e38eb5ebeb19_599x18.png) ~~請自行腦補跳動效果~~ 如果不是英文的話不會起效,例如: ``` /tellraw @a {"text":"世界你好","obfuscated":true} ``` ![17](https://box.kancloud.cn/88083715ab3f31d86b2f5d1b596a5c90_599x19.png) ---- 現在我們懂得為JSON文本加入不同的樣式了,那么還有沒有別的可以玩玩呢? JSON文本除了能看以外,還能與玩家互動,這也是JSON文本一個非常重要的特點。 接下來的章節我們將會介紹點擊及懸浮事件,讓JSON文本變得更生動有趣!
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看