Started by
user_25th9p7
on
Topic category: Help with Minecraft modding (Java Edition)
so I made a right click ability on a sword that teleports the player 8 blocks infront of him, but it also works when they are looking down, so they will also teleport into the ground, is there a way to stop the teleport if there is a block in the way? if so, I couldnt find it
by getting the block in front or down or up of them?
probably in front, but I mean when the teleport is getting the player into a wall/block it should prevent it and say a message "blocks in the way!"
yeah, by getting block in front, and if its solid send message?
ye send message and cancel the teleport