This is the procedure for making each teleporter correspond to another world.
This is my first time writing an article like this, so please bear with me if it's a little confusing.
Notepad++ is used in the screenshots.
Step.1
Edit the coordinates in gameevents.xml. (see case:edit)
If you want to teleport to 5 or more destinations, increase <action_sequence name="***">~</action_sequence>. (see case:add)
Note: Edit the teleport destination in this file.
---------------------------------------------------------------------------------------------------
case:edit
a. Change the value (coordinates of the teleport destination) in the red frame.
x. East or West (Enter a positive number for East and a negative number for West.)
y. height (I think it's good to give +1 to prevent filling up.)
z. North or South (Enter a positive number for North and a negative number for South.)
Please refer to the following SS for each coordinate.
b. Overwrite and save the file.
---------------------------------------------------------------------------------------------------
case:add
a. Copy the inside of the red frame and paste it into the blue frame.
b. Change the name part of action_sequence to a unique name.
For example, in the case of a MAP with multiple bobs, "action_teleport_Bob2", "action_teleport_Bob3"... will make it easier to understand.
c. As with case:edit, change the teleport destination coordinates.
d. Overwrite and save the file.
---------------------------------------------------------------------------------------------------
Step.2
Increase items in buffs.xml as needed.
This step is necessary only if you increased the number of teleport destinations in step 1.
Note: In this file, edit the buff to call the teleport destination added in step 1.
a. Copy the inside of the red frame and paste it into the blue frame.
b. Change the name part of buff to a unique name.
For example, in the case of a MAP with multiple bobs, "TeleportToBob2", "TeleportToBob3"... would be easier to understand.
c. Change the *** part of <triggered_effect trigger="onSelfBuffStart" action="CallGameEvent" event="***" /> to the action_sequence name added in 1-b of case:add.
For example, if you added "action_teleport_Bob2" in step 1-b, set <triggered_effect trigger="onSelfBuffStart" action="CallGameEvent" event="action_teleport_Bob2" />.
d. Overwrite and save the file.
---------------------------------------------------------------------------------------------------
Step.3
Increase the items in blocks.xml as needed.
This step is necessary only if you increased the number of teleport destinations in step 1.
Note: In this file, edit the actual block (pressure plate) to be placed.
a. Copy the inside of the red frame and paste it into the blue frame.
b. Change the name part of block to a unique name.For example, in the case of a MAP with multiple bobs, "blockTeleportToBob2", "blockTeleportToBob3"... would be easier to understand.
c. Change the *** part of <property name="BuffsWhenWalkedOn" value="***"/> to the name of the buff added in b.
For example, if you added "TeleportToBob2" in step 2-b, set <property name="BuffsWhenWalkedOn" value="TeleportToBob2"/>.
d. (optional)If you want to change the color of the pressure plate, change the CustomIconTint value and TintColor value.
This value corresponds to red, green, blue values (0-255).
e. Overwrite and save the file.
---------------------------------------------------------------------------------------------------
Step.4
Increase the items in recipes.xml as needed.
This step is necessary only if you increased the number of teleport destinations in step 1.
Note: In this file you will edit the materials needed for block creation.
a. Copy the inside of the red frame and paste it into the blue frame.
b. Change the name part of the recipe to the name of the block added in step 3.
For example, if you added "blockTeleportToBob2" in step 3-a, use <recipe name="blockTeleportToBob2" count="1" craft_area="workbench" craft_time="10" tags="workbenchCrafting">.
c. (optional)If you want to change the material required for crafting, change the name of the ingredient to the name of the item you want to specify.
For example, if you want Forged Steel to be Iron, change <ingredient name="resourceForgedSteel" count="5"/> to <ingredient name="resourceScrapIron" count="5"/>.
If you want to increase or decrease the number, change the count part to any quantity.
d. Overwrite and save the file.
---------------------------------------------------------------------------------------------------
Step.5
Increase the items in Localization.txt as needed.
This step is necessary only if you increased the number of teleport destinations in step 1.
Note: This file edits the names of the blocks that will actually appear in-game.
a. Enter "added block name", "display name in English", and "display name in Japanese" in the new line.
For example, if you added "blockTeleportToBob2" in step 3-a, do the following:
blockTeleportToBob2,"Teleport to Bob","テレポート:ボブ"
If the second bob is in the desert, I think it makes more sense to do something like this:
blockTeleportToBob2,"Teleport to Bob(desert)","テレポート:ボブ(砂漠)"
b. (optional)If you want to support other languages, replace the "Display name in Japanese" part with the display name in the language you want to support.
If you want to support other languages, change the Japanese of "Key, English, Japanese" in the first line to the language name you want to support.
For example, to "german" or "spanish".
Also, please refer to the "English display name" and change the "Display name in Japanese" in other lines.
c. Overwrite and save the file.
---------------------------------------------------------------------------------------------------
Step.6
Test play in-game.
Press F1 while loading and make sure you don't see any red errors.
If you see a red error, the steps up to this point have failed.
Common things are that "" is not enclosed where it should be, or the tag correspondence is wrong.
If you teleport to a different place than you thought: The coordinates you edited in 1. are incorrect.
If you do not teleport: BuffsWhenWalkedOn set in step 3 is incorrect.
If the recipe is not displayed: Step 4 is incorrect.
If you see something like "blockTeleportToBob2" in-game: Step 5 is incorrect.
---------------------------------------------------------------------------------------------------
Step.7
No problem, enjoy the game!
0 comments