How can u check if blocks are in the way when using /teleport ^ ^1 ^10 ?
Hi I´m trying to check for blocks when teleporting 10 blocks ahead of me I want the teleport to cancel if there are blocks on the destination and on the way there so that the player does not suffocate or face though walls. but I don´t know how to check for blocks in front of u with a command in a Datapack. Would be nice if someone told me how they did it the Mc Version is 1.20.5