Skip to content

Commit

Permalink
Add function to track lifetime crowns
Browse files Browse the repository at this point in the history
Additionally:
- Call that function from on_coin_conversion
- Bump datapack version
  • Loading branch information
4Ply committed Aug 10, 2024
1 parent 47473cc commit 5facad3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ execute as @a[scores={do2.logs.player_actions=1..}] run tellraw @s ["",{"text":"

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

function do2:events/systems/on_crown_acquired

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":"."}]

0 comments on commit 5facad3

Please sign in to comment.