Procházet zdrojové kódy

color match 测试3

HerobrineXia před 6 roky
rodič
revize
2540a77f84

+ 1 - 1
data/mini/functions/colormatch/get_random_floor.mcfunction

@@ -32,5 +32,5 @@ execute positioned 1000 10 4000 if score $random mem matches 24 run clone ~ ~ ~
 execute positioned 1000 10 4000 if score $random mem matches 24 run clone ~ ~ ~ ~24 ~ ~24 ~ ~1 ~ filtered bricks
 
 # 存计分板
-scoreboard players operation $floor_next_round mem = $random mem
+scoreboard players operation $color_match_floor mem = $random mem
 

+ 3 - 0
data/mini/functions/colormatch/remove_ground.mcfunction

@@ -6,3 +6,6 @@ tellraw @a [{"text":">> ","color":"gold","bold": true},{"text":" 时间到!","
 # 重置分数
 scoreboard players set $countdown mem 5
 scoreboard players set $color_match_type mem 1
+
+# 预备下一轮
+function mini:colormatch/prepare_round

+ 100 - 100
data/mini/functions/colormatch/replace_wall.mcfunction

@@ -1,100 +1,100 @@
-execute if score $floor_next_round mem matches 1 run fill 1075 11 3999 1075 40 4025 iron_block
-execute if score $floor_next_round mem matches 1 run fill 1075 11 3999 1049 40 3999 iron_block
-execute if score $floor_next_round mem matches 1 run fill 1049 11 3999 1049 40 4025 iron_block
-execute if score $floor_next_round mem matches 1 run fill 1049 11 4025 1075 40 4025 iron_block
-execute if score $floor_next_round mem matches 2 run fill 1075 11 3999 1075 40 4025 white_concrete
-execute if score $floor_next_round mem matches 2 run fill 1075 11 3999 1049 40 3999 white_concrete
-execute if score $floor_next_round mem matches 2 run fill 1049 11 3999 1049 40 4025 white_concrete
-execute if score $floor_next_round mem matches 2 run fill 1049 11 4025 1075 40 4025 white_concrete
-execute if score $floor_next_round mem matches 3 run fill 1075 11 3999 1075 40 4025 quartz_block
-execute if score $floor_next_round mem matches 3 run fill 1075 11 3999 1049 40 3999 quartz_block
-execute if score $floor_next_round mem matches 3 run fill 1049 11 3999 1049 40 4025 quartz_block
-execute if score $floor_next_round mem matches 3 run fill 1049 11 4025 1075 40 4025 quartz_block
-execute if score $floor_next_round mem matches 4 run fill 1075 11 3999 1075 40 4025 snow_block
-execute if score $floor_next_round mem matches 4 run fill 1075 11 3999 1049 40 3999 snow_block
-execute if score $floor_next_round mem matches 4 run fill 1049 11 3999 1049 40 4025 snow_block
-execute if score $floor_next_round mem matches 4 run fill 1049 11 4025 1075 40 4025 snow_block
-execute if score $floor_next_round mem matches 5 run fill 1075 11 3999 1075 40 4025 white_wool
-execute if score $floor_next_round mem matches 5 run fill 1075 11 3999 1049 40 3999 white_wool
-execute if score $floor_next_round mem matches 5 run fill 1049 11 3999 1049 40 4025 white_wool
-execute if score $floor_next_round mem matches 5 run fill 1049 11 4025 1075 40 4025 white_wool
-execute if score $floor_next_round mem matches 6 run fill 1075 11 3999 1075 40 4025 gold_block
-execute if score $floor_next_round mem matches 6 run fill 1075 11 3999 1049 40 3999 gold_block
-execute if score $floor_next_round mem matches 6 run fill 1049 11 3999 1049 40 4025 gold_block
-execute if score $floor_next_round mem matches 6 run fill 1049 11 4025 1075 40 4025 gold_block
-execute if score $floor_next_round mem matches 7 run fill 1075 11 3999 1075 40 4025 sponge
-execute if score $floor_next_round mem matches 7 run fill 1075 11 3999 1049 40 3999 sponge
-execute if score $floor_next_round mem matches 7 run fill 1049 11 3999 1049 40 4025 sponge
-execute if score $floor_next_round mem matches 7 run fill 1049 11 4025 1075 40 4025 sponge
-execute if score $floor_next_round mem matches 8 run fill 1075 11 3999 1075 40 4025 sandstone
-execute if score $floor_next_round mem matches 8 run fill 1075 11 3999 1049 40 3999 sandstone
-execute if score $floor_next_round mem matches 8 run fill 1049 11 3999 1049 40 4025 sandstone
-execute if score $floor_next_round mem matches 8 run fill 1049 11 4025 1075 40 4025 sandstone
-execute if score $floor_next_round mem matches 9 run fill 1075 11 3999 1075 40 4025 yellow_concrete
-execute if score $floor_next_round mem matches 9 run fill 1075 11 3999 1049 40 3999 yellow_concrete
-execute if score $floor_next_round mem matches 9 run fill 1049 11 3999 1049 40 4025 yellow_concrete
-execute if score $floor_next_round mem matches 9 run fill 1049 11 4025 1075 40 4025 yellow_concrete
-execute if score $floor_next_round mem matches 10 run fill 1075 11 3999 1075 40 4025 end_stone
-execute if score $floor_next_round mem matches 10 run fill 1075 11 3999 1049 40 3999 end_stone
-execute if score $floor_next_round mem matches 10 run fill 1049 11 3999 1049 40 4025 end_stone
-execute if score $floor_next_round mem matches 10 run fill 1049 11 4025 1075 40 4025 end_stone
-execute if score $floor_next_round mem matches 11 run fill 1075 11 3999 1075 40 4025 emerald_block
-execute if score $floor_next_round mem matches 11 run fill 1075 11 3999 1049 40 3999 emerald_block
-execute if score $floor_next_round mem matches 11 run fill 1049 11 3999 1049 40 4025 emerald_block
-execute if score $floor_next_round mem matches 11 run fill 1049 11 4025 1075 40 4025 emerald_block
-execute if score $floor_next_round mem matches 12 run fill 1075 11 3999 1075 40 4025 lime_concrete
-execute if score $floor_next_round mem matches 12 run fill 1075 11 3999 1049 40 3999 lime_concrete
-execute if score $floor_next_round mem matches 12 run fill 1049 11 3999 1049 40 4025 lime_concrete
-execute if score $floor_next_round mem matches 12 run fill 1049 11 4025 1075 40 4025 lime_concrete
-execute if score $floor_next_round mem matches 13 run fill 1075 11 3999 1075 40 4025 melon
-execute if score $floor_next_round mem matches 13 run fill 1075 11 3999 1049 40 3999 melon
-execute if score $floor_next_round mem matches 13 run fill 1049 11 3999 1049 40 4025 melon
-execute if score $floor_next_round mem matches 13 run fill 1049 11 4025 1075 40 4025 melon
-execute if score $floor_next_round mem matches 14 run fill 1075 11 3999 1075 40 4025 dark_prismarine
-execute if score $floor_next_round mem matches 14 run fill 1075 11 3999 1049 40 3999 dark_prismarine
-execute if score $floor_next_round mem matches 14 run fill 1049 11 3999 1049 40 4025 dark_prismarine
-execute if score $floor_next_round mem matches 14 run fill 1049 11 4025 1075 40 4025 dark_prismarine
-execute if score $floor_next_round mem matches 15 run fill 1075 11 3999 1075 40 4025 green_wool
-execute if score $floor_next_round mem matches 15 run fill 1075 11 3999 1049 40 3999 green_wool
-execute if score $floor_next_round mem matches 15 run fill 1049 11 3999 1049 40 4025 green_wool
-execute if score $floor_next_round mem matches 15 run fill 1049 11 4025 1075 40 4025 green_wool
-execute if score $floor_next_round mem matches 16 run fill 1075 11 3999 1075 40 4025 diamond_block
-execute if score $floor_next_round mem matches 16 run fill 1075 11 3999 1049 40 3999 diamond_block
-execute if score $floor_next_round mem matches 16 run fill 1049 11 3999 1049 40 4025 diamond_block
-execute if score $floor_next_round mem matches 16 run fill 1049 11 4025 1075 40 4025 diamond_block
-execute if score $floor_next_round mem matches 17 run fill 1075 11 3999 1075 40 4025 prismarine
-execute if score $floor_next_round mem matches 17 run fill 1075 11 3999 1049 40 3999 prismarine
-execute if score $floor_next_round mem matches 17 run fill 1049 11 3999 1049 40 4025 prismarine
-execute if score $floor_next_round mem matches 17 run fill 1049 11 4025 1075 40 4025 prismarine
-execute if score $floor_next_round mem matches 18 run fill 1075 11 3999 1075 40 4025 blue_ice
-execute if score $floor_next_round mem matches 18 run fill 1075 11 3999 1049 40 3999 blue_ice
-execute if score $floor_next_round mem matches 18 run fill 1049 11 3999 1049 40 4025 blue_ice
-execute if score $floor_next_round mem matches 18 run fill 1049 11 4025 1075 40 4025 blue_ice
-execute if score $floor_next_round mem matches 19 run fill 1075 11 3999 1075 40 4025 warped_wart_block
-execute if score $floor_next_round mem matches 19 run fill 1075 11 3999 1049 40 3999 warped_wart_block
-execute if score $floor_next_round mem matches 19 run fill 1049 11 3999 1049 40 4025 warped_wart_block
-execute if score $floor_next_round mem matches 19 run fill 1049 11 4025 1075 40 4025 warped_wart_block
-execute if score $floor_next_round mem matches 20 run fill 1075 11 3999 1075 40 4025 prismarine_bricks
-execute if score $floor_next_round mem matches 20 run fill 1075 11 3999 1049 40 3999 prismarine_bricks
-execute if score $floor_next_round mem matches 20 run fill 1049 11 3999 1049 40 4025 prismarine_bricks
-execute if score $floor_next_round mem matches 20 run fill 1049 11 4025 1075 40 4025 prismarine_bricks
-execute if score $floor_next_round mem matches 21 run fill 1075 11 3999 1075 40 4025 red_wool
-execute if score $floor_next_round mem matches 21 run fill 1075 11 3999 1049 40 3999 red_wool
-execute if score $floor_next_round mem matches 21 run fill 1049 11 3999 1049 40 4025 red_wool
-execute if score $floor_next_round mem matches 21 run fill 1049 11 4025 1075 40 4025 red_wool
-execute if score $floor_next_round mem matches 22 run fill 1075 11 3999 1075 40 4025 red_concrete
-execute if score $floor_next_round mem matches 22 run fill 1075 11 3999 1049 40 3999 red_concrete
-execute if score $floor_next_round mem matches 22 run fill 1049 11 3999 1049 40 4025 red_concrete
-execute if score $floor_next_round mem matches 22 run fill 1049 11 4025 1075 40 4025 red_concrete
-execute if score $floor_next_round mem matches 23 run fill 1075 11 3999 1075 40 4025 netherrack
-execute if score $floor_next_round mem matches 23 run fill 1075 11 3999 1049 40 3999 netherrack
-execute if score $floor_next_round mem matches 23 run fill 1049 11 3999 1049 40 4025 netherrack
-execute if score $floor_next_round mem matches 23 run fill 1049 11 4025 1075 40 4025 netherrack
-execute if score $floor_next_round mem matches 24 run fill 1075 11 3999 1075 40 4025 red_nether_bricks
-execute if score $floor_next_round mem matches 24 run fill 1075 11 3999 1049 40 3999 red_nether_bricks
-execute if score $floor_next_round mem matches 24 run fill 1049 11 3999 1049 40 4025 red_nether_bricks
-execute if score $floor_next_round mem matches 24 run fill 1049 11 4025 1075 40 4025 red_nether_bricks
-execute if score $floor_next_round mem matches 25 run fill 1075 11 3999 1075 40 4025 bricks
-execute if score $floor_next_round mem matches 25 run fill 1075 11 3999 1049 40 3999 bricks
-execute if score $floor_next_round mem matches 25 run fill 1049 11 3999 1049 40 4025 bricks
-execute if score $floor_next_round mem matches 25 run fill 1049 11 4025 1075 40 4025 bricks
+execute if score $color_match_floor mem matches 1 run fill 1075 11 3999 1075 40 4025 iron_block
+execute if score $color_match_floor mem matches 1 run fill 1075 11 3999 1049 40 3999 iron_block
+execute if score $color_match_floor mem matches 1 run fill 1049 11 3999 1049 40 4025 iron_block
+execute if score $color_match_floor mem matches 1 run fill 1049 11 4025 1075 40 4025 iron_block
+execute if score $color_match_floor mem matches 2 run fill 1075 11 3999 1075 40 4025 white_concrete
+execute if score $color_match_floor mem matches 2 run fill 1075 11 3999 1049 40 3999 white_concrete
+execute if score $color_match_floor mem matches 2 run fill 1049 11 3999 1049 40 4025 white_concrete
+execute if score $color_match_floor mem matches 2 run fill 1049 11 4025 1075 40 4025 white_concrete
+execute if score $color_match_floor mem matches 3 run fill 1075 11 3999 1075 40 4025 quartz_block
+execute if score $color_match_floor mem matches 3 run fill 1075 11 3999 1049 40 3999 quartz_block
+execute if score $color_match_floor mem matches 3 run fill 1049 11 3999 1049 40 4025 quartz_block
+execute if score $color_match_floor mem matches 3 run fill 1049 11 4025 1075 40 4025 quartz_block
+execute if score $color_match_floor mem matches 4 run fill 1075 11 3999 1075 40 4025 snow_block
+execute if score $color_match_floor mem matches 4 run fill 1075 11 3999 1049 40 3999 snow_block
+execute if score $color_match_floor mem matches 4 run fill 1049 11 3999 1049 40 4025 snow_block
+execute if score $color_match_floor mem matches 4 run fill 1049 11 4025 1075 40 4025 snow_block
+execute if score $color_match_floor mem matches 5 run fill 1075 11 3999 1075 40 4025 white_wool
+execute if score $color_match_floor mem matches 5 run fill 1075 11 3999 1049 40 3999 white_wool
+execute if score $color_match_floor mem matches 5 run fill 1049 11 3999 1049 40 4025 white_wool
+execute if score $color_match_floor mem matches 5 run fill 1049 11 4025 1075 40 4025 white_wool
+execute if score $color_match_floor mem matches 6 run fill 1075 11 3999 1075 40 4025 gold_block
+execute if score $color_match_floor mem matches 6 run fill 1075 11 3999 1049 40 3999 gold_block
+execute if score $color_match_floor mem matches 6 run fill 1049 11 3999 1049 40 4025 gold_block
+execute if score $color_match_floor mem matches 6 run fill 1049 11 4025 1075 40 4025 gold_block
+execute if score $color_match_floor mem matches 7 run fill 1075 11 3999 1075 40 4025 sponge
+execute if score $color_match_floor mem matches 7 run fill 1075 11 3999 1049 40 3999 sponge
+execute if score $color_match_floor mem matches 7 run fill 1049 11 3999 1049 40 4025 sponge
+execute if score $color_match_floor mem matches 7 run fill 1049 11 4025 1075 40 4025 sponge
+execute if score $color_match_floor mem matches 8 run fill 1075 11 3999 1075 40 4025 sandstone
+execute if score $color_match_floor mem matches 8 run fill 1075 11 3999 1049 40 3999 sandstone
+execute if score $color_match_floor mem matches 8 run fill 1049 11 3999 1049 40 4025 sandstone
+execute if score $color_match_floor mem matches 8 run fill 1049 11 4025 1075 40 4025 sandstone
+execute if score $color_match_floor mem matches 9 run fill 1075 11 3999 1075 40 4025 yellow_concrete
+execute if score $color_match_floor mem matches 9 run fill 1075 11 3999 1049 40 3999 yellow_concrete
+execute if score $color_match_floor mem matches 9 run fill 1049 11 3999 1049 40 4025 yellow_concrete
+execute if score $color_match_floor mem matches 9 run fill 1049 11 4025 1075 40 4025 yellow_concrete
+execute if score $color_match_floor mem matches 10 run fill 1075 11 3999 1075 40 4025 end_stone
+execute if score $color_match_floor mem matches 10 run fill 1075 11 3999 1049 40 3999 end_stone
+execute if score $color_match_floor mem matches 10 run fill 1049 11 3999 1049 40 4025 end_stone
+execute if score $color_match_floor mem matches 10 run fill 1049 11 4025 1075 40 4025 end_stone
+execute if score $color_match_floor mem matches 11 run fill 1075 11 3999 1075 40 4025 emerald_block
+execute if score $color_match_floor mem matches 11 run fill 1075 11 3999 1049 40 3999 emerald_block
+execute if score $color_match_floor mem matches 11 run fill 1049 11 3999 1049 40 4025 emerald_block
+execute if score $color_match_floor mem matches 11 run fill 1049 11 4025 1075 40 4025 emerald_block
+execute if score $color_match_floor mem matches 12 run fill 1075 11 3999 1075 40 4025 lime_concrete
+execute if score $color_match_floor mem matches 12 run fill 1075 11 3999 1049 40 3999 lime_concrete
+execute if score $color_match_floor mem matches 12 run fill 1049 11 3999 1049 40 4025 lime_concrete
+execute if score $color_match_floor mem matches 12 run fill 1049 11 4025 1075 40 4025 lime_concrete
+execute if score $color_match_floor mem matches 13 run fill 1075 11 3999 1075 40 4025 melon
+execute if score $color_match_floor mem matches 13 run fill 1075 11 3999 1049 40 3999 melon
+execute if score $color_match_floor mem matches 13 run fill 1049 11 3999 1049 40 4025 melon
+execute if score $color_match_floor mem matches 13 run fill 1049 11 4025 1075 40 4025 melon
+execute if score $color_match_floor mem matches 14 run fill 1075 11 3999 1075 40 4025 dark_prismarine
+execute if score $color_match_floor mem matches 14 run fill 1075 11 3999 1049 40 3999 dark_prismarine
+execute if score $color_match_floor mem matches 14 run fill 1049 11 3999 1049 40 4025 dark_prismarine
+execute if score $color_match_floor mem matches 14 run fill 1049 11 4025 1075 40 4025 dark_prismarine
+execute if score $color_match_floor mem matches 15 run fill 1075 11 3999 1075 40 4025 green_wool
+execute if score $color_match_floor mem matches 15 run fill 1075 11 3999 1049 40 3999 green_wool
+execute if score $color_match_floor mem matches 15 run fill 1049 11 3999 1049 40 4025 green_wool
+execute if score $color_match_floor mem matches 15 run fill 1049 11 4025 1075 40 4025 green_wool
+execute if score $color_match_floor mem matches 16 run fill 1075 11 3999 1075 40 4025 diamond_block
+execute if score $color_match_floor mem matches 16 run fill 1075 11 3999 1049 40 3999 diamond_block
+execute if score $color_match_floor mem matches 16 run fill 1049 11 3999 1049 40 4025 diamond_block
+execute if score $color_match_floor mem matches 16 run fill 1049 11 4025 1075 40 4025 diamond_block
+execute if score $color_match_floor mem matches 17 run fill 1075 11 3999 1075 40 4025 prismarine
+execute if score $color_match_floor mem matches 17 run fill 1075 11 3999 1049 40 3999 prismarine
+execute if score $color_match_floor mem matches 17 run fill 1049 11 3999 1049 40 4025 prismarine
+execute if score $color_match_floor mem matches 17 run fill 1049 11 4025 1075 40 4025 prismarine
+execute if score $color_match_floor mem matches 18 run fill 1075 11 3999 1075 40 4025 blue_ice
+execute if score $color_match_floor mem matches 18 run fill 1075 11 3999 1049 40 3999 blue_ice
+execute if score $color_match_floor mem matches 18 run fill 1049 11 3999 1049 40 4025 blue_ice
+execute if score $color_match_floor mem matches 18 run fill 1049 11 4025 1075 40 4025 blue_ice
+execute if score $color_match_floor mem matches 19 run fill 1075 11 3999 1075 40 4025 warped_wart_block
+execute if score $color_match_floor mem matches 19 run fill 1075 11 3999 1049 40 3999 warped_wart_block
+execute if score $color_match_floor mem matches 19 run fill 1049 11 3999 1049 40 4025 warped_wart_block
+execute if score $color_match_floor mem matches 19 run fill 1049 11 4025 1075 40 4025 warped_wart_block
+execute if score $color_match_floor mem matches 20 run fill 1075 11 3999 1075 40 4025 prismarine_bricks
+execute if score $color_match_floor mem matches 20 run fill 1075 11 3999 1049 40 3999 prismarine_bricks
+execute if score $color_match_floor mem matches 20 run fill 1049 11 3999 1049 40 4025 prismarine_bricks
+execute if score $color_match_floor mem matches 20 run fill 1049 11 4025 1075 40 4025 prismarine_bricks
+execute if score $color_match_floor mem matches 21 run fill 1075 11 3999 1075 40 4025 red_wool
+execute if score $color_match_floor mem matches 21 run fill 1075 11 3999 1049 40 3999 red_wool
+execute if score $color_match_floor mem matches 21 run fill 1049 11 3999 1049 40 4025 red_wool
+execute if score $color_match_floor mem matches 21 run fill 1049 11 4025 1075 40 4025 red_wool
+execute if score $color_match_floor mem matches 22 run fill 1075 11 3999 1075 40 4025 red_concrete
+execute if score $color_match_floor mem matches 22 run fill 1075 11 3999 1049 40 3999 red_concrete
+execute if score $color_match_floor mem matches 22 run fill 1049 11 3999 1049 40 4025 red_concrete
+execute if score $color_match_floor mem matches 22 run fill 1049 11 4025 1075 40 4025 red_concrete
+execute if score $color_match_floor mem matches 23 run fill 1075 11 3999 1075 40 4025 netherrack
+execute if score $color_match_floor mem matches 23 run fill 1075 11 3999 1049 40 3999 netherrack
+execute if score $color_match_floor mem matches 23 run fill 1049 11 3999 1049 40 4025 netherrack
+execute if score $color_match_floor mem matches 23 run fill 1049 11 4025 1075 40 4025 netherrack
+execute if score $color_match_floor mem matches 24 run fill 1075 11 3999 1075 40 4025 red_nether_bricks
+execute if score $color_match_floor mem matches 24 run fill 1075 11 3999 1049 40 3999 red_nether_bricks
+execute if score $color_match_floor mem matches 24 run fill 1049 11 3999 1049 40 4025 red_nether_bricks
+execute if score $color_match_floor mem matches 24 run fill 1049 11 4025 1075 40 4025 red_nether_bricks
+execute if score $color_match_floor mem matches 25 run fill 1075 11 3999 1075 40 4025 bricks
+execute if score $color_match_floor mem matches 25 run fill 1075 11 3999 1049 40 3999 bricks
+execute if score $color_match_floor mem matches 25 run fill 1049 11 3999 1049 40 4025 bricks
+execute if score $color_match_floor mem matches 25 run fill 1049 11 4025 1075 40 4025 bricks

+ 0 - 3
data/mini/functions/colormatch/start_new_round.mcfunction

@@ -19,6 +19,3 @@ tag @a[tag=color_match_fall] remove color_match_fall
 # TODO 告知玩家是啥方块
 # 告知玩家
 tellraw @a [{"text":">> ","color":"gold","bold": true},{"text":" 新的一轮开始了!","color":"white","bold": false}]
-
-# 预备下一轮
-function mini:colormatch/prepare_round