Jelajahi Sumber

增加阴间音效(?

LTCatt 6 tahun lalu
induk
melakukan
a204913aca

+ 1 - 1
data/mini/functions/hotpm/damage_event.mcfunction

@@ -1,5 +1,5 @@
 # 检测造成伤害者是否有土豆,有就转移
-execute if entity @s[tag=hpm_holding] run function mini:hotpm/potato_transfer
+execute if entity @s[tag=pm_hoding] run function mini:hotpm/potato_transfer
 
 # 清理tag
 tag @a remove pm_damage_dealt

+ 2 - 1
data/mini/functions/hotpm/game_init.mcfunction

@@ -1,6 +1,7 @@
-# 初始化 TNT Run 地图
+# 初始化热土豆地图
 forceload add 1000 3000 1100 3100
 
+# TODO : 在生成地图后干掉所有结构方块,要不然有框
 # 生成地图
 
 #   111

+ 4 - 4
data/mini/functions/hotpm/pm_get.mcfunction

@@ -1,8 +1,8 @@
 #as holder
 #加tag
-tag @s add hpm_holding
+tag @s add pm_hoding
 
 #效果
-effect give @s glowing 1000000
-effect give @s speed 1000000 1
-effect give @s jump_boost 1000000 1
+effect give @s glowing 1000000 0 true
+effect give @s speed 1000000 1 true
+effect give @s jump_boost 1000000 2 true

+ 2 - 2
data/mini/functions/hotpm/pm_init.mcfunction

@@ -1,11 +1,11 @@
 #清理残余tag
-tag @a[tag=hpm_holding] remove hpm_holding
+tag @a[tag=pm_hoding] remove pm_hoding
 
 #刷新土豆
 execute as @r[tag=mini_running] run function mini:hotpm/pm_get
 
 #告知玩家
-tellraw @a [{"text":">> ","color":"gold","bold": true},{"selector":"@a[tag=hpm_holding]","color":"yellow","bold":false},{"text":" 获得了土豆!","color":"white","bold":false}]
+tellraw @a [{"text":">> ","color":"gold","bold": true},{"selector":"@a[tag=pm_hoding]","color":"yellow","bold":false},{"text":" 获得了土豆!","color":"white","bold":false}]
 
 #初始土豆计分(土豆爆炸时间)
 scoreboard players set $countdown mem 30

+ 4 - 4
data/mini/functions/hotpm/pm_lost.mcfunction

@@ -1,8 +1,8 @@
 #as holder
 #加tag
-tag @s remove hpm_holding
+tag @s remove pm_hoding
 
 #效果
-effect clear @s
-effect give @s speed 2 1
-effect give @s jump_boost 2 1
+effect clear @s glowing
+effect give @s speed 2 1 true
+effect give @s jump_boost 2 1 true

+ 8 - 5
data/mini/functions/hotpm/tick20.mcfunction

@@ -1,5 +1,8 @@
-#土豆倒计时
-execute if score $countdown mem matches 1.. run scoreboard players remove $countdown mem 1
-execute if score $countdown mem matches 1.. run title @a actionbar [{"text":"土豆爆炸: ","color":"red"},{"score": { "name": "$countdown","objective": "mem"},"color":"gold"}]
-#爆炸
-execute if score $countdown mem matches 0 as @a[tag=hpm_holding] run function mini:hotpm/pm_boom
+# 土豆倒计时
+execute if score $countdown mem matches 1.. run title @a actionbar [{"text":"土豆爆炸: ","color":"red","bold": true},{"score": { "name": "$countdown","objective": "mem"}}]
+
+# 给持有者播放音效
+playsound minecraft:entity.creeper.primed player @a[tag=pm_hoding]
+
+# 爆炸
+execute if score $countdown mem matches 0 as @a[tag=pm_hoding] run function mini:hotpm/pm_boom