瀏覽代碼

修复随机获取地板

HerobrineXia 6 年之前
父節點
當前提交
b71e2076d0
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      data/mini/functions/colormatch/get_random_floor.mcfunction

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

@@ -4,6 +4,7 @@ function lib:random
 
 # TODO 更换地板方块-增强对比+辨识度
 # 随机选择不消失的方块
+execute positioned 1000 10 4000 run fill ~ ~1 ~ ~25 ~1 ~25 air replace
 execute positioned 1000 10 4000 if score $random mem matches 1 run clone ~ ~ ~ ~25 ~ ~25 ~ ~1 ~ filtered iron_block
 execute positioned 1000 10 4000 if score $random mem matches 2 run clone ~ ~ ~ ~25 ~ ~25 ~ ~1 ~ filtered white_concrete
 execute positioned 1000 10 4000 if score $random mem matches 3 run clone ~ ~ ~ ~25 ~ ~25 ~ ~1 ~ filtered quartz_block