Own portal

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 345
2
1 053
297
24
Bretagne
Do you have place a structure_void block under the portal, at layer 5?
 

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 345
2
1 053
297
24
Bretagne
So it can't work because the "execute" command is based on that ^^'
 

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 345
2
1 053
297
24
Bretagne
Place you in the portal, and do the command
Code:
setblock ~ 5 ~ structure_void
And do that for all the block of the portal where the player can walks.
 

Yuna_Bikusen

Aventurier
10 Mai 2020
19
0
1
18
and how i can make the player back if he entrer again in another portal?
 
Dernière édition:

Oromis

Command-blocker slimesque
Staff
Modérateur
Support
11 Février 2014
3 345
2
1 053
297
24
Bretagne
Oh, you wish the system work for other portals? So it's not the good way... The other solution is to use an entity:
Code:
/summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invisible:1b,Tags:["ToLoc1"]}
You place it in your portal and execute this command in loop:
Code:
execute as @e[tag=ToLoc1] as @a at @s if block ~ ~-1 ~ obsidian run tp @s X Y Z
You can change the tag of the entity (ToLoc1) without forgot to change in the second command. You can also change "obsidian" by the block of your portal.
To do the return portal, do the same system but with an entity with an other tag than the first.