Skip to content

Commit

Permalink
📈 telemetry: add instant tag (< 1 tick) and soul touch/saved tags
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom committed Oct 20, 2024
1 parent b44dcac commit c69979f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
function omegaflowey.main:telemetry/tag/instant { name: "soul_event_touch" }

# Update state flag
scoreboard players set #omegaflowey.soul.5.touched omegaflowey.soul.flag 1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
function omegaflowey.main:telemetry/tag/instant { name: "soul_event_saved" }

# Update state flag
scoreboard players set #omegaflowey.soul.5.saved omegaflowey.soul.flag 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ scoreboard players operation @s omegaflowey.math.0 = @s omegaflowey.soul.clock.i
scoreboard players operation @s omegaflowey.math.0 -= @s omegaflowey.soul.clock.touched_act_button

# omegaflowey.math.0 = how many ticks after the player grabbed the ACT button
execute if score @s omegaflowey.math.0 matches 120 run function omegaflowey.entity:soul/soul_5/executor/initialize/before_saved with storage omegaflowey:soul.5
execute if score @s omegaflowey.math.0 matches 153 run function omegaflowey.entity:soul/soul_5/executor/initialize/saved with storage omegaflowey:soul.5
execute if score @s omegaflowey.math.0 matches 253.. run function omegaflowey.entity:soul/soul_5/executor/terminate with storage omegaflowey:bossfight
execute if score @s omegaflowey.math.0 matches 120 run return run \
function omegaflowey.entity:soul/soul_5/executor/initialize/before_saved with storage omegaflowey:soul.5
execute if score @s omegaflowey.math.0 matches 153 run return run \
function omegaflowey.entity:soul/soul_5/executor/initialize/saved with storage omegaflowey:soul.5
execute if score @s omegaflowey.math.0 matches 253.. run return run \
function omegaflowey.entity:soul/soul_5/executor/terminate with storage omegaflowey:bossfight
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
execute if score #omegaflowey.telemetry.basetime omegaflowey.global.flag matches -1 run return 0

$data modify storage omegaflowey:telemetry tags[-1] append value { name: "$(name)", type: "instant" }
function omegaflowey.main:telemetry/tag/shared

0 comments on commit c69979f

Please sign in to comment.