Skip to content

Commit

Permalink
Add scoreboards
Browse files Browse the repository at this point in the history
  • Loading branch information
Redned235 committed Jul 13, 2024
1 parent e95a04c commit 2af6a18
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/resources/arenas/spleef.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ team-options:
team-size: 1
team-amount: 2+
team-selection: none
modules:
- scoreboards
lives:
enabled: false
victory-conditions:
Expand All @@ -29,6 +31,7 @@ events:
on-leave:
- clear-effects
- restore{types=all}
- remove-scoreboard
on-death:
- clear-inventory
- respawn
Expand All @@ -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
Expand All @@ -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}
Expand All @@ -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
Expand All @@ -80,6 +90,7 @@ phases:
events:
on-complete:
- leave
- remove-scoreboard
on-victory:
- send-message{message=<green>Congrats, you won!</green>}
- play-sound{sound=entity.player.levelup;pitch=1;volume=1}
Expand Down
11 changes: 11 additions & 0 deletions templates/bowspleef.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ team-options:
team-size: 1
team-amount: 2+
team-selection: none
modules:
- scoreboards
lives:
enabled: false
victory-conditions:
Expand All @@ -30,6 +32,7 @@ events:
on-leave:
- clear-effects
- restore{types=all}
- remove-scoreboard
on-death:
- clear-inventory
- respawn
Expand All @@ -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
Expand All @@ -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}
Expand All @@ -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
Expand All @@ -82,6 +92,7 @@ phases:
events:
on-complete:
- leave
- remove-scoreboard
on-victory:
- send-message{message=<green>Congrats, you won!</green>}
- play-sound{sound=entity.player.levelup;pitch=1;volume=1}
Expand Down
11 changes: 11 additions & 0 deletions templates/classic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ team-options:
team-size: 1
team-amount: 2+
team-selection: none
modules:
- scoreboards
lives:
enabled: false
victory-conditions:
Expand All @@ -29,6 +31,7 @@ events:
on-leave:
- clear-effects
- restore{types=all}
- remove-scoreboard
on-death:
- clear-inventory
- respawn
Expand All @@ -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
Expand All @@ -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}
Expand All @@ -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
Expand All @@ -80,6 +90,7 @@ phases:
events:
on-complete:
- leave
- remove-scoreboard
on-victory:
- send-message{message=<green>Congrats, you won!</green>}
- play-sound{sound=entity.player.levelup;pitch=1;volume=1}
Expand Down
11 changes: 11 additions & 0 deletions templates/decay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ team-options:
team-size: 1
team-amount: 2+
team-selection: none
modules:
- scoreboards
lives:
enabled: false
victory-conditions:
Expand All @@ -30,6 +32,7 @@ events:
on-leave:
- clear-effects
- restore{types=all}
- remove-scoreboard
on-death:
- clear-inventory
- respawn
Expand All @@ -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
Expand All @@ -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}
Expand All @@ -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
Expand All @@ -80,6 +90,7 @@ phases:
events:
on-complete:
- leave
- remove-scoreboard
on-victory:
- send-message{message=<green>Congrats, you won!</green>}
- play-sound{sound=entity.player.levelup;pitch=1;volume=1}
Expand Down
11 changes: 11 additions & 0 deletions templates/splegg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ team-options:
team-size: 1+
team-amount: 2
team-selection: none
modules:
- scoreboards
lives:
enabled: false
victory-conditions:
Expand All @@ -30,6 +32,7 @@ events:
on-leave:
- clear-effects
- restore{types=all}
- remove-scoreboard
on-death:
- clear-inventory
- respawn
Expand All @@ -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
Expand All @@ -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}
Expand All @@ -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
Expand All @@ -81,6 +91,7 @@ phases:
events:
on-complete:
- leave
- remove-scoreboard
on-victory:
- send-message{message=<green>Congrats, you won!</green>}
- play-sound{sound=entity.player.levelup;pitch=1;volume=1}
Expand Down

0 comments on commit 2af6a18

Please sign in to comment.