Skip to content

Commit 6d85458

Browse files
committed
一些修改
1 parent 4854ccf commit 6d85458

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+69
-15
lines changed

data/command_storage_minecraft.dat

-647 Bytes
Binary file not shown.

data/raids.dat

0 Bytes
Binary file not shown.

data/scoreboard.dat

-33 Bytes
Binary file not shown.

datapacks/map_all/data/minecraft/function/battle/ranpotion.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
##
55
kill @e[type=armor_stand,tag=battle.ranpotion]
66
summon armor_stand 157 36 -340 {Tags:["battle.ranpotion"],CustomName:["药水"],CustomNameVisible:1b,Invulnerable:1b,NoAI:1b,Silent:1b,NoGravity:1b,Invisible:true,NoBasePlate:true,DisabledSlots:2039583}
7-
summon armor_stand 131 36 -340 {Tags:["battle.ranpotion"],CustomName:["药水"],CustomNameVisible:1b,Invulnerable:1b,NoAI:1b,Silent:1b,NoGravity:1b,Invisible:true,NoBasePlate:true,DisabledSlots:2039583}
7+
summon armor_stand 131 36 -340 {Tags:["battle.ranpotion"],CustomName:["药水"],CustomNameVisible:1b,Invulnerable:1b,Silent:1b,NoGravity:1b,Invisible:true,NoBasePlate:true,DisabledSlots:2039583}
88
execute as @e[tag=battle.ranpotion] at @s run function battle/entitygetranpotion
99

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
playsound ui.button.click player @s ~ ~ ~ 1 1 1
2+
## 检测是否禁止设置
3+
scoreboard players set tmp.canset board 0
4+
execute store result score tmp.canset board run function admin/setting/canset
5+
execute if score tmp.canset board matches 0 run tellraw @s ["§c游戏仅管理员可以设定游戏选项。\n§7如果您是管理员,您可以在大厅设置中切换模式。"]
6+
execute if score tmp.canset board matches 0 run playsound block.anvil.land player @s ~ ~ ~ 1 1 0
7+
execute if score tmp.canset board matches 0 run return 0
8+
9+
scoreboard players add build_parkour.time state 1
10+
execute if score build_parkour.time state matches 5.. run scoreboard players set build_parkour.time state 0
11+
12+
execute if score build_parkour.time state matches 0 run data modify block ~ ~ ~ front_text.messages[2] set value {text:"[ 自动 ]",color:white}
13+
execute if score build_parkour.time state matches 1 run data modify block ~ ~ ~ front_text.messages[2] set value {text:"[ 1min ]",color:green}
14+
execute if score build_parkour.time state matches 2 run data modify block ~ ~ ~ front_text.messages[2] set value {text:"[ 2min ]",color:green}
15+
execute if score build_parkour.time state matches 3 run data modify block ~ ~ ~ front_text.messages[2] set value {text:"[ 3min ]",color:aqua}
16+
execute if score build_parkour.time state matches 4 run data modify block ~ ~ ~ front_text.messages[2] set value {text:"[ 4min ]",color:aqua}

