-
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.
(0.14.43) /trigger do2.trigger.enable_coop
- Loading branch information
1 parent
0a6bb9f
commit 612d8de
Showing
10 changed files
with
42 additions
and
26 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
21 changes: 21 additions & 0 deletions
21
...e Datapack/data/do2/functions/external/tracked_out/check_for_start_of_practice.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,21 @@ | ||
# Code needed to delay this function. | ||
execute unless entity @s[tag=do2.practice_room_checking2] as @a[tag=do2.practice_room_checking] run tag @s add do2.practice_room_checking2 | ||
execute unless entity @s[tag=do2.practice_room_checking2] as @a[tag=do2.practice_room_checking] run function do2:external/tracked_out/check_for_start_of_practice | ||
tag @a remove do2.practice_room_checking | ||
execute unless entity @a[tag=do2.practice_room_checking2] run return 0 | ||
tag @a remove do2.practice_room_checking2 | ||
|
||
# do2.utility.runType | ||
# 0 = unknown | ||
# 1 = practice | ||
# 2 = comp | ||
|
||
execute unless score @p[tag=do2.received_shulker] do2.utility.runType matches 1 run return 0 | ||
execute unless score $dungeon do2.run.active matches 0 run return 0 | ||
|
||
scoreboard players enable @s do2.trigger.settings | ||
scoreboard players enable @s do2.trigger.enable_coop | ||
|
||
# Lock setting's room | ||
scoreboard players set $dungeon do2.utility.lockConfigRoom 2 | ||
function do2:scoreboard/config/config_lock_inverse |
20 changes: 0 additions & 20 deletions
20
...Datapack/data/do2/functions/external/tracked_out/check_if_setting_room_trigger.mcfunction
This file was deleted.
Oops, something went wrong.
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
8 changes: 8 additions & 0 deletions
8
Brilliance Datapack/data/do2/functions/scoreboard/triggers/t_enable_coop.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,8 @@ | ||
scoreboard players set @s do2.trigger.enable_coop 0 | ||
|
||
execute unless score @p[tag=do2.received_shulker] do2.utility.runType matches 1 run return 0 | ||
execute unless score $dungeon do2.run.active matches 0 run return 0 | ||
|
||
tellraw @s ["§r§l§aENABLED §r§oCO-OP§r!\nHave your partner join via the spectate NPC in the lobby."] | ||
function do2:external/agronet/game_start | ||
|
2 changes: 1 addition & 1 deletion
2
Brilliance Datapack/data/do2/functions/scoreboard/triggers/t_playsound.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
execute if score @s do2.trigger.playsound matches 103 run function do2:vanilla_compatability/audio/interface/enable | ||
execute if score @s do2.trigger.playsound matches 102 run function do2:vanilla_compatability/audio/interface/disable | ||
execute if score @s do2.trigger.playsound matches 101 run function do2:vanilla_compatability/audio/interface/config_menu | ||
execute if score @s do2.trigger.playsound matches 1 run function do2:vanilla_compatability/audio/interface/config_menu | ||
execute unless score @s do2.trigger.playsound matches 0 unless score @s do2.trigger.playsound matches 101..103 run function do2:vanilla_compatability/audio/interface/config_menu | ||
|
||
scoreboard players set @s do2.trigger.playsound 0 | ||
scoreboard players enable @s do2.trigger.playsound |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# DATAPACK VERSION NUMBER: 0.14.42 | ||
# DATAPACK VERSION NUMBER: 0.14.43 | ||
|
||
tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.14.42§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}] | ||
tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.14.43§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}] |