Selaa lähdekoodia

修复地图生成

LTCatt 5 vuotta sitten
vanhempi
sitoutus
e455fc5363

+ 3 - 3
data/ltw/functions/main/player_enter.mcfunction

@@ -22,11 +22,11 @@ bossbar set ltw:notice players @a
 function lib:bossbar/show
 
 # TODO: https://shimo.im/docs/8dQtWhYp8rJhRRWG
-# FIXME: [010] 已确认确实可以用钓鱼竿获得两个奖励
+# FIXME: <! 重要> [010] 已确认确实可以用钓鱼竿获得两个奖励
 # TODO: [LTCat/HIM] 土豆的两个炸弹同时爆炸把两个人炸死,让他们俩并列第三(按存活回合数记分)
 # FIXME: 旁观者在一轮开始时会被切换为冒险模式又切回去,这会造成游戏模式变更提示,鬼知道为啥
-# FIXME: [010] 如果有人没领取奖励,可以一直站在上面,在奖励领取阶段结束时再拿到一次
+# FIXME: <! 重要> [010] 如果有人没领取奖励,可以一直站在上面,在奖励领取阶段结束时再拿到一次
 # FIXME: 准备倒计时与 Tooltip 降低不一致
 # FIXME: [LTCat] 初尝胜果 成就的判断似乎存在 Bug
 # FIXME: 修复 钻石风暴 spreadplayers 无效
-# FIXME: [HIM] 修复死亡判定可能失效
+# FIXME: <! 重要> [HIM] 修复死亡判定可能失效

+ 1 - 18
data/mini/functions/diamond/game_init2.mcfunction

@@ -1,21 +1,4 @@
 
 # 矿物生成
 setblock 1028 252 5030 minecraft:redstone_block
-
-# 地牢 1 生成
-scoreboard players set $random_max mem 4
-scoreboard players set $random_min mem 1
-function lib:random
-execute if score $random mem matches 1 run setblock 1028 254 5030 redstone_block
-execute if score $random mem matches 2 run setblock 1028 254 5029 redstone_block
-execute if score $random mem matches 3 run setblock 1028 254 5028 redstone_block
-execute if score $random mem matches 4 run setblock 1028 254 5027 redstone_block
-
-# 地牢 2 生成
-scoreboard players set $random_max mem 4
-scoreboard players set $random_min mem 1
-function lib:random
-execute if score $random mem matches 1 run setblock 1027 254 5030 redstone_block
-execute if score $random mem matches 2 run setblock 1027 254 5029 redstone_block
-execute if score $random mem matches 3 run setblock 1027 254 5028 redstone_block
-execute if score $random mem matches 4 run setblock 1027 254 5027 redstone_block
+schedule function mini:diamond/game_init3 4t

+ 20 - 0
data/mini/functions/diamond/game_init3.mcfunction

@@ -0,0 +1,20 @@
+
+# 地牢 1 生成
+scoreboard players set $random_max mem 4
+scoreboard players set $random_min mem 1
+function lib:random
+execute if score $random mem matches 1 run setblock 1028 254 5030 redstone_block
+execute if score $random mem matches 2 run setblock 1028 254 5029 redstone_block
+execute if score $random mem matches 3 run setblock 1028 254 5028 redstone_block
+execute if score $random mem matches 4 run setblock 1028 254 5027 redstone_block
+
+# 地牢 2 生成
+scoreboard players set $random_max mem 4
+scoreboard players set $random_min mem 1
+function lib:random
+execute if score $random mem matches 1 run setblock 1027 254 5030 redstone_block
+execute if score $random mem matches 2 run setblock 1027 254 5029 redstone_block
+execute if score $random mem matches 3 run setblock 1027 254 5028 redstone_block
+execute if score $random mem matches 4 run setblock 1027 254 5027 redstone_block
+
+schedule function mini:diamond/game_init4 1t

+ 3 - 0
data/mini/functions/diamond/game_init4.mcfunction

@@ -0,0 +1,3 @@
+
+# 清理区域
+fill 1025 254 5031 1029 251 5026 air

+ 2 - 0
data/mini/functions/diamond/player_intro.mcfunction

@@ -1,5 +1,7 @@
 # 向单个玩家展示小游戏介绍
 tp @s[team=!debugging] 1013.47 247.63 5045.62 -178.86 17.18
+worldborder set 999999
+effect give @s[team=!debugging] night_vision 1000000 0 true
 tellraw @s ["",{"text":"\n >> 钻石风暴 >>\n\n","color":"gold","bold":true}," 制作铁镐, 挖取钻石, 然后保住自己的小命!\n 不过, 或许也可以去地牢碰碰运气……\n"]
 tellraw @s ["",{"text": " <积分制> ","color":"red","bold": true}, {"text":"太阳落山时游戏即会结束, 然后根据持有的钻石数排名。","color":"gray"}]
 tellraw @s ["",{"text": " <PVP> ","color":"light_purple","bold": true}, {"text":"死亡会掉落一半物品, 被击杀后能立即复活。","color":"gray"}]