Browse Source

Color Match地板生成测试1

HerobrineXia 6 years ago
parent
commit
295ca59c4d

+ 0 - 2
data/ltw/functions/init.mcfunction

@@ -35,5 +35,3 @@ function mini:main/init
 
 # 状态
 function ltw:state/0/state_enter
-
-# TODO 让玩家进入时触发 ltw:main/player_enter

+ 51 - 0
data/mini/functions/colormatch/generate_floor.mcfunction

@@ -0,0 +1,51 @@
+# TODO 将场地设为固定位置
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_1",integrity:1.0f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_2",integrity:0.5f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_3",integrity:0.3333333333333333f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_4",integrity:0.25f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_5",integrity:0.2f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_6",integrity:0.16666666666666666f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_7",integrity:0.14285714285714285f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_8",integrity:0.125f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_9",integrity:0.1111111111111111f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_10",integrity:0.1f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_11",integrity:0.09090909090909091f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_12",integrity:0.08333333333333333f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_13",integrity:0.07692307692307693f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_14",integrity:0.07142857142857142f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_15",integrity:0.06666666666666667f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_16",integrity:0.0625f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_17",integrity:0.058823529411764705f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_18",integrity:0.05555555555555555f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_19",integrity:0.05263157894736842f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_20",integrity:0.05f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_21",integrity:0.047619047619047616f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_22",integrity:0.045454545454545456f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_23",integrity:0.043478260869565216f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_24",integrity:0.041666666666666664f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block
+execute at @e[tag=color_match_floor] run setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",name:"mini:color_match/color_25",integrity:0.04f}
+execute at @e[tag=color_match_floor] run setblock ~1 ~ ~ minecraft:redstone_block