Ver Fonte

增加方块清理tag

HerobrineXia há 5 anos atrás
pai
commit
d9c00da091

+ 15 - 0
data/item/tags/items/game_item.json

@@ -0,0 +1,15 @@
+{
+    "values": [
+        "minecraft:trident",
+        "minecraft:acacia_planks",
+        "minecraft:birch_planks",
+        "minecraft:bedrock",
+        "minecraft:crimson_planks",
+        "minecraft:warped_planks",
+        "minecraft:gold_block",
+        "minecraft:bricks",
+        "minecraft:mossy_cobblestone",
+        "minecraft:purpur_block",
+        "minecraft:prismarine"
+    ]
+}

+ 1 - 10
data/mini/functions/colormatch/game/show_floor_block.mcfunction

@@ -1,14 +1,5 @@
 # 清理物品
-clear @s acacia_planks{game_item:1b}
-clear @s birch_planks{game_item:1b}
-clear @s bedrock{game_item:1b}
-clear @s crimson_planks{game_item:1b}
-clear @s warped_planks{game_item:1b}
-clear @s gold_block{game_item:1b}
-clear @s bricks{game_item:1b}
-clear @s mossy_cobblestone{game_item:1b}
-clear @s purpur_block{game_item:1b}
-clear @s prismarine{game_item:1b}
+clear @s #item:game_item{game_item:1b}
 
 # 返还格子上的物品
 execute if data entity @s Inventory[{Slot:8b}] run scoreboard players set @s item_slot 8

+ 1 - 0
data/mini/functions/phantom/player_enter.mcfunction

@@ -24,6 +24,7 @@ scoreboard players reset @s countdown
 tp @s[team=playing] 1030.5 24.5 6031.5
 
 # 清理道具
+clear @s #item:game_item{game_item:1b}
 clear @s barrier{LockItem:1b}
 
 # 调整模式