JustPaste.it

Portal Register

StartupEvents.postInit((event) => {
    $CustomPortalBuilder
        .beginPortal()
        ['frameBlock(net.minecraft.resources.ResourceLocation)']('minecraft:glowstone')
        .destDimID('aether:the_aether')
        .customPortalBlock(Block.getBlock('kubejs:aether_portal'))
        .tintColor(77, 153, 240)
        .flatPortal()
        .forcedSize(3, 3)
        .lightWithItem('debug_stick')
        .registerPortal();
});