aqupa 4 years ago
parent
commit
437a52974b

+ 2 - 2
data/mini/functions/rgb/game/give_random_rule.mcfunction

@@ -7,8 +7,8 @@ function lib:random
 
 execute if score $random mem matches 0..2 run loot replace block 0 0 1 container.0 loot mini:rgb/red
 execute if score $random mem matches 3..5 run loot replace block 0 0 1 container.0 loot mini:rgb/green
-#execute if score $random mem matches 6..8 run loot replace block 0 0 1 container.0 loot mini:rgb/blue
-#execute if score $random mem matches 9..12 run loot replace block 0 0 1 container.0 loot mini:rgb/event
+execute if score $random mem matches 6..8 run loot replace block 0 0 1 container.0 loot mini:rgb/blue
+execute if score $random mem matches 9..12 run loot replace block 0 0 1 container.0 loot mini:rgb/effect
 execute if score $random mem matches 13 run loot replace block 0 0 1 container.0 loot mini:rgb/finish
 
 # 生成文本

+ 18 - 1
data/mini/loot_tables/rgb/blue.json

@@ -1,3 +1,20 @@
 {
-    
+    "pools": [
+        {
+            "rolls": 1,
+            "entries": [
+                {
+                    "type": "minecraft:item",
+                    "name": "minecraft:armor_stand",
+                    "weight": 1,
+                    "functions": [
+                        {
+                            "function": "minecraft:set_nbt",
+                            "tag": "{conditions:[{name:'{\"text\":\"下蹲20秒\",\"color\":\"yellow\"}',type:'shift',value:80s}],events:[{name:'{\"text\":\"B+1\",\"color\":\"blue\"}',type:'add_blue',value:1s}]}"
+                        }
+                    ]
+                }
+            ]
+        }
+    ]
 }

+ 18 - 1
data/mini/loot_tables/rgb/effect.json

@@ -1,3 +1,20 @@
 {
-    
+    "pools": [
+        {
+            "rolls": 1,
+            "entries": [
+                {
+                    "type": "minecraft:item",
+                    "name": "minecraft:armor_stand",
+                    "weight": 1,
+                    "functions": [
+                        {
+                            "function": "minecraft:set_nbt",
+                            "tag": "{conditions:[{name:'{\"text\":\"R<10\",\"color\":\"red\"}',type:'red_l',value:10s}],events:[{name:'{\"text\":\"清除脚下方块\",\"color\":\"yellow\"}',type:'place_air'}]}"
+                        }
+                    ]
+                }
+            ]
+        }
+    ]
 }