your current location:首页 > news>Customized portal API (CUSTOM Portal API) MINECRAFT

Customized portal API (CUSTOM Portal API) MINECRAFT

2024-12-15 01:57:37|Myriagame |source:minecraft skins

About module

This module allows module developers to easily create a portal module that leads to their custom dimensions.

These custom portable doors operate completely like the portal portal, except that they are completely customized.

You can customize the frame square, the portal block or the default color, ignite the activation method, destination, etc.!

Example image

Minecraft images

Minecraft images

Minecraft images

Minecraft images

How to use

Add the warehouse to your build.gradle file.

 maven {url = "https://maven.kyrptonaught.dev"} 

Add dependencies.

 Modimplementation 'Network > '

Create and register the portal itself. Thanks to the CustomPortalBuilder class to make it very simple, and then use this class in the module initialization.

The following is a very simple portal example. It will bring us to the end, and you can use right -click the frame to use the end of the shadow to ignite:

 CustomPortalBuilder.beginportal (). FrameBlock (blocks.diamond_block). LightwithItem (items.nder_eye). DESTDIMID (New Identifier ("THE_END"). Tintcolor (45,65,101 .Registerportal(); 

The lower -bound portal will be registered in the following way:

 CustomPortalBuilder.beginportal () .Frameblock (blocks.obsidian) .Destdimid (New Identifier ("THE_NETHER") .tintcolor (131, 66, 184) .registerportal (); 

The CustomPortalBuilder class provides many methods to define the function of the portal, and all these methods have detailed instructions in the class document.

Some methods worth mentioning include:

Lightwithwater/item/fluid-These methods allow you to control how to ignite the portal;

onlyLightinoverwork-only allows the use of portal in the main world to reach your choice;

Flatportal-The graphic portal similar to the end of the end or the twilight forest portal.Please note that should be replaced with the actual version number.

Current version number:

Non -official Forge port version: Custom Portal API [Forge].

Minecraft images

Minecraft images

Minecraft images

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.