Просмотр исходного кода

玩家再也听不到杀猪的声音了

HerobrineXia 6 лет назад
Родитель
Сommit
2ab8516316

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

@@ -19,6 +19,4 @@ execute if entity @s[tag=!watcher] unless score @s game_id = $ game_id run funct
 # 如果不是旁观且局号正确:游戏中掉线
 execute if entity @s[tag=!watcher] if score @s game_id = $ game_id run function ltw:main/player_enter_rejoin
 
-# FIXME: [HIM] 旁观者可能会有一个灰色染料一直 tp 他
-# FIXME: 游戏结束时 kill 老板会有猪叫
 # FIXME: 不再允许偷到 -1 分

+ 1 - 1
data/ltw/functions/state/0/summon_entity.mcfunction

@@ -1,5 +1,5 @@
 # 干掉老板
-kill @e[type=piglin,tag=lobby_entity]
+tp @e[type=piglin,tag=lobby_entity] ~ -9999 ~
 
 # 召唤老板
 execute unless entity @e[type=piglin,tag=shop_piglin_1,tag=lobby_entity] run summon piglin 0 22 -60 {Tags:["lobby_entity","shop_piglin_1"],PersistenceRequired:1b,IsImmuneToZombification:1b,CannotHunt:1b,HandItems:[{id:"firework_rocket",Count:1b},{}],HandDropChances:[0.0f,0.0f]}