HerobrineXia 6 лет назад
Родитель
Сommit
8fca2ae561

+ 14 - 31
data/ltw/functions/state/0/parkour/tempo_block/marker_spawn.mcfunction

@@ -2,37 +2,20 @@
 kill @e[type=armor_stand,tag=lobby_tempo]
 kill @e[type=armor_stand,tag=lobby_tempo]
 
 
 # 生成as
 # 生成as
-summon armor_stand 11 15.6 26 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 11 16.6 30 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 11 17.6 37 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 9 19.6 40 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 9 19.6 32 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 9 20.6 27 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 10 22.6 23 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 11 23.6 28 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 11 23.6 35 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 9 23.6 40 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 11 25.6 40 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 9 26.6 34 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 9 27.6 27 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 9 26.6 25 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
-summon armor_stand 9 29.6 24 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red"]}
+execute positioned 6 12 -26 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red_t"]}
+execute positioned 11 14 -27 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red_t"]}
+execute positioned 11 16 -31 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red_t"]}
+execute positioned 10 16 -22 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red_t"]}
+execute positioned 5 17 -24 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red_t"]}
+execute positioned 6 19 -27 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_red_t"]}
 
 
-summon armor_stand 11 16.6 26 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 11 17.6 33 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 11 17.6 40 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 10 18.6 42 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 9 19.6 36 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 9 19.6 29 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 9 21.6 25 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 11 23.6 24 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 11 23.6 31 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 10 23.6 37 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 10 24.6 42 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 11 26.6 37 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 9 26.6 30 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
-summon armor_stand 10 26.6 23 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue"]}
+execute positioned 6 13 -26 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue_t"]}
+execute positioned 11 15 -27 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue_t"]}
+execute positioned 9 17 -31 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue_t"]}
+execute positioned 10 17 -22 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue_t"]}
+execute positioned 5 18 -24 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue_t"]}
+execute positioned 6 20 -27 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue_t"]}
 
 
 # 显示as
 # 显示as
-replaceitem entity @e[type=armor_stand,tag=tempo_red,tag=lobby_tempo] armor.head red_stained_glass
-replaceitem entity @e[type=armor_stand,tag=tempo_blue,tag=lobby_tempo] armor.head blue_stained_glass
+replaceitem entity @e[type=armor_stand,tag=tempo_red_t,tag=lobby_tempo] armor.head red_stained_glass
+replaceitem entity @e[type=armor_stand,tag=tempo_blue_t,tag=lobby_tempo] armor.head blue_stained_glass

+ 2 - 2
data/ltw/functions/state/0/parkour/tempo_block/tempo_blue.mcfunction

@@ -1,6 +1,6 @@
 # 替换方块
 # 替换方块
-execute at @e[type=armor_stand,tag=lobby_tempo,tag=tempo_red] run setblock ~ ~0.4 ~ air
-execute at @e[type=armor_stand,tag=lobby_tempo,tag=tempo_blue] run setblock ~ ~0.4 ~ blue_concrete
+execute at @e[type=armor_stand,tag=lobby_tempo,tag=tempo_red_t] run setblock ~ ~0.4 ~ air
+execute at @e[type=armor_stand,tag=lobby_tempo,tag=tempo_blue_t] run setblock ~ ~0.4 ~ blue_concrete
 
 
 # 播放音效
 # 播放音效
 execute at @e[type=armor_stand,tag=lobby_tempo] run playsound block.note_block.pling block @a ~ ~0.4 ~ 0.5 0.6
 execute at @e[type=armor_stand,tag=lobby_tempo] run playsound block.note_block.pling block @a ~ ~0.4 ~ 0.5 0.6

+ 2 - 2
data/ltw/functions/state/0/parkour/tempo_block/tempo_red.mcfunction

@@ -1,6 +1,6 @@
 # 替换方块
 # 替换方块
-execute at @e[type=armor_stand,tag=lobby_tempo,tag=tempo_blue] run setblock ~ ~0.4 ~ air
-execute at @e[type=armor_stand,tag=lobby_tempo,tag=tempo_red] run setblock ~ ~0.4 ~ red_concrete
+execute at @e[type=armor_stand,tag=lobby_tempo,tag=tempo_blue_t] run setblock ~ ~0.4 ~ air
+execute at @e[type=armor_stand,tag=lobby_tempo,tag=tempo_red_t] run setblock ~ ~0.4 ~ red_concrete
 
 
 # 播放音效
 # 播放音效
 execute at @e[type=armor_stand,tag=lobby_tempo] run playsound block.note_block.pling block @a ~ ~0.4 ~ 0.5 1.1
 execute at @e[type=armor_stand,tag=lobby_tempo] run playsound block.note_block.pling block @a ~ ~0.4 ~ 0.5 1.1