How to use:

/function death_detector:create {id:1}

Stand at corner 1:
/function death_detector:pos1 {id:1}

Stand at corner 2:
/function death_detector:pos2 {id:1}

Set outcome
/function death_detector:command {id:1,command:"command goes here"}

IDs can only go up to 16 because I say so.
