From 2af6a18ae6ccf97a8bd853afd4d16f120531c7ab Mon Sep 17 00:00:00 2001 From: RednedEpic Date: Fri, 12 Jul 2024 21:01:21 -0500 Subject: [PATCH] Add scoreboards --- src/main/resources/arenas/spleef.yml | 11 +++++++++++ templates/bowspleef.yml | 11 +++++++++++ templates/classic.yml | 11 +++++++++++ templates/decay.yml | 11 +++++++++++ templates/splegg.yml | 11 +++++++++++ 5 files changed, 55 insertions(+) diff --git a/src/main/resources/arenas/spleef.yml b/src/main/resources/arenas/spleef.yml index 590f0f1..05301f5 100644 --- a/src/main/resources/arenas/spleef.yml +++ b/src/main/resources/arenas/spleef.yml @@ -5,6 +5,8 @@ team-options: team-size: 1 team-amount: 2+ team-selection: none +modules: + - scoreboards lives: enabled: false victory-conditions: @@ -29,6 +31,7 @@ events: on-leave: - clear-effects - restore{types=all} + - remove-scoreboard on-death: - clear-inventory - respawn @@ -50,6 +53,11 @@ phases: waiting: allow-join: true next-phase: countdown + events: + on-start: + - apply-scoreboard{scoreboard=waiting} + on-join: + - apply-scoreboard{scoreboard=waiting} countdown: allow-join: false allow-spectate: true @@ -59,6 +67,7 @@ phases: events: on-start: - paste-layers + - apply-scoreboard{scoreboard=countdown} on-complete: - teleport{location=team_spawn} - play-sound{sound=block.note_block.pling;pitch=2;volume=1} @@ -72,6 +81,7 @@ phases: on-start: - change-gamemode{gamemode=survival} - give-shovel{shovel=classic} + - apply-scoreboard{scoreboard=ingame-list-alive} victory: allow-join: false allow-spectate: false @@ -80,6 +90,7 @@ phases: events: on-complete: - leave + - remove-scoreboard on-victory: - send-message{message=Congrats, you won!} - play-sound{sound=entity.player.levelup;pitch=1;volume=1} diff --git a/templates/bowspleef.yml b/templates/bowspleef.yml index adf01c2..d989654 100644 --- a/templates/bowspleef.yml +++ b/templates/bowspleef.yml @@ -6,6 +6,8 @@ team-options: team-size: 1 team-amount: 2+ team-selection: none +modules: + - scoreboards lives: enabled: false victory-conditions: @@ -30,6 +32,7 @@ events: on-leave: - clear-effects - restore{types=all} + - remove-scoreboard on-death: - clear-inventory - respawn @@ -51,6 +54,11 @@ phases: waiting: allow-join: true next-phase: countdown + events: + on-start: + - apply-scoreboard{scoreboard=waiting} + on-join: + - apply-scoreboard{scoreboard=waiting} countdown: allow-join: false allow-spectate: true @@ -60,6 +68,7 @@ phases: events: on-start: - paste-layers + - apply-scoreboard{scoreboard=countdown} on-complete: - teleport{location=team_spawn} - play-sound{sound=block.note_block.pling;pitch=2;volume=1} @@ -74,6 +83,7 @@ phases: - give-shovel{shovel=bow} - give-item{item=arrow} - change-gamemode{gamemode=survival} + - apply-scoreboard{scoreboard=ingame-list-alive} victory: allow-join: false allow-spectate: false @@ -82,6 +92,7 @@ phases: events: on-complete: - leave + - remove-scoreboard on-victory: - send-message{message=Congrats, you won!} - play-sound{sound=entity.player.levelup;pitch=1;volume=1} diff --git a/templates/classic.yml b/templates/classic.yml index 590f0f1..05301f5 100644 --- a/templates/classic.yml +++ b/templates/classic.yml @@ -5,6 +5,8 @@ team-options: team-size: 1 team-amount: 2+ team-selection: none +modules: + - scoreboards lives: enabled: false victory-conditions: @@ -29,6 +31,7 @@ events: on-leave: - clear-effects - restore{types=all} + - remove-scoreboard on-death: - clear-inventory - respawn @@ -50,6 +53,11 @@ phases: waiting: allow-join: true next-phase: countdown + events: + on-start: + - apply-scoreboard{scoreboard=waiting} + on-join: + - apply-scoreboard{scoreboard=waiting} countdown: allow-join: false allow-spectate: true @@ -59,6 +67,7 @@ phases: events: on-start: - paste-layers + - apply-scoreboard{scoreboard=countdown} on-complete: - teleport{location=team_spawn} - play-sound{sound=block.note_block.pling;pitch=2;volume=1} @@ -72,6 +81,7 @@ phases: on-start: - change-gamemode{gamemode=survival} - give-shovel{shovel=classic} + - apply-scoreboard{scoreboard=ingame-list-alive} victory: allow-join: false allow-spectate: false @@ -80,6 +90,7 @@ phases: events: on-complete: - leave + - remove-scoreboard on-victory: - send-message{message=Congrats, you won!} - play-sound{sound=entity.player.levelup;pitch=1;volume=1} diff --git a/templates/decay.yml b/templates/decay.yml index 2a03cc6..f9e79c5 100644 --- a/templates/decay.yml +++ b/templates/decay.yml @@ -6,6 +6,8 @@ team-options: team-size: 1 team-amount: 2+ team-selection: none +modules: + - scoreboards lives: enabled: false victory-conditions: @@ -30,6 +32,7 @@ events: on-leave: - clear-effects - restore{types=all} + - remove-scoreboard on-death: - clear-inventory - respawn @@ -51,6 +54,11 @@ phases: waiting: allow-join: true next-phase: countdown + events: + on-start: + - apply-scoreboard{scoreboard=waiting} + on-join: + - apply-scoreboard{scoreboard=waiting} countdown: allow-join: false allow-spectate: true @@ -60,6 +68,7 @@ phases: events: on-start: - paste-layers + - apply-scoreboard{scoreboard=countdown} on-complete: - teleport{location=team_spawn} - play-sound{sound=block.note_block.pling;pitch=2;volume=1} @@ -72,6 +81,7 @@ phases: events: on-start: - change-gamemode{gamemode=survival} + - apply-scoreboard{scoreboard=ingame-list-alive} victory: allow-join: false allow-spectate: false @@ -80,6 +90,7 @@ phases: events: on-complete: - leave + - remove-scoreboard on-victory: - send-message{message=Congrats, you won!} - play-sound{sound=entity.player.levelup;pitch=1;volume=1} diff --git a/templates/splegg.yml b/templates/splegg.yml index 83e2d53..5cd864f 100644 --- a/templates/splegg.yml +++ b/templates/splegg.yml @@ -6,6 +6,8 @@ team-options: team-size: 1+ team-amount: 2 team-selection: none +modules: + - scoreboards lives: enabled: false victory-conditions: @@ -30,6 +32,7 @@ events: on-leave: - clear-effects - restore{types=all} + - remove-scoreboard on-death: - clear-inventory - respawn @@ -51,6 +54,11 @@ phases: waiting: allow-join: true next-phase: countdown + events: + on-start: + - apply-scoreboard{scoreboard=waiting} + on-join: + - apply-scoreboard{scoreboard=waiting} countdown: allow-join: false allow-spectate: true @@ -60,6 +68,7 @@ phases: events: on-start: - paste-layers + - apply-scoreboard{scoreboard=countdown} on-complete: - teleport{location=team_spawn} - play-sound{sound=block.note_block.pling;pitch=2;volume=1} @@ -73,6 +82,7 @@ phases: on-start: - change-gamemode{gamemode=survival} - give-shovel{shovel=egg-cannon} + - apply-scoreboard{scoreboard=ingame-list-alive} victory: allow-join: false allow-spectate: false @@ -81,6 +91,7 @@ phases: events: on-complete: - leave + - remove-scoreboard on-victory: - send-message{message=Congrats, you won!} - play-sound{sound=entity.player.levelup;pitch=1;volume=1}