Jelajahi Sumber

修改僵尸(?)游戏的坐标

LTCatt 6 tahun lalu
induk
melakukan
85501cf8d6

+ 4 - 0
data/mini/functions/colormatch/game_init.mcfunction

@@ -18,6 +18,10 @@ scoreboard players set $color_match_type mem 0
 function mini:colormatch/game/prepare_round
 function mini:colormatch/game/prepare_round
 schedule function mini:colormatch/game_init2 18t replace
 schedule function mini:colormatch/game_init2 18t replace
 
 
+# 清理残余实体
+kill @e[type=arrow]
+kill @e[type=item]
+
 # 伤害管理
 # 伤害管理
 team modify player friendlyFire true
 team modify player friendlyFire true
 team modify player collisionRule always
 team modify player collisionRule always

+ 4 - 0
data/mini/functions/hotpm/game_init.mcfunction

@@ -8,6 +8,10 @@ team modify player friendlyFire true
 team modify player collisionRule always
 team modify player collisionRule always
 gamerule fallDamage false
 gamerule fallDamage false
 
 
+# 清理残余实体
+kill @e[type=arrow]
+kill @e[type=item]
+
 # 生成地图
 # 生成地图
 
 
 #   111
 #   111

+ 4 - 0
data/mini/functions/parkour/game_init.mcfunction

@@ -7,6 +7,10 @@ scoreboard players set $finish_mode mem 1
 setblock 1000 10 1000 minecraft:structure_block{mode:"LOAD",name:"mini:parkour"}
 setblock 1000 10 1000 minecraft:structure_block{mode:"LOAD",name:"mini:parkour"}
 setblock 1000 11 1000 minecraft:redstone_block
 setblock 1000 11 1000 minecraft:redstone_block
 
 
+# 清理残余实体
+kill @e[type=arrow]
+kill @e[type=item]
+
 # 伤害管理
 # 伤害管理
 team modify player friendlyFire true
 team modify player friendlyFire true
 team modify player collisionRule never
 team modify player collisionRule never

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

@@ -8,8 +8,9 @@ setblock 1000 10 2000 minecraft:structure_block{mode:"LOAD",name:"mini:tntrun"}
 setblock 1000 11 2000 minecraft:redstone_block
 setblock 1000 11 2000 minecraft:redstone_block
 
 
 # 清理残余实体
 # 清理残余实体
-kill @e[tag=tntrun_block]
+kill @e[type=arrow]
 kill @e[type=item]
 kill @e[type=item]
+kill @e[tag=tntrun_block]
 
 
 # 生成奖励
 # 生成奖励
 execute positioned 1011.5 15.5 2011.5 run function item:bonus_item/rank/green
 execute positioned 1011.5 15.5 2011.5 run function item:bonus_item/rank/green

+ 4 - 5
data/mini/functions/zombie/game/summon_creeper.mcfunction

@@ -4,11 +4,10 @@ scoreboard players set $random_min mem 0
 scoreboard players set $random_max mem 4
 scoreboard players set $random_max mem 4
 function lib:random
 function lib:random
 
 
-execute if score $random mem matches 0 positioned 1019.0 20.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon creeper
-execute if score $random mem matches 1 positioned 1002.0 19.1 5016.0 unless entity @e[tag=mini_mob,distance=..1] run summon creeper
-execute if score $random mem matches 2 positioned 1019.0 13.1 5013.0 unless entity @e[tag=mini_mob,distance=..1] run summon creeper
-execute if score $random mem matches 3 positioned 1002.0 13.1 5024.0 unless entity @e[tag=mini_mob,distance=..1] run summon creeper
-execute if score $random mem matches 4 positioned 1002.0 13.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon creeper
+execute if score $random mem matches 0 positioned 1017.0 21.0 5004.0 unless entity @e[tag=mini_mob,distance=..1] run summon creeper
+execute if score $random mem matches 1 positioned 1004.0 21.0 5019.0 unless entity @e[tag=mini_mob,distance=..1] run summon creeper
+execute if score $random mem matches 2 positioned 1002.0 13.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon creeper
+execute if score $random mem matches 3 positioned 1019.0 13.1 5024.0 unless entity @e[tag=mini_mob,distance=..1] run summon creeper
 tag @e[type=creeper] add mini_mob
 tag @e[type=creeper] add mini_mob
 
 
 # 提高追踪范围
 # 提高追踪范围

