2
0
Эх сурвалжийг харах

修复 TNT Run 层数显示不重置的 Bug

LTCatt 6 жил өмнө
parent
commit
fccc730d32

+ 1 - 1
data/item/loot_tables/gameparty/last/green.json

@@ -2,7 +2,7 @@
 
 {
     "type": "minecraft:item",
-    "weight": 2,
+    "weight": 3,
     "name": "minecraft:nether_star",
     "functions": [
         {

+ 2 - 2
data/item/loot_tables/gameparty/normal/green.json

@@ -2,7 +2,7 @@
 
 {
     "type": "minecraft:item",
-    "weight": 15,
+    "weight": 16,
     "name": "minecraft:nether_star",
     "functions": [
         {
@@ -17,7 +17,7 @@
 },
 {
     "type": "minecraft:item",
-    "weight": 5,
+    "weight": 4,
     "name": "minecraft:emerald",
     "functions": [
         {

+ 2 - 1
data/ltw/functions/main/player_enter.mcfunction

@@ -26,4 +26,5 @@ function lib:bossbar/show
 # FIXME: [010] 在 init 的时候也重置随机数组
 # FIXME: [010] 已确认确实可以用钓鱼竿获得两个奖励
 # FIXME: [HIM] 在色彩迷阵中丢出地板方块,物品会一直跟着你
-# FIXME: [HIM] 在色彩迷阵中按 F 把地板方块拿到副手就不会被清理
+# FIXME: [HIM] 在色彩迷阵中按 F 把地板方块拿到副手就不会被清理
+# FIXME: [HIM] 色彩迷阵可能会一直卡在天上不会下来,endless 也复现了所以确实有这个 Bug

+ 1 - 1
data/ltw/functions/main/player_enter_watcher.mcfunction

@@ -19,4 +19,4 @@ execute if score $state mem matches 4 run function ltw:state/4/player_enter
 execute if score $state mem matches 5 run function ltw:state/5/player_enter
 execute if score $state mem matches 6 run function ltw:state/6/player_enter
 execute if score $state mem matches 7 run function ltw:state/7/player_enter
-tag @s remove rejoining
+tag @s remove rejoining

+ 0 - 3
data/mini/functions/tntrun/player_enter.mcfunction

@@ -9,9 +9,6 @@ effect give @s saturation 1000000 0 true
 gamerule naturalRegeneration true
 effect give @s resistance 1000000 4 true
 
-# 计分板
-scoreboard players reset @s layer
-
 # 设置玩家生命
 attribute @s generic.max_health base set 20
 

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

@@ -3,4 +3,3 @@ function mini:main/player_failed
 
 # 玩家死亡
 tag @s remove tntrun_pc
-scoreboard players reset @s layer

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

@@ -11,6 +11,7 @@ execute as @a[tag=mini_running] at @s if block ~ ~-1 ~ magma_block run function
 execute as @a[tag=mini_running] at @s if block ~ ~-2 ~ magma_block run function mini:tntrun/player_failed
 
 # 显示层数
+scoreboard players reset * layer
 execute as @a[tag=mini_running] at @s if entity @s[y=35,dy=10] run scoreboard players set @s layer 4
 execute as @a[tag=mini_running] at @s if entity @s[y=30,dy=3] run scoreboard players set @s layer 3
 execute as @a[tag=mini_running] at @s if entity @s[y=25,dy=3] run scoreboard players set @s layer 2