I've been playing tons of Valheim recently with my friends, and one of them challenged me to recreate the portals in Minecraft!
They largely function the same as you would expect; normal wood portals have restrictions, stone portals don't.
You can craft portals with vanilla materials:
"LPL",
"BPB",
"LPL"
"L": {
"tag": "minecraft:logs"
},
"P": {
"item": "minecraft:ender_pearl"
},
"B": {
"item": "minecraft:blaze_rod"
}
and stone portals:
"SES",
"ENE",
"SES"
"S": {
"item": "minecraft:polished_blackstone_bricks"
},
"E": {
"item": "minecraft:ender_eye"
},
"N": {
"item": "minecraft:netherite_scrap"
}
no unlimited pairs of the same name though; I didn't feel like dealing with it. get unique with your names! I might increase the character limit later though.
Feel free to edit the config to disable restrictions on items and cross-dimensional portals.