+ 4 - 5
data/mini/functions/zombie/game/summon_evoker.mcfunction

@@ -4,11 +4,10 @@ scoreboard players set $random_min mem 0
 scoreboard players set $random_max mem 4
 scoreboard players set $random_max mem 4
 function lib:random
 function lib:random
 
 
-execute if score $random mem matches 0 positioned 1019.0 20.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon evoker
-execute if score $random mem matches 1 positioned 1002.0 19.1 5016.0 unless entity @e[tag=mini_mob,distance=..1] run summon evoker
-execute if score $random mem matches 2 positioned 1019.0 13.1 5013.0 unless entity @e[tag=mini_mob,distance=..1] run summon evoker
-execute if score $random mem matches 3 positioned 1002.0 13.1 5024.0 unless entity @e[tag=mini_mob,distance=..1] run summon evoker
-execute if score $random mem matches 4 positioned 1002.0 13.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon evoker
+execute if score $random mem matches 0 positioned 1017.0 21.0 5004.0 unless entity @e[tag=mini_mob,distance=..1] run summon evoker
+execute if score $random mem matches 1 positioned 1004.0 21.0 5019.0 unless entity @e[tag=mini_mob,distance=..1] run summon evoker
+execute if score $random mem matches 2 positioned 1002.0 13.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon evoker
+execute if score $random mem matches 3 positioned 1019.0 13.1 5024.0 unless entity @e[tag=mini_mob,distance=..1] run summon evoker
 tag @e[type=evoker] add mini_mob
 tag @e[type=evoker] add mini_mob
 
 
 # 提高追踪范围
 # 提高追踪范围

+ 4 - 5
data/mini/functions/zombie/game/summon_piglin.mcfunction

@@ -3,11 +3,10 @@ scoreboard players set $random_min mem 0
 scoreboard players set $random_max mem 4
 scoreboard players set $random_max mem 4
 function lib:random
 function lib:random
 
 
-execute if score $random mem matches 0 positioned 1019.0 20.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon minecraft:piglin ~ ~ ~ {IsImmuneToZombification:1b}
-execute if score $random mem matches 1 positioned 1002.0 19.1 5016.0 unless entity @e[tag=mini_mob,distance=..1] run summon minecraft:piglin ~ ~ ~ {IsImmuneToZombification:1b}
-execute if score $random mem matches 2 positioned 1019.0 13.1 5013.0 unless entity @e[tag=mini_mob,distance=..1] run summon minecraft:piglin ~ ~ ~ {IsImmuneToZombification:1b}
-execute if score $random mem matches 3 positioned 1002.0 13.1 5024.0 unless entity @e[tag=mini_mob,distance=..1] run summon minecraft:piglin ~ ~ ~ {IsImmuneToZombification:1b}
-execute if score $random mem matches 4 positioned 1002.0 13.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon minecraft:piglin ~ ~ ~ {IsImmuneToZombification:1b}
+execute if score $random mem matches 0 positioned 1017.0 21.0 5004.0 unless entity @e[tag=mini_mob,distance=..1] run summon piglin ~ ~ ~ {IsImmuneToZombification:1b}
+execute if score $random mem matches 1 positioned 1004.0 21.0 5019.0 unless entity @e[tag=mini_mob,distance=..1] run summon piglin ~ ~ ~ {IsImmuneToZombification:1b}
+execute if score $random mem matches 2 positioned 1002.0 13.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon piglin ~ ~ ~ {IsImmuneToZombification:1b}
+execute if score $random mem matches 3 positioned 1019.0 13.1 5024.0 unless entity @e[tag=mini_mob,distance=..1] run summon piglin ~ ~ ~ {IsImmuneToZombification:1b}
 tag @e[type=piglin] add mini_mob
 tag @e[type=piglin] add mini_mob
 
 
 # 提高追踪范围
 # 提高追踪范围

