Requires KubeJS to be installed.
To use this script, copy the file into your Minecraft directory under "/kubejs/server_scripts/".
Allows you to set any size and block you want for a Nether Portal.
Simply look at the first 3 lines of the script and replace the values with your preferred ones.
PORTAL_HEIGHT = 3
PORTAL_WIDTH = 2
PORTAL_FRAME_BLOCK = 'minecraft:obsidian'