tutorial:custom_portals
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tutorial:custom_portals [2021/12/28 18:35] – update to 1.18 banana | tutorial:custom_portals [2022/09/18 13:43] – [Getting Started] nexus-dino | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | FIXME //This page hasn't been updated in a while, and may not work in the future updates. // | ||
+ | |||
====== Creating a custom portal to access your dimension ====== | ====== Creating a custom portal to access your dimension ====== | ||
Line 24: | Line 26: | ||
</ | </ | ||
- | **Note:** You need to choose the right version for your mod. The library works currently for 1.16 - 1.18. | + | **Note:** You need to choose the right version for your mod. The library works currently for 1.16, 1.18 and 1.19. |
===== Registering your Portal ===== | ===== Registering your Portal ===== | ||
Line 46: | Line 48: | ||
<code java> | <code java> | ||
// CustomPortalApiRegistry.addPortal(Block frameBlock, PortalIgnitionSource ignitionSource, | // CustomPortalApiRegistry.addPortal(Block frameBlock, PortalIgnitionSource ignitionSource, | ||
- | CustomPortalApiRegistry.addPortal(Blocks.NETHERITE_BLOCK, | + | CustomPortalApiRegistry.addPortal(Blocks.NETHERITE_BLOCK, |
+ | |||
+ | CustomPortalBuilder.beginPortal() | ||
+ | .frameBlock(Blocks.NETHERITE_BLOCK) | ||
+ | .lightWithItem(Items.ENDER_EYE) | ||
+ | // | ||
+ | .destDimID(new Identifier(" | ||
+ | .tintColor(45, | ||
+ | .registerPortal(); | ||
</ | </ | ||
tutorial/custom_portals.txt · Last modified: 2022/09/18 13:45 by nexus-dino