-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Card Display: Only send every second to make actionbar messages visible
With this, the card display is only send every second, so that vanilla actionbar messages are at least somewhat visible.
- Loading branch information
1 parent
f0a532f
commit a2e9260
Showing
5 changed files
with
22 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
16 changes: 16 additions & 0 deletions
16
data/bingo/functions/card_display/display_card_schedule.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,16 @@ | ||
#> bingo:card_display/display_card_schedule | ||
# | ||
# Schedule responsible for showing the card display, to not run it every tick. | ||
# | ||
# @internal | ||
|
||
#> | ||
# @private | ||
#declare score_holder $display_card | ||
|
||
scoreboard players set $display_card bingo.debug_scdl 0 | ||
|
||
execute as @a run function bingo:card_display/display_card | ||
schedule function bingo:card_display/display_card_schedule 1s | ||
|
||
scoreboard players set $display_card bingo.debug_scdl 1 |
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