|
|
@@ -1,6 +1,9 @@
|
|
|
# 每 2 Tick 执行一次
|
|
|
schedule function ltw:clock/tick2 2t replace
|
|
|
|
|
|
+# 死亡检测
|
|
|
+execute as @a[x=-29,y=39,z=-78,distance=..3] at @s run function ltw:main/player_death
|
|
|
+
|
|
|
# 调用其他模块
|
|
|
execute if score $state mem matches 0 run function ltw:state/0/tick2
|
|
|
# execute if score $state mem matches 3 run function ltw:state/3/tick2
|
|
|
@@ -12,11 +15,8 @@ execute if score $state mem matches 0 run function ltw:state/0/tick2
|
|
|
# 物品模块必须最后调用,以清理弹出的临时物品
|
|
|
function item:tick2
|
|
|
|
|
|
-# TODO: 未完成的重构
|
|
|
|
|
|
-# # 死亡触发
|
|
|
-# execute as @a[x=-12,y=7,z=-102,distance=..5] at @s run function ltw:main/player_death
|
|
|
-# execute as @a[x=-12,y=7,z=-102,distance=..5] run tp @s -13 9 -42
|
|
|
+# TODO: 未完成的重构
|
|
|
|
|
|
# # 特殊方块给予效果
|
|
|
# function lib:effect/floating
|