-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π§βπ» add admin queue enable/disable functions
- Loading branch information
1 parent
1716257
commit 3a9968c
Showing
8 changed files
with
113 additions
and
3 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
datapacks/omegaflowey/data/omegaflowey.admin/function/queue/disable.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 @@ | ||
function omegaflowey.utils:log { text_component: '[ \ | ||
{ "selector": "@s", "color": "gold" }, \ | ||
{ "text": " disabled the JOIN QUEUE buttons ", "color": "yellow" } \ | ||
]'} | ||
|
||
function omegaflowey.main:summit/room/cave/setup/text_displays/join_queue/disable |
6 changes: 6 additions & 0 deletions
6
datapacks/omegaflowey/data/omegaflowey.admin/function/queue/enable.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 @@ | ||
function omegaflowey.utils:log { text_component: '[ \ | ||
{ "selector": "@s", "color": "gold" }, \ | ||
{ "text": " enabled the JOIN QUEUE buttons ", "color": "yellow" } \ | ||
]'} | ||
|
||
function omegaflowey.main:summit/room/cave/setup/text_displays/join_queue/enable |
5 changes: 4 additions & 1 deletion
5
...omegaflowey/data/omegaflowey.entity/function/player/interacted/with_join_queue.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,3 +1,6 @@ | ||
advancement revoke @s only omegaflowey.entity:player_interacted_with_join_queue | ||
|
||
execute if score #omegaflowey.bossfight.queue_disabled omegaflowey.global.flag matches 1 run return 0 | ||
|
||
function omegaflowey.main:telemetry/booth/add_tag { name: "player.interact.join_queue" } | ||
function omegaflowey.entity:player/interacted/with_join_queue/macro with storage omegaflowey:decorative | ||
advancement revoke @s only omegaflowey.entity:player_interacted_with_join_queue |
5 changes: 4 additions & 1 deletion
5
...egaflowey/data/omegaflowey.entity/function/player/interacted/with_join_queue_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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
advancement revoke @s only omegaflowey.entity:player_interacted_with_join_queue_2 | ||
|
||
execute if score #omegaflowey.bossfight.queue_disabled omegaflowey.global.flag matches 1 run return 0 | ||
|
||
function omegaflowey.main:telemetry/booth/add_tag { name: "player.interact.join_queue_2" } | ||
function omegaflowey.entity:player/interacted/with_join_queue_2/macro with storage omegaflowey:decorative | ||
advancement revoke @s only omegaflowey.entity:player_interacted_with_join_queue_2 |
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
37 changes: 37 additions & 0 deletions
37
...gaflowey.main/function/summit/room/cave/setup/text_displays/join_queue/disable.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,37 @@ | ||
execute as @e[ \ | ||
x=-137.5, y=43.5, z=42.5, distance=..0.01, \ | ||
type=minecraft:text_display, \ | ||
tag=join-queue-title, \ | ||
limit=1 \ | ||
] run data modify entity @s text set value '[ \ | ||
{ "text": "FIGHT\\n", "color": "red", "bold": true, "underlined": false }, \ | ||
{ "text": "DISABLED", "underlined": true } \ | ||
]' | ||
|
||
execute as @e[ \ | ||
x=-137.5, y=43.5, z=42.5, distance=..0.01, \ | ||
type=minecraft:interaction, \ | ||
tag=join-queue-interaction, \ | ||
limit=1 \ | ||
] run data modify entity @s response set value false | ||
|
||
execute as @e[ \ | ||
x=-135.75, y=38.5, z=46.25, distance=..0.01, \ | ||
type=minecraft:text_display, \ | ||
tag=join-queue-2-title, \ | ||
limit=1 \ | ||
] run data modify entity @s text set value '[ \ | ||
{ "text": "FIGHT\\n", "color": "red", "bold": true, "underlined": false }, \ | ||
{ "text": "DISABLED", "underlined": true } \ | ||
]' | ||
|
||
execute as @e[ \ | ||
x=-135.75, y=38.5, z=46.25, distance=..0.01, \ | ||
type=minecraft:interaction, \ | ||
tag=join-queue-2-interaction, \ | ||
limit=1 \ | ||
] run data modify entity @s response set value false | ||
|
||
scoreboard players set #omegaflowey.bossfight.queue_disabled omegaflowey.global.flag 1 | ||
|
||
function omegaflowey.entity:directorial/boss_fight/summit/player/queue/reset |
33 changes: 33 additions & 0 deletions
33
...egaflowey.main/function/summit/room/cave/setup/text_displays/join_queue/enable.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,33 @@ | ||
execute as @e[ \ | ||
x=-137.5, y=43.5, z=42.5, distance=..0.01, \ | ||
type=minecraft:text_display, \ | ||
tag=join-queue-title, \ | ||
limit=1 \ | ||
] run data modify entity @s text set value '[ \ | ||
{ "text": "JOIN QUEUE", "color": "light_purple", "bold": true, "underlined": true } \ | ||
]' | ||
|
||
execute as @e[ \ | ||
x=-137.5, y=43.5, z=42.5, distance=..0.01, \ | ||
type=minecraft:interaction, \ | ||
tag=join-queue-interaction, \ | ||
limit=1 \ | ||
] run data modify entity @s response set value true | ||
|
||
execute as @e[ \ | ||
x=-135.75, y=38.5, z=46.25, distance=..0.01, \ | ||
type=minecraft:text_display, \ | ||
tag=join-queue-2-title, \ | ||
limit=1 \ | ||
] run data modify entity @s text set value '[ \ | ||
{ "text": "JOIN QUEUE", "color": "light_purple", "bold": true, "underlined": true } \ | ||
]' | ||
|
||
execute as @e[ \ | ||
x=-135.75, y=38.5, z=46.25, distance=..0.01, \ | ||
type=minecraft:interaction, \ | ||
tag=join-queue-2-interaction, \ | ||
limit=1 \ | ||
] run data modify entity @s response set value true | ||
|
||
scoreboard players set #omegaflowey.bossfight.queue_disabled omegaflowey.global.flag 0 |