Own portal

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 362
1 055
297
20
Bretagne
Okay, so, do your structure, put (for this example) a structure void (/give @s structure_void) at layer 5 (for example) under all blocks where TP is done.
Get a command-block, place it with "Repeat" mod and "Always Active" too, and put this command on:
Code:
execute as @a if block ~ 5 ~ structure_void run tp @s X Y Z
This command teleports all players who have a structure void at the layer 5 under their position at coordinates X Y Z.
 

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 362
1 055
297
20
Bretagne
'~X' means position at this coordinate, relative at the position of the player, with an offset of X. '~' is the same but with an offset of 0.
'~ 5 ~' means "at the same X and Z that the player, but at the layer 5 (fix, not relative)"
 

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 362
1 055
297
20
Bretagne
Uh, you can put "~ 5 ~" instead of "150 5 50", like this, it work for any place as long as a void-block is at the layer 5 under the player.
Try this:
Code:
execute as @a at @s if block ~ 5 ~ structure_void run tp @s 15 50 45
The at @s is needed if you want to test from the player position and not from the command-block position.
 

Yuna_Bikusen

Nouveau
10 Mai 2020
19
0
1
15
Code:
execute as @a at @s if block 104 43 411 structure_void run tp @s 100 50 400
i did that but still don't work unfortunaly
 

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 362
1 055
297
20
Bretagne
Yes, becausemy command is that:
Code:
execute as @a at @s if block ~ 5 ~ structure_void run tp @s X Y Z
You have to change only X Y Z