execute if entity @e[tag=otif.SBot,distance=..7] run scoreboard players set @s[tag=otif.Matheo] otif.score1 1
execute if entity @s[tag=otif.Matheo,scores={otif.score1=4}] run kill @n[tag=otif.SBot,distance=..8]

execute if entity @s[tag=otif.Todd] if block ~ ~-1 ~ dispenser run scoreboard players set @s otif.score1 2
execute if entity @s[tag=otif.Todd] if block ~ ~-1 ~ dispenser run setblock ~ ~-1 ~ air replace

execute if entity @s[tag=otif.Matheo] if block ~ ~-1 ~ furnace run scoreboard players set @s otif.score1 3
execute if entity @s[tag=otif.Matheo] if block ~ ~-1 ~ furnace run setblock ~ ~-1 ~ air replace

execute if entity @s[tag=otif.Todd] if block ~ ~-1 ~ lightning_rod run scoreboard players set @s otif.score1 4
execute if entity @s[tag=otif.Todd] if block ~ ~-1 ~ lightning_rod run setblock ~ ~-1 ~ air replace

execute if entity @e[type=minecart,distance=..3] run scoreboard players set @s[tag=otif.Kate] otif.score1 5
execute if entity @s[tag=otif.Kate] run tp @e[type=minecart,distance=..3,limit=1,sort=nearest] ~ -600 ~

execute if entity @s[tag=otif.Kate] if block ~ ~-1 ~ redstone_lamp run scoreboard players set @s otif.score1 6
execute if entity @s[tag=otif.Kate] if block ~ ~-1 ~ redstone_lamp run setblock ~ ~-1 ~ air replace

effect clear @s
function otif:forms/dna
function otif:forms/hupdate

execute if score @s otif.score1 matches 1.. run playsound minecraft:entity.slime.hurt player @s ~ ~ ~ 1 0.7

