LTCatt %!s(int64=6) %!d(string=hai) anos
pai
achega
94c607a897

+ 1 - 1
data/ltw/functions/state/0/parkour/tempo_block/tempo_sound.mcfunction

@@ -1,3 +1,3 @@
 # 播放音效
 
-execute at @e[type=armor_stand,tag=lobby_tempo] run playsound block.note_block.snare block @a ~ ~ ~ 0.6 2
+execute at @e[type=armor_stand,tag=lobby_tempo] run playsound block.note_block.snare block @a ~ ~ ~ 0.4 2

+ 1 - 1
data/mini/functions/parkour/game/tempo_sound.mcfunction

@@ -1,2 +1,2 @@
 # 音效
-execute at @e[type=armor_stand,tag=parkour_tempo] run playsound block.note_block.snare block @a[tag=parkour_portal] ~ ~ ~ 0.6 2
+execute at @e[type=armor_stand,tag=parkour_tempo] run playsound block.note_block.snare block @a[tag=parkour_portal] ~ ~ ~ 0.4 2

+ 11 - 10
data/mini/functions/parkour/game/test_treasure.mcfunction

@@ -9,37 +9,38 @@
 
 tag @a remove get_treasure
 
-execute positioned 1009.50 14.50 1007.50 as @a[tag=!treasure1,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure1] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"} , " 第一个获得了 ",{"text": "营地屋顶","color":"green"}," 的宝藏!"]
+execute positioned 1009.50 14.50 1007.50 as @a[tag=!treasure1,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure1] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "营地屋顶","color":"gold"}," 的宝藏!"]
 execute positioned 1009.50 14.50 1007.50 as @a[tag=!treasure1,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure
 execute positioned 1009.50 14.50 1007.50 as @a[tag=!treasure1,tag=!watcher,tag=!debug,distance=..2] run tag @s add treasure1
 
-execute positioned 1021.50 15.50 1016.50 as @a[tag=!treasure2,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure2] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"} , " 第一个获得了 ",{"text": "沙漠骨骸","color":"green"}," 的宝藏!"]
+execute positioned 1021.50 15.50 1016.50 as @a[tag=!treasure2,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure2] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "沙漠骨骸","color":"gold"}," 的宝藏!"]
 execute positioned 1021.50 15.50 1016.50 as @a[tag=!treasure2,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure
 execute positioned 1021.50 15.50 1016.50 as @a[tag=!treasure2,tag=!watcher,tag=!debug,distance=..2] run tag @s add treasure2
 
-execute positioned 1008.50 30.50 1020.50 as @a[tag=!treasure3,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure3] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"} , " 第一个获得了 ",{"text": "神庙立柱","color":"green"}," 的宝藏!"]
+execute positioned 1008.50 30.50 1020.50 as @a[tag=!treasure3,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure3] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "神庙立柱","color":"gold"}," 的宝藏!"]
 execute positioned 1008.50 30.50 1020.50 as @a[tag=!treasure3,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure
 execute positioned 1008.50 30.50 1020.50 as @a[tag=!treasure3,tag=!watcher,tag=!debug,distance=..2] run tag @s add treasure3
 
-execute positioned 1011.50 19.50 1058.50 as @a[tag=!treasure4,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure4] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"} , " 第一个获得了 ",{"text": "下界之门","color":"green"}," 的宝藏!"]
+execute positioned 1011.50 19.50 1058.50 as @a[tag=!treasure4,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure4] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "下界之门","color":"gold"}," 的宝藏!"]
 execute positioned 1011.50 19.50 1058.50 as @a[tag=!treasure4,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure
 execute positioned 1011.50 19.50 1058.50 as @a[tag=!treasure4,tag=!watcher,tag=!debug,distance=..2] run tag @s add treasure4
 
-execute positioned 1026.50 18.50 1047.00 as @a[tag=!treasure5,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure5] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"} , " 第一个获得了 ",{"text": "落日森林","color":"green"}," 的宝藏!"]
+execute positioned 1026.50 18.50 1047.00 as @a[tag=!treasure5,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure5] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "落日森林","color":"gold"}," 的宝藏!"]
 execute positioned 1026.50 18.50 1047.00 as @a[tag=!treasure5,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure
 execute positioned 1026.50 18.50 1047.00 as @a[tag=!treasure5,tag=!watcher,tag=!debug,distance=..2] run tag @s add treasure5
 
-execute positioned 1004.50 18.50 1043.50 as @a[tag=!treasure6,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure6] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"} , " 第一个获得了 ",{"text": "地狱之顶","color":"green"}," 的宝藏!"]
+execute positioned 1004.50 18.50 1043.50 as @a[tag=!treasure6,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure6] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "地狱之顶","color":"gold"}," 的宝藏!"]
 execute positioned 1004.50 18.50 1043.50 as @a[tag=!treasure6,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure
 execute positioned 1004.50 18.50 1043.50 as @a[tag=!treasure6,tag=!watcher,tag=!debug,distance=..2] run tag @s add treasure6
 
-execute positioned 1013.00 08.50 1041.00 as @a[tag=!treasure7,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure7] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"} , " 第一个获得了 ",{"text": "节奏舞厅","color":"green"}," 的宝藏!"]
+execute positioned 1013.00 08.50 1041.00 as @a[tag=!treasure7,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure7] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "节奏舞厅","color":"gold"}," 的宝藏!"]
 execute positioned 1013.00 08.50 1041.00 as @a[tag=!treasure7,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure
 execute positioned 1013.00 08.50 1041.00 as @a[tag=!treasure7,tag=!watcher,tag=!debug,distance=..2] run tag @s add treasure7
 
-execute positioned 1007.50 13.50 1025.50 as @a[tag=!treasure8,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure8] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"green"} , " 第一个获得了 ",{"text": "末路营火","color":"green"}," 的宝藏!"]
+execute positioned 1007.50 13.50 1025.50 as @a[tag=!treasure8,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure8] run tellraw @a ["",{"text": ">> ","color":"green","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "末路营火","color":"gold"}," 的宝藏!"]
 execute positioned 1007.50 13.50 1025.50 as @a[tag=!treasure8,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure
 execute positioned 1007.50 13.50 1025.50 as @a[tag=!treasure8,tag=!watcher,tag=!debug,distance=..2] run tag @s add treasure8
 
-execute as @a[tag=get_treasure] at @s run function lib:sounds/levelup
-scoreboard players add @a[tag=get_treasure] treasure 1
+scoreboard players add @a[tag=get_treasure] treasure 1
+execute as @a[tag=get_treasure] run tellraw @s ["",{"text":">> ","color":"green","bold": true},"你已获得 ",{"score": {"objective": "treasure","name": "@s"},"color":"green"}," 份宝藏!"]
+execute as @a[tag=get_treasure] at @s run function lib:sounds/levelup

+ 3 - 0
data/mini/functions/parkour/tick2.mcfunction

@@ -1,5 +1,8 @@
 # 传送门粒子
 particle portal 1014.5 21.5 1057.0 0 1.5 1 1 15
 
+# 宝藏粒子
+execute as @e[tag=treasure_item] at @s run particle minecraft:crit ~ ~0.9 ~ 0.25 0.25 0.25 0.2 3
+
 # 测试宝藏
 function mini:parkour/game/test_treasure