-
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.
Add ember and crowns to lifetime totals only after a win
- Loading branch information
Showing
5 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
Brilliance Datapack/data/do2/functions/events/on_player_artifact_submitted.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,12 @@ | ||
# Called when a player submits their artifact | ||
|
||
# - Start Log - | ||
tag @s add artifactSubmittedTarget | ||
execute at @s as @a[scores={do2.logs.gamestate=1..}] run tellraw @s ["",{"text":"[§9B§r]: "},{"selector":"@p[tag=artifactSubmittedTarget]"},{"text":" has submitted an artifact."}] | ||
tag @s remove artifactSubmittedTarget | ||
# - End Log - | ||
|
||
# Add the artifact value to the player's total, as they haven't picked up the artifact embers yet, | ||
# and when they do, they won't be counted to towards these totals anyway, so we do it here. | ||
scoreboard players operation @s do2.lifetime.escaped.embers += $dungeon do2.run.artifactValue | ||
scoreboard players operation $dungeon do2.lifetime.escaped.embers += $dungeon do2.run.artifactValue |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
# DATAPACK VERSION NUMBER: 0.12.27 | ||
# DATAPACK VERSION NUMBER: 0.12.28 | ||
|
||
tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.12.27§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.12.28§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":"."}] |
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