LTCatt 6 роки тому
батько
коміт
32d506efe9

+ 2 - 2
data/item/loot_tables/gameparty/ranks/blue.json

@@ -29,11 +29,11 @@
 {
 {
     "type": "minecraft:item",
     "type": "minecraft:item",
     "weight": 1,
     "weight": 1,
-    "name": "minecraft:golden_apple",
+    "name": "minecraft:golden_apple:1",
     "functions": [
     "functions": [
         {
         {
             "function": "minecraft:set_nbt",
             "function": "minecraft:set_nbt",
-            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"附魔生命果\\\",\\\"color\\\":\\\"white\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"display\":{\"Name\":\"{\\\"text\\\":\\\"附魔生命果\\\",\\\"italic\\\":0,\\\"color\\\":\\\"light_purple\\\"}\"}}"
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"附魔生命果\\\",\\\"color\\\":\\\"white\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"display\":{\"Name\":\"{\\\"text\\\":\\\"附魔生命果\\\",\\\"italic\\\":0}\"}}"
         }
         }
     ]
     ]
 }
 }

+ 1 - 1
data/item/loot_tables/gameparty/ranks/white.json

@@ -18,7 +18,7 @@
     "functions": [
     "functions": [
         {
         {
             "function": "minecraft:set_nbt",
             "function": "minecraft:set_nbt",
-            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"跳跃药水 II (0:20)\\\",\\\"color\\\":\\\"white\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"CustomPotionEffects\":[{\"Id\":8,\"Amplifier\":1,\"Duration\":400}],\"CustomPotionColor\":2292811,\"display\":{\"Name\":\"{\\\"text\\\":\\\"跳跃药水\\\",\\\"italic\\\":0}\"}}"
+            "tag": "{\"item_name\":\"{\\\"text\\\":\\\"跳跃药水 II (0:15)\\\",\\\"color\\\":\\\"white\\\"}\",\"is_bonus\":1b,\"bonus_new\":1b,\"bonus_return\":1b,\"CustomPotionEffects\":[{\"Id\":8,\"Amplifier\":1,\"Duration\":300}],\"CustomPotionColor\":2292811,\"display\":{\"Name\":\"{\\\"text\\\":\\\"跳跃药水\\\",\\\"italic\\\":0}\"}}"
         }
         }
     ]
     ]
 },
 },

+ 2 - 2
data/test/functions/generate_bonus.mcfunction

@@ -2,6 +2,6 @@
 
 
 tag @a remove watcher
 tag @a remove watcher
 scoreboard players set $game_type mem 1
 scoreboard players set $game_type mem 1
-scoreboard players set $round mem 5
+scoreboard players set $round mem 4
 function ltw:state/6/state_enter
 function ltw:state/6/state_enter
-gamemode creative @a
+schedule function test:generate_bonus2 3t

+ 5 - 0
data/test/functions/generate_bonus2.mcfunction

@@ -0,0 +1,5 @@
+
+scoreboard players set $state mem 0
+scoreboard players set $round mem 5
+scoreboard players set $countdown mem 4
+gamemode creative @a