your current location:首页 > news>Regarding the Sinicization Park Hua (USEless Sword) Minecraft Game described by the module weapon props

Regarding the Sinicization Park Hua (USEless Sword) Minecraft Game described by the module weapon props

2024-12-10 17:51:11|Myriagame |source:minecraft skins

As we all know, the description of many MCR modules is usually hard -coded and cannot be sinicized by the material package. Therefore, it is difficult for automation to update such modules.

I also encountered this kind of problem when I made a integrated package. With my own exploration and the help of the big guys, I learned to use CRT to come to Sinicization.

Not only for Park Hua's sword and TFD, almost all modules can use this method to Chinese.

The "rust and troublesome sword" here described from the name to the description, and then when the master, the attack damage, etc., are added by the following methods.

Preliminary preparation

First install the module you want to Chinese in your game and Crafttweake and open the game.

After opening the game, you should be able to find a folder named Scripts in your version folder.

In this folder, create a newly expanded file, such as Sinicization .zs Translate.zs, etc. The name is not limited. It can be any name you like, as long as the expansion name is .zs.

Code part

Let's take an example first,

Figure 1 is an item that has been finished.Figure 2 is after the Sinicization, and to do all this, you only need to open the xx.zs file mentioned above and enter

 . RemoveTooltip ("Sky");

.anydamage (). RemoveTooltip ("ma");

.anydamage (). RemoveTooltip ("the");

.addtooltip ("§6 Day meteorite");

.addtooltip ("§7 The main component is gold."););

.anydamage (). Addtooltip ("§7 doped blue metal can generate electricity at the time of stress.");

Now explain the structure of the code in detail, usually there are two types of code here:

· Delete the original description of the item

(Including the name of the item and the attributes of the item can also be eliminated)

The structure of this type of code is usually: Delete method

Regarding items, usually, you only need to hold a item in the game in the game, and then enter the instruction

/ct hand 

The corresponding code of this item will be copied by you (directly to your paste plate). You only need to return to the ZS paste. You usually copy it as

wait.

Delete method, generally there is

.removeTooltip (""); and .Cleartooltip (); two of them, of which the latter was deleted by deleted all the deleted descriptions, such as the name of the item, the attributes of the items (such as the attack damage), the description of the item; the former only deleted only deletePlayers describe several lines of text in the text in "" "" ".

For the .removeTooltip (""), the above -mentioned Tianmeng ingot was deleted by me. The three code were:

 . RemoveTooltip ("Sky");

.anydamage (). Removetoo ltip ("ma"); .removeTooltip ("the");

It entered the top of the three lines of text in the quotation marks.Here, you can enter the description that you want to delete, but the premise is that the word is not bad; you can also enter the part as lazy like me. Of course, the easiest is to enter S, M, and T3 first letters.

Seeing this, you should also find that I have something to not introduce, that is .anydamage ()

What's this?This means a retrieval of items, indicating that this description will not disappear because of durable changes.If you do n’t add this code, you may find that you have just translated good things, because the description will change back to the original because it is durable.For things that are durable or durable, you don't need to add .anydamage (), but weapons and armor need this.

· Add new description.

The structure of the new described is usually .addtooltip ("");

Just write the description you want to add in the quotation section, and the line code represents a line of description.The code is displayed in order from top to bottom.

Some people will notice that before the text, I add a string of numbers and letters, such as §7, §6, etc. This is the color code of MC.Will change the color of the Chinese file you add.

Code name technical name

Hexadecimal decimal MOTD Transfer §0 Black "Black" 0000000000000000 §0 §1 dark blue "dark_blue" 0000aa 00000170 §2 Dark green "dark_green" 00aa0000043520 §3 Lake blue "dark_aqua" 00aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 4 deepRed "dark_red" aa00001114114114 §4 §5 purple "dark_purple" aa00aa111141290 §6 gold "ffaa0016755200 §6 §7 gray" aaaaaaa16755200 §7 dark_gray "555" 555555555555555555555555555555555 55505592405 §8 §9 Blue "Blue"5555FF05592575 §9 §A Green" Green "555055635925 §A §B sky blue" aqua "55FFFF0 5636095 §C red 3695 §D §E yellow "YELLOW" FFFF5516777045 §E §F white "white" FFFFFF16777215 §F §G Coin (only be) "Minecoin_Gold" DDD60514538245 §R reset "reset"

§R §L bold bold

§L §O oblique italic

§O §N Underline UnderLine

§N §M delete wire Strike

§M §K garbled

§K

Specific reference table.

Run code

How to run your .zs file and check Chinese in the game?

Just need to save your file and enter in the game

/regoad 

Just wait for loading.

As for the specific translation?QQ screenshot+text recognition+Baidu translation, please.