00ll00 6 lat temu
rodzic
commit
6d5cd7a30d

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

@@ -35,4 +35,5 @@ setblock 1000 5 3022 minecraft:redstone_block
 setblock 1000 4 2999 minecraft:structure_block[mode=load]{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,seed:0L,author:"?",rotation:"NONE",posX:0,mode:"LOAD",posY:1,sizeX:23,posZ:0,integrity:1.0f,showair:0b,name:"mini:hotpm000",sizeY:24,sizeZ:23,showboundingbox:0b}
 setblock 1000 5 2999 minecraft:redstone_block
 
-# 清理残余实体
+# 生成土豆
+function mini:hotpm/pm_init

+ 1 - 0
data/mini/functions/hotpm/pm_boom.mcfunction

@@ -1,4 +1,5 @@
 #玩家失败
+function mini:hotpm/pm_lost
 function mini:hotpm/player_failed
 
 #选新土豆

+ 8 - 0
data/mini/functions/hotpm/pm_get.mcfunction

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

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

@@ -2,7 +2,7 @@
 tag @a[tag=hpm_holding] remove hpm_holding
 
 #刷新土豆
-execute as @r[tag=mini_running] run function mini:hotpm/pm_init_
+execute as @r[tag=mini_running] run function mini:hotpm/pm_get
 
 #初始土豆计分(土豆爆炸时间)
 scoreboard players set $hotpm_timer mem 30

+ 0 - 5
data/mini/functions/hotpm/pm_init_.mcfunction

@@ -1,5 +0,0 @@
-#as holder
-#加tag
-tag @s add hpm_holding
-
-#玩家高亮写这里(吧

+ 8 - 0
data/mini/functions/hotpm/pm_lost.mcfunction

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

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

@@ -1,5 +1,5 @@
 #土豆倒计时
 scoreboard players remove $hotpm_timer mem 1
-title @a subtitle {"score": { "name": "$hotpm_timer","objective": "mem"}}
+title @a actionbar [{"text":"土豆倒计时:"},{"score": { "name": "$hotpm_timer","objective": "mem"},"color":"gold"}]
 #爆炸
 execute if score $hotpm_timer mem matches ..0 as @a[tag=hpm_holding] run function mini:hotpm/pm_boom