Browse Source

热土豆坐标有了

LTCatt 6 years ago
parent
commit
2e60dc425b

+ 1 - 1
data/ltw/functions/state/7/player_enter.mcfunction

@@ -8,5 +8,5 @@ effect give @s saturation 1000000 0 true
 effect give @s instant_health 10 0 true
 effect give @s night_vision 1000000 0 true
 
-# UNDONE
+# UNDONE : 继续阶段 7
 gamemode creative

+ 1 - 1
data/ltw/functions/state/7/state_enter.mcfunction

@@ -2,4 +2,4 @@
 scoreboard players set $state mem 7
 execute as @a run function ltw:state/7/player_enter
 
-# UNDONE
+# UNDONE : 继续阶段 7

+ 4 - 1
data/mini/functions/hotpm/player_enter.mcfunction

@@ -12,4 +12,7 @@ effect give @s resistance 1000000 4 true
 # 关闭伤害
 gamerule fallDamage false
 
-# UNDONE : 传送玩家
+# 传送玩家
+spreadplayers 1023 3021 5 5 false @s
+schedule function mini:hotpm/player_enter2 1t replace
+# schedule: tp @a ~ 25 ~

+ 2 - 0
data/mini/functions/hotpm/player_enter2.mcfunction

@@ -0,0 +1,2 @@
+# spreadplayer 后不能立即传送,所以延迟 1tick
+tp @a ~ 25 ~

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

@@ -1,3 +1,3 @@
 # 向单个玩家展示小游戏介绍
-# UNDONE : 传送玩家到适合查看地图的位置
+tp @s 1022 29 3038 180 0
 tellraw @s [{"text":"\n>> 热土豆 >>\n\n","color":"red","bold":true},{"text": "有一个人会被土豆附身, 攻击他人就能将土豆转移到其他人上!\n在土豆爆炸之前努力生存吧!\n","color":"white","bold": false}]

+ 2 - 2
data/mini/functions/hotpm/spectator_range.mcfunction

@@ -1,3 +1,3 @@
 # 观察者限制飞行范围
-# execute as @a[gamemode=spectator] unless entity @s[x=1000,y=10,z=2000,dx=22,dz=22,dy=22] run tp @s 1011.5 27.5 2011.5
-# UNDONE : 确定范围
+execute as @a[gamemode=spectator,x=1022,y=27,z=3022,distance=22..] run spectate
+tp @a[gamemode=spectator,x=1022,y=27,z=3022,distance=22..] 1022 29 3038 180 0

+ 1 - 0
data/mini/functions/parkour/spectator_range.mcfunction

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

+ 1 - 0
data/mini/functions/tntrun/spectator_range.mcfunction

@@ -1,2 +1,3 @@
 # 观察者限制飞行范围
+execute as @a[gamemode=spectator] unless entity @s[x=1000,y=10,z=2000,dx=22,dz=22,dy=22] run spectate
 execute as @a[gamemode=spectator] unless entity @s[x=1000,y=10,z=2000,dx=22,dz=22,dy=22] run tp @s 1011.5 27.5 2011.5