#Standard
execute unless items entity @s armor.head *[custom_data~{clear:1b}] run function otif:forms/hupdate
execute unless predicate otif:invis_check run function otif:forms/dna

execute if entity @s[tag=otif.S2_Controls] if items entity @s weapon.mainhand warped_fungus_on_a_stick[custom_data~{clear:1b}] run function otif:util/f_key
execute if entity @s[tag=otif.S1_Controls] if items entity @s weapon.mainhand warped_fungus_on_a_stick[custom_data~{clear:1b}] run clear @s warped_fungus_on_a_stick[custom_data~{clear:1b}]
execute if entity @s[tag=otif.S1_Controls] if items entity @s weapon.offhand *[custom_data~{clear:1b}] unless score @s otif.SIS matches 8 run clear @s warped_fungus_on_a_stick[custom_data~{clear:1b}]
execute if entity @s[tag=otif.S2_Controls] unless items entity @s weapon.offhand *[custom_data~{clear:1b}] run item replace entity @s[scores={otif.CD=0}] weapon.offhand with warped_fungus_on_a_stick[item_name='{"text":""}',unbreakable={},custom_model_data={strings:['otif_air']},custom_data={clear:1b}]
execute unless predicate otif:sneaking run tag @s[tag=otif.Stream] remove otif.Stream
#


#S2 control / s1 control
execute if entity @s[tag=otif.S1_Controls] if score @s otif.SIS matches 8 run function otif:sis/cu/up_8
execute if entity @s[tag=otif.S2_Controls] run function otif:sis/cu/up_8
#
#Timeout
execute if entity @s[scores={otif.alien=1..240},tag=otif.Master_Control,x_rotation=80..90,predicate=otif:sneaking,tag=otif.S1_Controls] if score @s otif.click matches 1.. run function otif:debug/omnitrix_reset
execute if entity @s[scores={otif.alien=1..240},tag=otif.Master_Control,x_rotation=80..90,predicate=otif:sneaking,tag=otif.S2_Controls] if score @s otif.FTrack matches 1.. run function otif:debug/omnitrix_reset
#


execute unless entity @e[type=wolf,tag=otif.upDrone,distance=..30] run kill @e[type=armor_stand,tag=otif.upDrone1,distance=..30]
execute if entity @s[tag=!otif.SCha,advancements={otif:player_hit_entity=true}] run function otif:abilities/h/curse_hit
