Răsfoiți Sursa

老板分裂修复

HerobrineXia 6 ani în urmă
părinte
comite
16f949043e

+ 3 - 0
data/ltw/functions/state/0/state_enter.mcfunction

@@ -18,6 +18,9 @@ team modify player friendlyFire false
 team modify player collisionRule never
 gamerule fallDamage false
 
+# 加载老板
+function ltw:state/0/summon_entity
+
 # 清理加载区域
 forceload remove all
 

+ 4 - 0
data/ltw/functions/state/0/check_entity.mcfunction → data/ltw/functions/state/0/summon_entity.mcfunction

@@ -1,3 +1,7 @@
+# 干掉老板
+kill @e[type=piglin,tag=lobby_entity]
+
+# 召唤老板
 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]}
 execute unless entity @e[type=piglin,tag=shop_piglin_2,tag=lobby_entity] run summon piglin 0 22 -60 {Tags:["lobby_entity","shop_piglin_2"],PersistenceRequired:1b,IsImmuneToZombification:1b,CannotHunt:1b,HandItems:[{id:"music_disc_pigstep",Count:1b},{}],HandDropChances:[0.0f,0.0f]}
 execute unless entity @e[type=piglin,tag=shop_piglin_3,tag=lobby_entity] run summon piglin 1 8 -37 {Tags:["lobby_entity","shop_piglin_3"],PersistenceRequired:1b,IsImmuneToZombification:1b,CannotHunt:1b,HandItems:[{id:"golden_shovel",Count:1b},{}],HandDropChances:[0.0f,0.0f]}

+ 0 - 3
data/ltw/functions/state/0/tick20.mcfunction

@@ -9,6 +9,3 @@ scoreboard players remove #time mem 1
 execute if score $countdown mem matches 1.. run title @a subtitle {"score":{"name":"#time","objective":"mem"}}
 execute if score $countdown mem matches 1.. run title @a title [""]
 execute if score $countdown mem matches 1..10 run execute as @a at @s run function lib:sounds/hit2
-
-# 检测主大厅实体是否存在
-function ltw:state/0/check_entity

+ 1 - 1
data/mini/functions/hotpm/game/damage_taken.mcfunction

@@ -1,2 +1,2 @@
 # 添加受伤 Tag
-tag @s add pm_damage_taken
+tag @s add pm_damage_taken