-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
9 changed files
with
40 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
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
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
3 changes: 3 additions & 0 deletions
3
datapacks/Scaffolding Rush/data/scaffolding_rush/functions/game/music/__main__.mcfunction
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,3 @@ | ||
|
||
scoreboard players remove #game.music.timer timer 1 | ||
execute if score #game.music.timer timer matches ..-1 run function scaffolding_rush:game/music/next |
7 changes: 7 additions & 0 deletions
7
datapacks/Scaffolding Rush/data/scaffolding_rush/functions/game/music/__start__.mcfunction
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,7 @@ | ||
|
||
# Take a random music depending of if it's a normal or hardcore mode | ||
execute if score Preset options matches 1..2 store result score #game.music.current data run random value 1..3 | ||
execute if score Preset options matches 3..4 store result score #game.music.current data run random value 4..5 | ||
execute if score Preset options matches 5..7 store result score #game.music.current data run random value 1..3 | ||
|
||
function scaffolding_rush:game/music/next |
2 changes: 2 additions & 0 deletions
2
datapacks/Scaffolding Rush/data/scaffolding_rush/functions/game/music/__stop__.mcfunction
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,2 @@ | ||
|
||
stopsound @a music |
23 changes: 23 additions & 0 deletions
23
datapacks/Scaffolding Rush/data/scaffolding_rush/functions/game/music/next.mcfunction
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,23 @@ | ||
|
||
stopsound @a music | ||
scoreboard players add #game.music.current data 1 | ||
|
||
# Looping over classical musics | ||
execute if score #game.music.current data matches 4 run scoreboard players set #game.music.current data 1 | ||
# Looping over hardcore musics | ||
execute if score #game.music.current data matches 6 run scoreboard players set #game.music.current data 4 | ||
|
||
execute if score #game.music.current data matches 1 run scoreboard players set #game.music.timer timer 4780 | ||
execute if score #game.music.current data matches 1 as @a at @s run playsound blazing_scaffolding:classic_theme_1 music @s ~ ~ ~ 0.5 1 0 | ||
|
||
execute if score #game.music.current data matches 2 run scoreboard players set #game.music.timer timer 3200 | ||
execute if score #game.music.current data matches 2 as @a at @s run playsound blazing_scaffolding:classic_theme_2 music @s ~ ~ ~ 0.5 1 0 | ||
|
||
execute if score #game.music.current data matches 3 run scoreboard players set #game.music.timer timer 3100 | ||
execute if score #game.music.current data matches 3 as @a at @s run playsound blazing_scaffolding:classic_theme_3 music @s ~ ~ ~ 0.5 1 0 | ||
|
||
execute if score #game.music.current data matches 4 run scoreboard players set #game.music.timer timer 1900 | ||
execute if score #game.music.current data matches 4 as @a at @s run playsound blazing_scaffolding:hardcore_theme_1 music @s ~ ~ ~ 0.5 1 0 | ||
|
||
execute if score #game.music.current data matches 5 run scoreboard players set #game.music.timer timer 2380 | ||
execute if score #game.music.current data matches 5 as @a at @s run playsound blazing_scaffolding:hardcore_theme_2 music @s ~ ~ ~ 0.5 1 0 |
Binary file not shown.