+ 4 - 5
data/mini/functions/zombie/game/summon_skeleton.mcfunction

@@ -4,11 +4,10 @@ scoreboard players set $random_min mem 0
 scoreboard players set $random_max mem 4
 scoreboard players set $random_max mem 4
 function lib:random
 function lib:random
 
 
-execute if score $random mem matches 0 positioned 1019.0 20.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
-execute if score $random mem matches 1 positioned 1002.0 19.1 5016.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
-execute if score $random mem matches 2 positioned 1019.0 13.1 5013.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
-execute if score $random mem matches 3 positioned 1002.0 13.1 5024.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
-execute if score $random mem matches 4 positioned 1002.0 13.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
+execute if score $random mem matches 0 positioned 1017.0 21.0 5004.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
+execute if score $random mem matches 1 positioned 1004.0 21.0 5019.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
+execute if score $random mem matches 2 positioned 1002.0 13.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
+execute if score $random mem matches 3 positioned 1019.0 13.1 5024.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
 tag @e[type=skeleton] add mini_mob
 tag @e[type=skeleton] add mini_mob
 
 
 # 提高追踪范围
 # 提高追踪范围

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

@@ -9,6 +9,7 @@ setblock 1000 11 5000 minecraft:redstone_block
 
 
 # 清理残余实体
 # 清理残余实体
 kill @e[type=arrow]
 kill @e[type=arrow]
+kill @e[type=item]
 tp @e[tag=mini_mob] ~ -100 ~
 tp @e[tag=mini_mob] ~ -100 ~
 tp @e[type=vex] ~ -100 ~
 tp @e[type=vex] ~ -100 ~
 
 

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

@@ -1,3 +1,3 @@
 # 向单个玩家展示小游戏介绍
 # 向单个玩家展示小游戏介绍
 tp @s 1010.5 20 5006.0 0 25
 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这个小游戏还在测试中, 欢迎告诉我们让它变得更好玩的方法!\n"}]

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

@@ -1,5 +1,4 @@
-# 随机召唤僵尸
-effect clear @a hunger
+# 随机召唤怪物
 
 
 # 生成随机数
 # 生成随机数
 scoreboard players set $random_min mem 0
 scoreboard players set $random_min mem 0
@@ -7,13 +6,14 @@ scoreboard players set $random_max mem 100
 function lib:random
 function lib:random
 
 
 # 清理恼鬼
 # 清理恼鬼
-execute if score $random mem matches 40.. run tp @e[type=vex,limit=1,sort=random] ~ -100 ~
+execute if score $random mem matches 50.. run tp @e[type=vex,limit=1,sort=random] ~ -100 ~
 
 
 # 赋予随机效果
 # 赋予随机效果
 effect give @e[type=!player,type=!piglin,limit=1,sort=random] speed 1 1
 effect give @e[type=!player,type=!piglin,limit=1,sort=random] speed 1 1
-effect give @e[type=!player,type=!piglin,limit=1,sort=random] speed 4
+effect give @e[type=!player,type=!piglin,limit=1,sort=random] speed 4 0
 effect give @e[type=piglin,limit=1,sort=random] slowness 3 0
 effect give @e[type=piglin,limit=1,sort=random] slowness 3 0
 effect give @e[type=piglin,limit=1,sort=random] slowness 3 1
 effect give @e[type=piglin,limit=1,sort=random] slowness 3 1
+effect give @e[type=!player,limit=2,sort=random] resistance 3 1
 
 
 # 召唤怪物
 # 召唤怪物
 execute if score $countdown mem matches 61..120 if score $random mem matches 0..10 run function mini:zombie/game/summon_piglin
 execute if score $countdown mem matches 61..120 if score $random mem matches 0..10 run function mini:zombie/game/summon_piglin