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

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

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

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

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

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

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

