# Perpetual Scheduling
schedule function kiwi3:relics/relics_tick_fast 1t replace

# Kusanagi-no-Tsurugi
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_sword",components:{"minecraft:custom_data":{kusanagi_no_tsurugi:1b}}}}] at @s if predicate kiwi3:player_sneak run function kiwi3:relics/kusanagi_no_tsurugi/kusanagi_no_tsurugi_interaction_tp

# Jade Prayer Beads
execute as @a[nbt={Inventory:[{id:"minecraft:prismarine_crystals",components:{"minecraft:custom_data":{jade_prayer_beads:1b}}}]}] run function kiwi3:relics/jade_prayer_beads/jade_prayer_beads_fx

# Arc Conduit
execute as @a[predicate=kiwi3:wearing_arc_conduit] at @s run function kiwi3:relics/arc_conductor/arc_conductor_fx

# Revenant Head
execute as @a[predicate=kiwi3:wearing_revenant_head] if predicate kiwi3:player_sneak at @s run function kiwi3:relics/revenant_head/revenant_head_fx

# Sinner's Mercy
execute as @a[nbt={Inventory:[{id:"minecraft:sweet_berries",components:{"minecraft:custom_data":{sinners_mercy:1b}}}]},nbt={HurtTime:1s}] if predicate kiwi2:chance_random_5 run function kiwi3:relics/sinners_mercy/sinners_mercy_fx