Skip to content

Commit

Permalink
Merge pull request #26 from trackedout/track-crowns
Browse files Browse the repository at this point in the history
Add function to track lifetime crowns
  • Loading branch information
Bavadin authored Aug 10, 2024
2 parents 47473cc + 949fa1d commit d0d2903
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# - Start Log -
execute as @a[scores={do2.logs.player_actions=1..}] run tellraw @s ["",{"text":"§f[§9B§r]: Player escaped the dungeon with a §acrown§r."}]
# - End Log -

scoreboard players add @a[tag=do2.received_shulker] do2.lifetime.escaped.crowns 1
scoreboard players add $dungeon do2.lifetime.escaped.crowns 1

4 changes: 2 additions & 2 deletions Brilliance Datapack/data/do2/functions/version.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# DATAPACK VERSION NUMBER: 0.12.17
# DATAPACK VERSION NUMBER: 0.12.18

tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.12.17§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.18§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":"."}]
2 changes: 1 addition & 1 deletion docs/scoreboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Brilliance uses a massive amount of scoreboard objectives for a vast amount of t
|| 🟤 | do2.wins | totals | The total amount of wins the target has. |
|| 🟤 | do2.losses | totals | The total amount of losses the target has. |
|| 🟤 | do2.lifetime.pickedup.crowns | totals | The total amount of Crowns the target has picked up. |
| | 🟤 | do2.lifetime.escaped.crowns | totals | The total amount of Crowns the target has escaped with. |
| | 🟤 | do2.lifetime.escaped.crowns | totals | The total amount of Crowns the target has escaped with. |
|| 🟤 | do2.lifetime.spent.crowns | totals | The total amount of Crowns the target has spent. |
|| 🟤 | do2.lifetime.pickedup.coins | totals | The total amount of Coins the target has picked up. |
|| 🟤 | do2.lifetime.coinsconverted | totals | The total amount of Coins the target has Converted. |
Expand Down

0 comments on commit d0d2903

Please sign in to comment.