How to make custom portals in minecraft! (using commands 1.19+)

preview_player
Показать описание
works for Java edition 1.19+

commands (AA = always active)

give commands

1 (Impulse) /give @p cat_spawn_egg{display:{Name:'{"text":"place 1","color":"dark_aqua","bold":true,"italic":false}'},EntityTag:{id:"minecraft:armor_stand",NoGravity:1b,Silent:1b,Invulnerable:1b,Invisible:1,PersistenceRequired:1b,Tags:["tp1"]}} 1

2 (impulse) /give @p cat_spawn_egg{display:{Name:'{"text":"place 2","color":"dark_red","bold":true,"italic":false}'},EntityTag:{id:"minecraft:armor_stand",NoGravity:1b,Silent:1b,Invulnerable:1b,Invisible:1,PersistenceRequired:1b,Tags:["tp2"]}} 1

1 (repeating AA) /execute as @a[tag=!tp3] at @s if entity @e[tag=tp2,distance=...3] run tag @s add tp4

2 (chain AA) /execute as @a[tag=tp4] at @s if entity @e[tag=tp2,distance=...5] run tp @s @e[tag=tp1,limit=1]

3 (chain AA) /execute as @a[tag=tp3] at @s if entity @e[tag=tp2,distance=.6..] run tag @s remove tp3

4 (chain AA) execute as @e[tag=tp2] at @s if entity @e[tag=tp2,distance=1..] run kill @e[tag=tp2,limit=1,distance=1..,sort=furthest]

second line
1 (repeating AA) /execute as @a[tag=!tp4] at @s if entity @e[tag=tp1,distance=...3] run tag @s add tp3

2 (chain AA) /execute as @a[tag=tp3] at @s if entity @e[tag=tp1,distance=...5] run tp @s @e[tag=tp2,limit=1]

3 (chain AA) /execute as @a[tag=tp4] at @s if entity @e[tag=tp1,distance=.6..] run tag @s remove tp4

4 (chain AA) execute as @e[tag=tp1] at @s if entity @e[tag=tp1,distance=1..] run kill @e[tag=tp1,limit=1,distance=1..]

third line

1 (repeating AA) /execute as @e[tag=tp1] at @s run particle dust 1 2 0 1 ~ ~1 ~ 0.3 0.5 0.3 0.3 25 force @a

2 (repeating AA)/execute as @e[tag=tp2] at @s run particle dust 3 0 2 1 ~ ~1 ~ 0.3 0.5 0.3 0.3 25 force @a

Рекомендации по теме
Комментарии
Автор

Tysm bro you saved my life and my server

DaKingOfBot
Автор

DUDE
you so underrated
Great tutorial 👍

cornkidboring
Автор

is there any way to link a portal to another one so you can have multiple portals?

reshmaprashanth-ip
Автор

is there a distance limit? because i tried this and I couldn't make the portals 4000 blocks apart which is why I needed them.

bonzathebear
Автор

It doesn't work for me for some reason

baconwakin
Автор

its not working at all for me
Is there any reason why

zeliosgames
visit shbcf.ru