Просмотр исходного кода

最后一次测试清理成书

HerobrineXia 6 лет назад
Родитель
Сommit
1dd388ebe6

+ 3 - 1
data/item/functions/comment/clear_book.mcfunction

@@ -1 +1,3 @@
-loot give @s loot item:comment/writable_book
+loot insert 10 6 2 loot item:comment/writable_book
+clear @s written_book
+tellraw @s [{"text":">> ","color":"gold","bold":true},{"bold":false,"text":"您的反馈成功提交!"}]

+ 3 - 2
data/item/loot_tables/comment/written_book.json

@@ -33,13 +33,14 @@
                             "function": "set_name",
                             "entity": "this",
                             "name":{
-                                "text":"反馈主题:",
+                                "text":"反馈主题: ",
                                 "color":"aqua",
                                 "italic": false,
                                 "extra": [
                                     {
                                         "nbt":"Inventory[{id:\"minecraft:written_book\"}].tag.title",
-                                        "entity":"@s"
+                                        "entity":"@s",
+                                        "color":"white"
                                     }
                                 ]
                             }