Bläddra i källkod

僵尸游戏会生成奖励了

LTCatt 6 år sedan
förälder
incheckning
d9f187219f

+ 3 - 1
data/mini/functions/tntrun/player_intro.mcfunction

@@ -1,3 +1,5 @@
 # 向单个玩家展示小游戏介绍
 tp @s 1011.5 18.0 2019.0 180 15
-tellraw @s [{"text":"\n>> TNT Run >>\n\n","color":"red","bold":true},{"text": "你脚下的方块会不断塌陷, 所以, 不要停下来啊!\n场地一共有三层, 掉到最下面则为失败!\n","color":"white","bold": false}]
+tellraw @s [{"text":"\n>> TNT Run >>\n\n","color":"red","bold":true},{"text": "你脚下的方块会不断塌陷, 所以, 不要停下来啊!\n场地一共有三层, 掉到最下面则为失败!\n","color":"white","bold": false}]
+
+# FIXME : ColorMatch 封顶

+ 5 - 5
data/mini/functions/zombie/game_start.mcfunction

@@ -1,9 +1,9 @@
 # 游戏开始时先召唤几只
 
-function mini:zombie/game/summon_piglin
-function mini:zombie/game/summon_piglin
-function mini:zombie/game/summon_piglin
-function mini:zombie/game/summon_piglin
+function mini:zombie/game/summon_empty
+function mini:zombie/game/summon_empty
+function mini:zombie/game/summon_empty
+function mini:zombie/game/summon_empty
 
 # 怪物刷新倒计时
-scoreboard players set $countdown mem 120
+scoreboard players set $countdown mem 180

+ 19 - 8
data/mini/functions/zombie/tick20.mcfunction

@@ -6,14 +6,25 @@ scoreboard players set $random_max mem 100
 function lib:random
 
 # 赋予缓慢效果
-execute if score $countdown mem matches 61.. run effect give @e[tag=mini_mob,limit=3,sort=random] slowness 2 0
-execute if score $countdown mem matches 91.. run effect give @e[tag=mini_mob,limit=1,sort=random] slowness 2 1
+execute if score $countdown mem matches 0 run effect give @e[tag=mini_mob,limit=1,sort=random] speed 2 1
+execute if score $countdown mem matches ..90 run effect give @e[tag=mini_mob,limit=1,sort=random] speed 2 0
+execute if score $countdown mem matches 121..180 run effect give @e[tag=mini_mob,limit=3,sort=random] slowness 2 0
+execute if score $countdown mem matches 151..180 run effect give @e[tag=mini_mob,limit=1,sort=random] slowness 2 1
+
+# 显示提示
+execute if score $countdown mem matches 150 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "补给物资已经送达!","color":"aqua"}]
+execute if score $countdown mem matches 120 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "猪灵开始摆脱缓慢的束缚了!","color":"red"}]
+execute if score $countdown mem matches 90 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "补给物资已经送达!","color":"aqua"}]
+execute if score $countdown mem matches 60 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "猪灵开始取回他们的装备了!","color":"red"}]
+execute if score $countdown mem matches 60 run scoreboard players set $random mem 1
+execute if score $countdown mem matches 30 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "补给物资已经送达!","color":"aqua"}]
 
 # 召唤猪灵
-execute if score $random mem matches 1..9 if score $countdown mem matches 1.. run function mini:zombie/game/summon_empty
-execute if score $random mem matches 1..15 if score $countdown mem matches ..0 as @e[tag=empty_pig,limit=1,sort=random] run function mini:zombie/game/give_equip
-execute if score $random mem matches 1..9 if score $countdown mem matches ..0 unless entity @e[tag=empty_pig] run function mini:zombie/game/summon_equip
+execute if score $random mem matches ..10 if score $countdown mem matches 61.. run function mini:zombie/game/summon_empty
+execute if score $random mem matches ..20 if score $countdown mem matches ..60 as @e[tag=empty_pig,limit=1,sort=random] run function mini:zombie/game/give_equip
+execute if score $random mem matches ..10 if score $countdown mem matches ..60 unless entity @e[tag=empty_pig] run function mini:zombie/game/summon_equip
 
-# 显示提示
-execute if score $countdown mem matches 60 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "猪灵摆脱了缓慢的束缚!","color":"red"}]
-execute if score $countdown mem matches 0 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "猪灵取回了他们的装备!","color":"red"}]
+# 生成奖励
+execute if score $countdown mem matches 150 run execute positioned 1015.5 11.0 5022.0 run function item:bonus_item/rank/white
+execute if score $countdown mem matches 90 run execute positioned 1005.5 11.0 5004.0 run function item:bonus_item/rank/white
+execute if score $countdown mem matches 30 run execute positioned 1015.5 11.0 5022.0 run function item:bonus_item/rank/white