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

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

@@ -0,0 +1 @@
+loot give @s loot item:comment/writable_book

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

@@ -1 +1,3 @@
-loot give @s loot item:comment/writable_book
+loot give @s loot item:comment/writable_book
+tellraw @s [{"text":">> ","color":"gold","bold":true},{"bold":false,"text":"你获得了一本可以编辑的反馈书!"}]
+tellraw @s [{"text":">> ","color":"gold","bold":true},{"bold":false,"text":"提交前请署名,书名请写反馈的主题!"}]

+ 27 - 0
data/item/loot_tables/comment/written_book.json

@@ -0,0 +1,27 @@
+{
+	"type":"minecraft:generic",
+	"pools":[
+		{
+		"rolls":1,
+		"entries":[
+				{	
+					"type":"item",
+					"name":"minecraft:written_book",
+					"functions":[
+                        {
+						    "function":"copy_nbt",
+                            "source": "this",
+						    "ops":[
+                                {
+                                    "source": "Inventory[{id:\"minecraft:written_book\"}]",
+                                    "target": "",
+                                    "op":"replace"
+                                }
+                            ]
+                        }
+                    ]
+				}
+			]
+		}
+	]
+}