00ll00 6 роки тому
батько
коміт
b2ea5a40dc

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

@@ -1,2 +1,2 @@
 # 结束跑酷
-forceload remove 1000 1000 1050 1050
+forceload remove 1000 1000 1064 1064

+ 5 - 3
data/mini/functions/parkour/game_init.mcfunction

@@ -1,11 +1,13 @@
 # 初始化跑酷地图
-forceload add 1000 1000 1050 1050
+forceload add 1000 1000 1064 1064
 
 scoreboard players set $finish_mode mem 1
 
 # 生成地图
-setblock 1000 10 1000 minecraft:structure_block{mode:"LOAD",name:"mini:parkour"}
-setblock 1000 11 1000 minecraft:redstone_block
+setblock 1000 4 1000 minecraft:structure_block[mode=load]{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,seed:0L,author:"00ll00",rotation:"NONE",posX:0,mode:"LOAD",posY:1,sizeX:32,posZ:0,integrity:1.0f,showair:0b,name:"mini:pk0",sizeY:32,sizeZ:32,showboundingbox:0b}
+setblock 1000 5 1000 minecraft:redstone_block
+setblock 1000 4 1032 minecraft:structure_block[mode=load]{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,seed:0L,author:"00ll00",rotation:"NONE",posX:0,mode:"LOAD",posY:1,sizeX:32,posZ:0,integrity:1.0f,showair:0b,name:"mini:pk1",sizeY:32,sizeZ:32,showboundingbox:0b}
+setblock 1000 5 1032 minecraft:redstone_block
 
 # 清理残余实体
 kill @e[type=arrow]

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

@@ -11,7 +11,7 @@ effect give @s night_vision 1000000 0 true
 effect give @s resistance 1000000 4 true
 
 # 传送玩家
-tp @s[tag=!watcher,tag=!rejoining] 1005 15 1005
+tp @s[tag=!watcher,tag=!rejoining] 1008.5 8.00 1008.5
 
 # 调整模式
 gamemode spectator @s

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

@@ -1,3 +1,3 @@
 # 向单个玩家展示小游戏介绍
-tp @s 1007 24 1005
+tp @s 1008.5 8.00 1008.5
 tellraw @s [{"text":"\n>> 跑酷(测试) >>\n\n","color":"red","bold":true},{"text": "到达最上层即可获胜, 规则就是这么简单!\n这个小游戏还在测试中, 欢迎告诉我们让它变得更好玩的方法!\n","color":"white","bold": false}]

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

@@ -1,2 +1,2 @@
 # 玩家获胜判断
-execute as @a[tag=mini_running,x=1000,y=20,z=1022,dx=100,dy=20,dz=10] run function mini:parkour/player_finished
+execute as @a[tag=mini_running,x=1005,y=11,z=1018,dx=2,dy=3,dz=2] run function mini:parkour/player_finished

+ 2 - 2
data/mini/functions/parkour/watcher_limit.mcfunction

@@ -1,3 +1,3 @@
 # 观察者限制飞行范围
-execute as @a[gamemode=spectator] unless entity @s[x=1001,y=11,z=1001,dx=11,dy=15,dz=24] run spectate
-execute as @a[gamemode=spectator] unless entity @s[x=1001,y=11,z=1001,dx=11,dy=15,dz=24] run tp @s 1007 24 1005
+execute as @a[gamemode=spectator] unless entity @s[x=1001,y=7,z=1001,dx=30,dy=30,dz=62] run spectate
+execute as @a[gamemode=spectator] unless entity @s[x=1001,y=7,z=1001,dx=30,dy=30,dz=62] run tp @s 1008.5 8.00 1008.5