your current location:首页 > news>How to use Config to add the transmission door

How to use Config to add the transmission door

2024-12-10 17:47:10|Myriagame |source:minecraft skins

This tutorial is set by the author to use the CC by-NC protocol.

Edit the portal in the CCPACRCRCOMPACT-COMMON.TOML file.

1. Configure the parameters of the portal

Edit information about the portal in "Dimension Configs" = [[...], [...], [...], ...].

The information of each portal in "Dimension Configs" shall be a list [...], which should include three lists in this list: [portal configuration], [activated the portal configuration], [portal color].The latter two lists can be empty, that is, '[]', but must exist.All the parameters in these lists must be string, that is, the English dual quotes must be included, such as "Minecraft: end", "8.0", "243".

A. Configuration of the portal

[Transmitting door configuration] = [Modid: Dimaid, Modid: Dimbid, Modid: FrameBlockid, Diffpara] There are four parameters, including the ID of the two dimensions of the teleportation door Unicom (Modid: DIMAID, Modid: Dimbid), the portal framework frameThe block ID (Modid: Frameblockid) and the coordinate differences transmitted between dimensions.

The DiffPara parameter is optional and must be able to be converted to a number, otherwise the default is 1.0.DIMA (x, Z) * ​​Diffpara = Dimb (x, Z).If Diffpara <0.00001, then dima-> Dimb is dima (x, z) = dimb (x, z), and dimb-> dima is dima (x, z) = (0, ~, 0).

The selected port frame (MODID: Frameblockid) must exist, otherwise it will not be configured.

B.

[Activate the portal configuration] = [Lighttype, Modid: ItemoroTherid].

Lighttype must be the following four "FIRE", "item", "Water", "Fluid", and "Custom", which correspond to the use of ignition activation (similar to hell doors).(Similar to the portal of the heaven), put a liquid activation and place a block to activate.If it is empty or not any of the above, the default is "FIRE".

When Lighttype is "item", "FLUID" or "Custom", Modid: Itemorotherid must be filled in and must exist, otherwise the default is "FIRE".

C.

[Transmitted Door Color] = [R, G, B] Define the RGB color of the portal through three parameters, and any parameter is empty and defaults to 127.

2. Other configuration parameters

"Vanilla CPA Teleport", defaults to false.No need to be included with dual quotes.If it is set to True, the transmission method comes with the Custom Portal API.Using this method will make the Diffpara parameter invalid.It will be transmitted between each other according to the world type.For example: When transmitting from the end, it is transmitted to the world's birth point, not the portal of the corresponding coordinates.