-
Notifications
You must be signed in to change notification settings - Fork 2
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
58 additions
and
4 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
6 changes: 6 additions & 0 deletions
6
nnb_main/data/nnb_main/functions/__private__/if_else/0.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,6 @@ | ||
scoreboard players add tick nn_lobbymusic 1 | ||
execute if score tick nn_lobbymusic => max nn_lobbymusic run scoreboard players add track_number 1 | ||
scoreboard players set __found_case__ __variable__ 0 | ||
execute store result storage nnb_main:__storage__ switch_key int 1 run scoreboard players get track_number nn_lobbymusic | ||
function nnb_main:__private__/switch_case/0/select with storage nnb_main:__storage__ | ||
execute unless score __found_case__ __variable__ matches 1 run function nnb_main:__private__/switch_case/0/default |
3 changes: 3 additions & 0 deletions
3
nnb_main/data/nnb_main/functions/__private__/switch_case/0/1.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 set max nn_lobbymusic 2180 | ||
execute at @e[tag=lobby_music] run playsound vibecraft:bee_lobby master @a[distance=..1000.0] ~ ~ ~ 0.2 1 | ||
scoreboard players set __found_case__ __variable__ 1 |
3 changes: 3 additions & 0 deletions
3
nnb_main/data/nnb_main/functions/__private__/switch_case/0/2.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 set max nn_lobbymusic 3000 | ||
execute at @e[tag=lobby_music] run playsound vibecraft:delta_lobby master @a[distance=..1000.0] ~ ~ ~ 0.2 1 | ||
scoreboard players set __found_case__ __variable__ 1 |
2 changes: 2 additions & 0 deletions
2
nnb_main/data/nnb_main/functions/__private__/switch_case/0/default.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 @@ | ||
scoreboard players set track_number nn_lobbymusic 0 | ||
scoreboard players set max nn_lobbymusic 10 |
1 change: 1 addition & 0 deletions
1
nnb_main/data/nnb_main/functions/__private__/switch_case/0/select.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 @@ | ||
$function nnb_main:__private__/switch_case/0/$(switch_key) |
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 @@ | ||
execute if score phase nn_lobby matches 1 run function nnb_main:__private__/if_else/0 |
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 @@ | ||
function nnb_main:lobby_music |
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