Skip to content
benbenlaw edited this page Feb 10, 2026 · 1 revision

Can be used inside a mod

Add this to mod constructor

eventBus.addListener(this::commonSetup);
private void commonSetup(FMLCommonSetupEvent event) {
        event.enqueueWork(() -> {
            CustomPortalBuilder.beginPortal()
                    .frameBlock(Blocks.DIAMOND_BLOCK)
                    .lightWithItem(Items.FLINT_AND_STEEL)
                    .destDimID(Level.END.location())
                    .customFrameTester(Portals.VANILLAPORTAL_FRAMETESTER)
                    .tintColor(45, 65, 101)
                    .portalTexture(PortalTextures.MOLTEN)
                    .registerPortal();
        });
})

Clone this wiki locally