Explorar el Código

调整物品概率

LTCatt hace 6 años
padre
commit
e8ee80707a

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

@@ -2,7 +2,7 @@
 
 {
     "type": "minecraft:item",
-    "weight": 9,
+    "weight": 11,
     "name": "minecraft:nether_star",
     "functions": [
         {
@@ -17,7 +17,7 @@
 },
 {
     "type": "minecraft:item",
-    "weight": 5,
+    "weight": 3,
     "name": "minecraft:ender_eye",
     "functions": [
         {

+ 2 - 0
data/ltw/functions/init.mcfunction

@@ -30,6 +30,8 @@ setblock 0 0 0 jukebox
 # 记分板
 scoreboard objectives remove temp
 scoreboard objectives add temp dummy
+scoreboard objectives remove temp2
+scoreboard objectives add temp2 dummy
 scoreboard objectives remove countdown
 scoreboard objectives add countdown dummy "倒计时"
 scoreboard objectives remove countdown_fast

+ 3 - 0
data/ltw/functions/main/player_enter_watcher.mcfunction

@@ -20,3 +20,6 @@ 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
+
+# 显示倒计时
+scoreboard players set @s temp 0