##blue
#id1
execute if score .tree_parasite artifact matches 1.. run function main:mechanics/artifacts/id/blue/id1/tick

#id3
execute if score .gasoline_tick artifact matches 1.. run scoreboard players remove .gasoline_tick artifact 1

#id4
execute if score .candle artifact matches 1.. run function main:mechanics/artifacts/id/blue/id4/tick

#id5
execute if score .com-gone artifact matches 1.. run function main:mechanics/artifacts/id/blue/id5/tick

#id6
execute if score .sleeping_gas artifact matches 1.. as @e[type=#main:enemies,tag=enemy,scores={poison_s=1..}] run effect give @s slowness 1 0 true

#id7
execute if score .solar_mark_cd artifact matches 1.. run scoreboard players remove .solar_mark_cd artifact 1

#id8
execute if score .scarred_mask artifact matches 1.. run function main:mechanics/artifacts/id/blue/id8/tick

#id9
execute if score .feral_claw_tick artifact matches 1.. run scoreboard players remove .feral_claw_tick artifact 1

#id10
execute if score .piercing_bolt artifact matches 1.. run function main:mechanics/artifacts/id/blue/id10/tick

#id11
execute if score .tripwalk artifact matches 1.. run function main:mechanics/artifacts/id/blue/id11/tick

#id12
execute if score .soaring_eye_tick artifact matches 1.. run scoreboard players remove .soaring_eye_tick artifact 1

#id13
execute if score .reflective_crystal_tick artifact matches 1.. run scoreboard players remove .reflective_crystal_tick artifact 1

#id14
execute if score .fiery_flask_tick artifact matches 1.. run scoreboard players remove .fiery_flask_tick artifact 1

#id15
execute if score .bandage_tick artifact matches 1.. run scoreboard players remove .bandage_tick artifact 1

#id16
execute if score .mining_helmet_tick artifact matches 1.. run scoreboard players remove .mining_helmet_tick artifact 1

#id17
execute if score .working_gloves_tick artifact matches 1.. run scoreboard players remove .working_gloves_tick artifact 1

#id18
execute if score .stonebreaker_tick artifact matches 1.. run scoreboard players remove .stonebreaker_tick artifact 1

#id21
execute if score .ara-fang artifact matches 1.. run function main:mechanics/artifacts/id/blue/id21/tick

#id22
execute if score .sunscreen artifact matches 1.. run function main:mechanics/artifacts/id/blue/id22/tick

#id23
execute if score .great_offender artifact matches 1.. run function main:mechanics/artifacts/id/blue/id23/tick

#id28
execute if score .stomping_ground artifact matches 1.. run function main:mechanics/artifacts/id/blue/id28/tick

#id31
execute if score .pressure_points_tick artifact matches 1.. run scoreboard players remove .pressure_points_tick artifact 1
execute if score .pressure_points artifact matches 1.. as @e[type=#main:enemies,tag=enemy,scores={pressure_points=1..}] run scoreboard players remove @s pressure_points 1

#purple
#id7
execute if score .blood_strengthening artifact matches 1.. run function main:mechanics/artifacts/id/purple/id7/tick

#id12
execute if score .zapinator artifact matches 1.. run function main:mechanics/artifacts/id/purple/id12/tick

#id16
execute if score .fae_path artifact matches 1.. run function main:mechanics/artifacts/id/purple/id17/tick

# #id21 <- no idea why schedule does not work
# execute if score .friendly_reminder artifact matches 1.. run function main:mechanics/artifacts/id/purple/id21/tick

#id25
execute if score .pocket_sun artifact matches 1.. run function main:mechanics/artifacts/id/purple/id25/tick

#id28
execute if score .broken_watch_tick artifact matches 1.. run scoreboard players remove .broken_watch_tick artifact 1

#handicraft
#id1
execute if score .9_inch_nails_cd artifact matches 1.. run scoreboard players remove .9_inch_nails_cd artifact 1

#id3
execute if score .rogue_guard_cd artifact matches 1.. run scoreboard players remove .rogue_guard_cd artifact 1

#id5
execute if score .arm_buckler_t artifact matches 1.. run scoreboard players remove .arm_buckler_t artifact 1

#set rewards
#id1
execute if score .repulsive_freak artifact matches 1.. run function main:mechanics/artifacts/id/set_reward/id1/tick