-
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.37) Practice mode now can adjust game settings.
- Loading branch information
1 parent
e452674
commit a58295a
Showing
18 changed files
with
88 additions
and
42 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
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
20 changes: 20 additions & 0 deletions
20
...Datapack/data/do2/functions/external/tracked_out/check_if_setting_room_trigger.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,20 @@ | ||
# Code needed to delay this function. | ||
execute unless entity @s[tag=do2.setting_room_checking2] as @a[tag=do2.setting_room_checking] run tag @s add do2.setting_room_checking2 | ||
execute unless entity @s[tag=do2.setting_room_checking2] as @a[tag=do2.setting_room_checking] run function do2:external/tracked_out/check_if_setting_room_trigger | ||
tag @a remove do2.setting_room_checking | ||
execute unless entity @s[tag=do2.setting_room_checking2] if entity @a[tag=do2.setting_room_checking2] run return 0 | ||
tag @a remove do2.setting_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 | ||
|
||
# Lock setting's room | ||
scoreboard players set $dungeon do2.utility.lockConfigRoom 2 | ||
function do2:scoreboard/config/config_lock_inverse |
2 changes: 1 addition & 1 deletion
2
...tapack/data/do2/functions/external/tracked_out/remove_excess_datapack_features.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
File renamed without changes.
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
14 changes: 14 additions & 0 deletions
14
Brilliance Datapack/data/do2/functions/scoreboard/config/config_lock_inverse.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,14 @@ | ||
execute unless entity @e[tag=do2.stop_settings1] run summon minecraft:armor_stand -515. 115 1956 {CustomName:'{"text":"Rest of world inaccessible.","color":"red"}',CustomNameVisible:1b,Invisible:1b,Invulnerable:1b,NoBasePlate:1b,NoGravity:1b,Small:1b,Tags:["do2.stop_settings","do2.stop_settings1"]} | ||
execute unless entity @e[tag=do2.stop_settings2] run summon minecraft:armor_stand -515.5 113.7 1956 {CustomName:'{"text":"Approach to return to game.","color":"red"}',CustomNameVisible:1b,Invisible:1b,Invulnerable:1b,NoBasePlate:1b,NoGravity:1b,Small:1b,Tags:["do2.stop_settings","do2.stop_settings2"]} | ||
execute unless entity @e[tag=do2.stop_settings3] run summon minecraft:item_display -514.65 116 1956 {Tags:["do2.stop_settings","do2.stop_settings3"],width:1f,height:1f,item:{id:"minecraft:barrier",Count:1b},view_range:2f,transformation:{left_rotation:[0f,-1f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.8f,0.8f,2f]}} | ||
fill -515 118 1954 -515 114 1958 minecraft:iron_bars replace air | ||
|
||
# Hide the names if an entity isn't nearby | ||
execute positioned -515 116 1956 unless entity @p[distance=..10] as @e[type=armor_stand,tag=do2.stop_settings] run data merge entity @s {CustomNameVisible:0b} | ||
execute positioned -515 116 1956 if entity @p[distance=..10] as @e[type=armor_stand,tag=do2.stop_settings] run data merge entity @s {CustomNameVisible:1b} | ||
|
||
|
||
execute as @a[x=-517,dx=1,y=113,dy=7,z=1953,dz=6] if entity @s[tag=do2.staff,tag=!do2.staff.warned] run tellraw @s ["",{"text":"§f[§9B§r]: You have the tag [§bdo2.staff§r], and this has stopped:\n - §5tp "},{"selector":"@s","color":"dark_purple"},{"text":"§5-550 113 1980 90 0\n§f[§9B§r]: Click "},{"text":"§b[here]","clickEvent":{"action":"run_command","value":"/tp @s -512 114 1956 90 0"}},{"text":" to run the command anyway."}] | ||
execute as @a[x=-517,dx=1,y=113,dy=7,z=1953,dz=6] if entity @s[tag=do2.staff,tag=!do2.staff.warned] run tag @s add do2.staff.warned | ||
|
||
execute as @a[x=-517,dx=1,y=113,dy=7,z=1953,dz=6] unless entity @s[tag=do2.staff] run tp @s -550 113 1980 90 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
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
12 changes: 6 additions & 6 deletions
12
Brilliance Datapack/data/do2/functions/scoreboard/triggers/checks.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 @@ | ||
# happens every datapack tick | ||
execute as @a unless entity @s[scores={do2.trigger.logs=0}] run function do2:scoreboard/triggers/t_logs | ||
execute as @a unless entity @s[scores={do2.trigger.version=0}] run function do2:scoreboard/triggers/t_version | ||
execute as @a unless entity @s[scores={do2.trigger.map=0}] run function do2:scoreboard/triggers/t_map | ||
execute as @a unless entity @s[scores={do2.trigger.playsound=0}] run function do2:scoreboard/triggers/t_playsound | ||
execute as @a unless entity @s[scores={do2.trigger.gui=0}] run function do2:scoreboard/triggers/t_gui | ||
execute as @a unless entity @s[scores={do2.trigger.silenceWardens=0}] run function do2:scoreboard/triggers/t_silence_wardens | ||
execute as @a[tag=!do2.fakePlayer] unless entity @s[scores={do2.trigger.logs=0}] run function do2:scoreboard/triggers/t_logs | ||
execute as @a[tag=!do2.fakePlayer] unless entity @s[scores={do2.trigger.version=0}] run function do2:scoreboard/triggers/t_version | ||
execute as @a[tag=!do2.fakePlayer] unless entity @s[scores={do2.trigger.map=0}] run function do2:scoreboard/triggers/t_map | ||
execute as @a[tag=!do2.fakePlayer] unless entity @s[scores={do2.trigger.playsound=0}] run function do2:scoreboard/triggers/t_playsound | ||
execute as @a[tag=!do2.fakePlayer] unless entity @s[scores={do2.trigger.gui=0}] run function do2:scoreboard/triggers/t_gui | ||
execute as @a[tag=!do2.fakePlayer] unless entity @s[scores={do2.trigger.settings=0}] run function do2:scoreboard/triggers/t_settings |
4 changes: 2 additions & 2 deletions
4
Brilliance Datapack/data/do2/functions/scoreboard/triggers/on_player_join.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,13 +1,13 @@ | ||
execute if entity @s[tag=!do2.fakePlayer] run return 0 | ||
|
||
scoreboard players set @s do2.trigger.logs 0 | ||
scoreboard players set @s do2.trigger.version 0 | ||
scoreboard players set @s do2.trigger.map 0 | ||
scoreboard players set @s do2.trigger.playsound 0 | ||
scoreboard players set @s do2.trigger.gui 0 | ||
scoreboard players set @s do2.trigger.silenceWardens 0 | ||
|
||
scoreboard players enable @s[tag=do2.staff] do2.trigger.logs | ||
scoreboard players enable @s do2.trigger.version | ||
scoreboard players enable @s do2.trigger.map | ||
scoreboard players enable @s do2.trigger.playsound | ||
scoreboard players enable @s do2.trigger.gui | ||
#scoreboard players enable @s[team=do2.players] do2.trigger.silenceWardens |
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_settings.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.settings 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 | ||
|
||
scoreboard players enable @s do2.trigger.settings | ||
tp @s -519 114 1956 90 0 | ||
|
10 changes: 0 additions & 10 deletions
10
Brilliance Datapack/data/do2/functions/scoreboard/triggers/t_silence_wardens.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# DATAPACK VERSION NUMBER: 0.14.36 | ||
# DATAPACK VERSION NUMBER: 0.14.37 | ||
|
||
tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.14.36§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.37§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":"."}] |