-
Notifications
You must be signed in to change notification settings - Fork 2
Java
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();
});
})