Sfoglia il codice sorgente

加快猪灵游戏节奏

LTCatt 6 anni fa
parent
commit
bdeb4d1451

+ 1 - 1
data/item/functions/special/enchanted_apple.mcfunction

@@ -8,7 +8,7 @@ execute if score $state mem matches 5 if score @s mini_heart matches 1.. run tel
 
 # 归还苹果
 execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run tellraw @s ["",{"text": ">> ","color":"aqua","bold": true},{"text":"你只能在存在生命计数的小游戏中食用生命果!","color":"aqua"}]
-execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run give @s minecraft:enchanted_golden_apple{display:{Name:'{"text":"附魔生命果","italic":0}',Lore:['{"text":"小游戏中生命值加倍","italic":0,"color":"gray"}']},bonus_new:0b,bonus_return:1b,is_bonus:1b,item_name:'{"text":"附魔生命果","color":"aqua"}'}
+execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run give @s minecraft:enchanted_golden_apple{display:{Name:'{"text":"附魔生命果","italic":false}',Lore:['{"text":"小游戏中生命值加倍","italic":false,"color":"gray"}']},bonus_new:0b,bonus_return:1b,is_bonus:1b,item_name:'{"text":"附魔生命果","color":"aqua"}'}
 
 # 检测小游戏是否去除特殊效果
 execute if score $state mem matches 5 if score $mini_type mem matches 5 run scoreboard players set $t_remove_resistance mem 1 

+ 1 - 1
data/item/functions/special/golden_apple.mcfunction

@@ -8,7 +8,7 @@ execute if score $state mem matches 5 if score @s mini_heart matches 1.. run tel
 
 # 归还苹果
 execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run tellraw @s ["",{"text": ">> ","color":"aqua","bold": true},{"text":"你只能在存在生命计数的小游戏中食用生命果!","color":"aqua"}]
-execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run give @s minecraft:golden_apple{display:{Name:'{"text":"生命果","italic":0}',Lore:['{"text":"小游戏中生命值 +1","italic":0,"color":"gray"}']},bonus_new:0b,bonus_return:1b,is_bonus:1b,item_name:'{"text":"生命果","color":"white"}'}
+execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run give @s minecraft:golden_apple{display:{Name:'{"text":"生命果","italic":false}',Lore:['{"text":"小游戏中生命值 +1","italic":false,"color":"gray"}']},bonus_new:0b,bonus_return:1b,is_bonus:1b,item_name:'{"text":"生命果","color":"white"}'}
 
 # 检测小游戏是否去除特殊效果
 execute if score $state mem matches 5 if score $mini_type mem matches 5 run scoreboard players set $t_remove_resistance mem 1 

+ 0 - 1
data/mini/functions/zombie/game_init.mcfunction

@@ -11,7 +11,6 @@ setblock 1000 11 5000 minecraft:redstone_block
 kill @e[type=arrow]
 kill @e[type=item]
 tp @e[tag=mini_mob] ~ -100 ~
-tp @e[type=vex] ~ -100 ~
 
 # 伤害管理
 team modify player friendlyFire false

+ 0 - 1
data/mini/functions/zombie/game_start.mcfunction

@@ -3,7 +3,6 @@
 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 180

+ 1 - 1
data/mini/functions/zombie/player_intro.mcfunction

@@ -1,3 +1,3 @@
 # 向单个玩家展示小游戏介绍
 tp @s 1010.5 20 5006.0 0 25
-tellraw @s ["",{"text":"\n>> 猪海寻路(测试) >>\n\n","color":"red","bold":true},{"text": "猪灵正在不断地涌现……成为最后的幸存者吧!\n这个小游戏还在测试中, 欢迎告诉我们让它变得更好玩的方法!\n"}]
+tellraw @s ["",{"text":"\n>> 猪海寻路 >>\n\n","color":"red","bold":true},{"text": "猪灵正在不断地涌现……成为最后的幸存者吧!\n"}]

+ 16 - 16
data/mini/functions/zombie/tick20.mcfunction

@@ -6,25 +6,25 @@ scoreboard players set $random_max mem 100
 function lib:random
 
 # 赋予缓慢效果
-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 ..30 run effect give @e[tag=mini_mob,limit=1,sort=random] speed 2 1
+execute if score $countdown mem matches ..105 run effect give @e[tag=mini_mob,limit=1,sort=random] speed 2 0
+execute if score $countdown mem matches 131..180 run effect give @e[tag=mini_mob,limit=3,sort=random] slowness 2 0
+execute if score $countdown mem matches 156..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 $countdown mem matches 155 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "补给物资已经送达!","color":"aqua"}]
+execute if score $countdown mem matches 130 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "猪灵开始摆脱缓慢的束缚了!","color":"red"}]
+execute if score $countdown mem matches 105 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "补给物资已经送达!","color":"aqua"}]
+execute if score $countdown mem matches 80 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "猪灵开始取回他们的装备了!","color":"red"}]
+execute if score $countdown mem matches 80 run scoreboard players set $random mem 1
+execute if score $countdown mem matches 55 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "补给物资已经送达!","color":"aqua"}]
 
 # 召唤猪灵
-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 $random mem matches ..10 if score $countdown mem matches 81.. run function mini:zombie/game/summon_empty
+execute if score $random mem matches ..20 if score $countdown mem matches ..80 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 ..80 unless entity @e[tag=empty_pig] run function mini:zombie/game/summon_equip
 
 # 生成奖励
-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
+execute if score $countdown mem matches 155 run execute positioned 1015.5 11.0 5022.0 run function item:bonus_item/rank/white
+execute if score $countdown mem matches 105 run execute positioned 1005.5 11.0 5004.0 run function item:bonus_item/rank/white
+execute if score $countdown mem matches 55 run execute positioned 1015.5 11.0 5022.0 run function item:bonus_item/rank/white