Browse Source

额外的检查

龙腾猫跃 3 năm trước cách đây
mục cha
commit
ce73d5c0e9

+ 2 - 1
.gitignore

@@ -1,4 +1,5 @@
 .vscode
 *.code-workspace
 *.py
-*.pyc
+*.pyc
+~$*

+ 0 - 1
data/.gitignore

@@ -1 +0,0 @@
-~$*

+ 5 - 2
data/ltw/functions/clock/tick1.mcfunction

@@ -1,5 +1,8 @@
 # 每 1 Tick 执行一次
 
-# 调用其他模块
-execute if score $state mem matches 5 run function ltw:state/5/tick1
+# 检查系统重置情况
+scoreboard objectives add mem dummy "全局变量"
+execute unless score #10 mem matches 10 run function ltw:init
 
+# 调用其他模块
+execute if score $state mem matches 5 run function ltw:state/5/tick1

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

@@ -1,3 +1,3 @@
 # 观察者限制飞行范围
-execute as @a[gamemode=spectator] unless entity @s[x=1004.5,y=8,z=7005.5,dx=23,dy=14,dz=23] run spectate
-execute as @a[gamemode=spectator] unless entity @s[x=1004.5,y=8,z=7005.5,dx=23,dy=14,dz=23] run tp @s[team=!debugging] 1012.33 12.13 7006.82 -28.40 23.85
+execute as @a[gamemode=spectator] unless entity @s[x=1004.5,y=9,z=7005.5,dx=23,dy=13,dz=23] run spectate
+execute as @a[gamemode=spectator] unless entity @s[x=1004.5,y=9,z=7005.5,dx=23,dy=13,dz=23] run tp @s[team=!debugging] 1012.33 12.13 7006.82 -28.40 23.85

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

@@ -1,3 +1,3 @@
 # 观察者限制飞行范围
-execute as @a[gamemode=spectator,team=!debugging] unless entity @s[x=1001.5,y=6,z=3001.5,dx=29,dy=11,dz=27] run spectate
-execute as @a[gamemode=spectator,team=!debugging] unless entity @s[x=1001.5,y=6,z=3001.5,dx=29,dy=11,dz=27] run tp @s 1026.52 12.76 3005.59 47.21 22.60
+execute as @a[gamemode=spectator,team=!debugging] unless entity @s[x=1001.5,y=8,z=3001.5,dx=29,dy=9,dz=27] run spectate
+execute as @a[gamemode=spectator,team=!debugging] unless entity @s[x=1001.5,y=8,z=3001.5,dx=29,dy=9,dz=27] run tp @s 1026.52 12.76 3005.59 47.21 22.60

+ 1 - 0
data/mini/functions/main/tick1.mcfunction

@@ -1,3 +1,4 @@
+function mini:main/watcher_limit
 execute if score $mini_type mem matches 2 run function mini:tntrun/tick1
 execute if score $mini_type mem matches 3 run function mini:hotpm/tick1
 execute if score $mini_type mem matches 4 run function mini:colormatch/tick1

+ 0 - 1
data/mini/functions/main/tick2.mcfunction

@@ -1,4 +1,3 @@
-function mini:main/watcher_limit
 execute if score $mini_type mem matches 1 run function mini:parkour/tick2
 execute if score $mini_type mem matches 2 run function mini:tntrun/tick2
 execute if score $mini_type mem matches 3 run function mini:hotpm/tick2