datapacks/map_game_3rd/data/minecraft/function/build_parkour/start.mcfunction

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,19 @@ tellraw @a[team=build_parkour] ["\n§6 游戏将在§e3§6秒后开始! ","
1010
schedule clear minecraft:build_parkour/summon
1111
# schedule function minecraft:build_parkour/summon 5s replace
1212
tag @a remove build_parkour.nokiller
13-
tag @a[team=build_parkour,gamemode=adventure] add build_parkour.nokiller
13+
14+
scoreboard players set wait.player tick 0
15+
execute as @a[team=build_parkour,gamemode=adventure] run scoreboard players add wait.player tick 1
16+
1417
tag @a remove build_parkour.builder
1518

19+
execute if score total.start_game_mode board matches 1 if score wait.player tick matches 6.. run tellraw @a[team=build_parkour] ["\n\u00a7c由于人数过多,故只有部分玩家能够建造跑酷。"]
20+
execute if score total.start_game_mode board matches 1 run tag @a[team=build_parkour,gamemode=adventure,limit=5,sort=random] add build_parkour.nokiller
21+
execute if score total.start_game_mode board matches 1 if score wait.player tick matches 6.. run tellraw @a[team=build_parkour] ["\u00a7c他们是:",{selector:"@a[tag=build_parkour.nokiller]"},"\n"]
22+
23+
execute unless score total.start_game_mode board matches 1 run tag @a[team=build_parkour,gamemode=adventure] add build_parkour.nokiller
24+
25+
1626
tellraw @a[team=build_parkour] ["\n\u00a7a\u00a7l 你建我跑\n\u00a76\u00a7l 游戏规则\n\u00a7b 建造一个你能通过但其他人无法通过的跑酷!\n"]
1727
scoreboard players set build_parkour.state state 2
1828
function minecraft:build_parkour/next_round

datapacks/map_game_3rd/data/minecraft/function/build_parkour/summon.mcfunction

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ tellraw @a [{text:""}]
1111

1212
scoreboard players set build_parkour.time board 241
1313

14+
# build_parkour.time state
15+
1416
scoreboard players set build_parkour.player tick 0
1517
execute as @a[team=build_parkour,tag=!GLOBAL.SPEC] run scoreboard players add build_parkour.player tick 1
1618
execute if score build_parkour.player tick matches 6.. run scoreboard players set build_parkour.time board 121
1719
execute if score build_parkour.player tick matches 12.. run scoreboard players set build_parkour.time board 91
1820
execute if score build_parkour.player tick matches 18.. run scoreboard players set build_parkour.time board 61
1921

22+
execute if score build_parkour.time state matches 1 run scoreboard players set build_parkour.time board 61
23+
execute if score build_parkour.time state matches 2 run scoreboard players set build_parkour.time board 121
24+
execute if score build_parkour.time state matches 3 run scoreboard players set build_parkour.time board 181
25+
execute if score build_parkour.time state matches 4 run scoreboard players set build_parkour.time board 241
26+
2027
scoreboard players set build_parkour.state state 3

datapacks/map_main/data/minecraft/function/lobby/rejoin.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ execute if score bw.state state matches 1.. if score @s globle.game = bw globle.
99
execute if score zombie.state state matches 1.. if score @s globle.game = zombie globle.game run function zombieever/rejoin
1010
execute if score gametotal state matches 1.. if score @s globle.game = game.total globle.game run function small_games/total/rejoin
1111

12-
execute if entity @a[tag=merchant.alive] if score @s globle.game = game.merchant globle.game run function merchant/rejoin
12+
execute if score desk.state state matches 1.. if score desk.type board matches 3 if entity @a[tag=merchant.alive] if score @s globle.game = game.merchant globle.game run function merchant/rejoin
1313

1414
execute if score twolf.state state matches 1.. as @s[team=wolfpeople] run function twolf/rejoin
1515
execute if score twolf.state state matches 1.. as @s[team=wait.wolfpeople] run function twolf/rejoin

datapacks/small_games/data/minecraft/function/merchant/over/all.mcfunction

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ scoreboard players set desk.state state 100
22
gamemode spectator @a[team=deskgame,gamemode=adventure]
33
schedule function minecraft:merchant/over/tp 5s replace
44
tellraw @a[team=deskgame] ["\u00a7e游戏结束。你将在\u00a7c5s\u00a7e后传送。"]
5+
execute as @e[tag=merchant.npc,type=armor_stand] run function minecraft:merchant/player/action/npc/die
6+
57
tag @a remove merchant.player
68
tag @a remove merchant.alive
79
tag @a remove merchant.win
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
##
2-
## Datapack Upgrader v1.0.2 by wifi_left
3-
## If you encounter a problem, make an issue on https://github.com/wifi-left/Datapack-Upgrader
4-
##
51
scoreboard players set park.tmp board 0
62
execute store result score park.tmp.x board run data get entity @s Pos[0]
73
execute store result score park.tmp.y board run data get entity @s Pos[1]
84
execute store result score park.tmp.z board run data get entity @s Pos[2]
9-
##
10-
## Datapack Upgrader v1.0.2 by wifi_left
11-
## If you encounter a problem, make an issue on https://github.com/wifi-left/Datapack-Upgrader
12-
##
5+
136
execute store result storage minecraft:temp tp_pos.x int 1 run scoreboard players get @s park.x
147
execute store result storage minecraft:temp tp_pos.y int 1 run scoreboard players get @s park.y
158
execute store result storage minecraft:temp tp_pos.z int 1 run scoreboard players get @s park.z
@@ -22,4 +15,4 @@ execute if score park.tmp board matches 0 in lobby run function utils:tp with st
2215
# playsound ui.button.click player @s ~ ~ ~ 1 1 1
2316
execute at @s run playsound ui.button.click player @s ~ ~ ~ 10 1 1
2417

25-
18+
function minecraft:merchant/player/action/kill_my_npc

0 commit comments

Comments
 (0)