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 [2022/08/16 20:54] – FME mineblock11 | tutorial:custom_portals [2022/09/18 13:43] – [Getting Started] nexus-dino | ||
---|---|---|---|
Line 26: | 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 48: | 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