Hello, Im not sure if this is 'advance' modding but it does require coding knowledge so I put it under advance modding.
So, I'm getting the player to teleport away after clicking on a block; to get the player back I just made 3 varibles and called them x,y & z then just before the teleport event I set those varibles to the same as i, j & k but when the player gets teleported back it teleports them back to inside the block. This is because of the way the code works... when I set I added the event it thought I meant the i, j & k coords of the block but I need to know how to access the i, j & k coords of the player and that I do not know how to do. I have coded before and know how to edit the code to a fairly large extend so If someone could just help me but telling me what code I need to write I can work it out... probably. anyway thanks for reading, Kye_the_miner (now changed to FoodLover135 but oh well)