-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
gamemode survival @a | ||
execute as @a run function trials:game/equip_shield | ||
|
||
# remove all efects | ||
effect clear @a | ||
effect give @a minecraft:regeneration 1 255 true | ||
effect give @a minecraft:saturation 1 255 true | ||
|
||
# execute as @e[tag=trials_marker] at @s run spreadplayers ~ ~ 30 50 true @a | ||
execute as @e[tag=trials_red, sort=furthest, limit=1] at @s run tp @a[team=red ] ~ ~1 ~ | ||
execute as @e[tag=trials_red, sort=furthest, limit=1] at @s run spawnpoint @a[team=red ] ~ ~ ~ | ||
|
||
execute as @e[tag=trials_blue, sort=furthest, limit=1] at @s run tp @a[team=blue] ~ ~1 ~ | ||
execute as @e[tag=trials_blue, sort=furthest, limit=1] at @s run spawnpoint @a[team=blue] ~ ~ ~ | ||
|
||
# no teams | ||
execute as @e[tag=trials_neutral] run tag @s remove trials_neutral | ||
execute as @e[tag=trials_spawn, sort=random, limit=1] run tag @s add trials_neutral | ||
execute as @e[tag=trials_neutral ] at @s run tp @a[team=neutral ] ~ ~1 ~ | ||
execute as @e[tag=trials_neutral ] at @s run spawnpoint @a[team=neutral ] ~ ~ ~ | ||
|
||
# Start Effect | ||
# execute as @e[tag=trials_spawn] at @s run playsound minecraft:block.bell.use master @a ~ ~ ~ | ||
execute as @e[tag=trials_spawn] at @s run playsound minecraft:block.note_block.pling master @a ~ ~ ~ 1 2 | ||
execute as @e[tag=trials_spawn] at @s run particle minecraft:explosion_emitter ~ ~1 ~ | ||
|
||
# Music | ||
execute as @e at @s if score enable_music trials matches 1 run playsound minecraft:music_disc.precipice record @s ~ ~ ~ 300 1 1 | ||
|
||
# Set Timer | ||
scoreboard players operation time_left trials = round_length trials | ||
scoreboard players set game_running trials 1 | ||
bossbar set minecraft:trial_timer visible true | ||
bossbar set minecraft:trial_timer players @a |