Is there a way to run the setblock command as if you placed the block yourself

without needing a lot of if block checks. (With setblock normally)
Continue to help post