LTCatt 6 yıl önce
ebeveyn
işleme
210fae13d6

+ 3 - 3
data/mini/functions/parkour/game/test_treasure.mcfunction

@@ -32,9 +32,9 @@ execute positioned 1007.50 13.50 1025.50 as @a[tag=!treasure8,tag=!watcher,tag=!
 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 positioned 1024.50 30.50 1038.50 as @a[tag=!treasure9,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure9] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "活塞平台","color":"gold"}," 的宝藏!"]
-execute positioned 1024.50 30.50 1038.50 as @a[tag=!treasure9,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure
-execute positioned 1024.50 30.50 1038.50 as @a[tag=!treasure9,tag=!watcher,tag=!debug,distance=..2] run tag @s add treasure9
+execute positioned 1024.50 29.50 1038.50 as @a[tag=!treasure9,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure9] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "活塞平台","color":"gold"}," 的宝藏!"]
+execute positioned 1024.50 29.50 1038.50 as @a[tag=!treasure9,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure
+execute positioned 1024.50 29.50 1038.50 as @a[tag=!treasure9,tag=!watcher,tag=!debug,distance=..2] run tag @s add treasure9
 
 execute positioned 1014.50 19.50 1024.50 as @a[tag=!treasure10,tag=!watcher,tag=!debug,distance=..2] unless entity @a[tag=treasure10] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"} , " 第一个获得了 ",{"text": "沙漠密室","color":"gold"}," 的宝藏!"]
 execute positioned 1014.50 19.50 1024.50 as @a[tag=!treasure10,tag=!watcher,tag=!debug,distance=..2] run tag @s add get_treasure

+ 1 - 1
data/mini/functions/parkour/game_init.mcfunction

@@ -44,7 +44,7 @@ summon armor_stand 1026.50 18.50 1047.00 {Tags:["treasure_item"],DisabledSlots:7
 summon armor_stand 1004.50 18.50 1043.50 {Tags:["treasure_item"],DisabledSlots:7967,ArmorItems:[{},{},{},{id:"chest",Count:1}],Invisible:1b,Small:1b,NoGravity:1b,Marker:1b}
 summon armor_stand 1013.00 08.50 1041.00 {Tags:["treasure_item"],DisabledSlots:7967,ArmorItems:[{},{},{},{id:"chest",Count:1}],Invisible:1b,Small:1b,NoGravity:1b,Marker:1b}
 summon armor_stand 1007.50 13.50 1025.50 {Tags:["treasure_item"],DisabledSlots:7967,ArmorItems:[{},{},{},{id:"chest",Count:1}],Invisible:1b,Small:1b,NoGravity:1b,Marker:1b}
-summon armor_stand 1024.50 30.50 1038.50 {Tags:["treasure_item"],DisabledSlots:7967,ArmorItems:[{},{},{},{id:"chest",Count:1}],Invisible:1b,Small:1b,NoGravity:1b,Marker:1b}
+summon armor_stand 1024.50 29.50 1038.50 {Tags:["treasure_item"],DisabledSlots:7967,ArmorItems:[{},{},{},{id:"chest",Count:1}],Invisible:1b,Small:1b,NoGravity:1b,Marker:1b}
 summon armor_stand 1014.50 19.50 1024.50 {Tags:["treasure_item"],DisabledSlots:7967,ArmorItems:[{},{},{},{id:"chest",Count:1}],Invisible:1b,Small:1b,NoGravity:1b,Marker:1b}
 team join gold @e[tag=treasure_item]
 effect give @e[tag=treasure_item] glowing 1000000 0 true

+ 4 - 1
data/mini/functions/parkour/tick2.mcfunction

@@ -5,4 +5,7 @@ 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 5
 
 # 测试宝藏
-function mini:parkour/game/test_treasure
+function mini:parkour/game/test_treasure
+
+# 旋转宝藏
+execute as @e[tag=treasure_item] at @s run tp @s ~ ~ ~ ~2 ~