your current location:首页 > news>Use CRT to modify the attributes of the item and Chinese [CRT] CRAFTTWEAKER MINECRAFT Game at 1.20 ~ 1.18.2

Use CRT to modify the attributes of the item and Chinese [CRT] CRAFTTWEAKER MINECRAFT Game at 1.20 ~ 1.18.2

2024-12-10 17:53:18|Myriagame |source:minecraft skins

In MC, there are many ways to modify the attributes of items, such as the Property Modifier module;The ejaculation of the bow and arrow cannot be done by this module; KJS may be okay, but it is very troublesome to implement (Similarly, if you want to use KJS to delete or modify the hard coding description of the items, the operation will be cumbersome, but for everyone, but for everyoneThe big guy doesn't matter);

This tutorial will only write very basic usage, and strive to make "people who don't know the CRT before today" can also know how to modify the attributes and descriptions of the items;

Preliminary preparation

First install the [CRT] CRAFTTWEAKER in your game and the module containing "You want to modify items" 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 items .zs translate.zs. The name is not limited. It can be any name you like.

Note: Naming does not need to be the same as my files!Just name it yourself, no matter what the name you get, it does not affect the use.

Modify items attributes

After finishing everything above, open your ZS file, use notepad or notepad ++, enter

 Import Crafttweaker.api.INGINT.INGIENT.INGINT; 

After all the modifications, you need to enter the same ZS file in the same zs file of the above code.

Next, there are still examples first:

When this trident is located in the deputy, it will increase the player's swimming speed. If you want to add the attribute of "swimming speed" to him, you only need to enter this line of code in your ZS file.

  .anydamage (). AddglobalatRibutemodifier (, "Attribute11 ", 0.5, crafttweaker.api.entity.attribute.attributeoperation.multiply_total, []; 

Next explain the structure of this code in detail:

: This refers to the "item to be modified". General

/ct hand 

After that, the system will copy the ID of this item into your adhesive board in the form of sprinkles to be used in CRT, such as , etc.

.anydamage (): This string of code indicates that your attribute modification will take effect normally regardless of the durability of the item.If this string of code is not added, your attributes will only exist when the items are full of durability, and the additional attributes will disappear after losing durability;

.addglobalatributemodifier (...): This line of letters means adding a global attribute modifier to the item, telling the module that you want to affect the attribute value of the player, how to influence it depends on what you fill in the brackets, and the next stepThen introduce the code in parentheses;

: Specify the attributes to be modified. This is "swimming speed". Below is a list of attributes that can be called after only Forge and CRT:

Attribute Tag Name Name Remark

Biological flight speeds are effective for bats, magic wings, etc., and it is invalid to players. AFT: GENERIC.ARMOR> armor value

The most common "physical damage" of attack damage The jumping power of the horse will take effect on the mount, and will not modify the player's numerical Zombie reinforcement is invalid

Movement speed

Follow the scope of the player invalidation.

Attack speed

The probability of the lucky value of the player's fishing and the release box to get rare items

The step -up height allows players to go directly to a high or higher The distance of the player mining block and opening the working block AttackOnly modify the player's attack distance only. It must be less than the speed of to change the speed of the player swimming (running) in liquid Gravity will change the player's jump height and fall Speed; For 0, players cannot change their Y coordinates.

"Attribute1": The name of the attribute modifier can be filled in any letter or word in this dual quotation number, but it cannot be repeated. If you modify the attributes of the two items, these two "names" must be different.

0.5, crafttweaker.api.entity.attribute.attributeoperative.

· This "0.5" can fill in any value you want, but you must cooperate with the follow -up types of operation, such as (Multiply_total).

· The operation types are: addition, multiply_base, and multiply_total, etc.

The final value of a attribute is usually: (basic damage+addition) x (1+multiply_base) x (multiply_total). Among them, the foundation multiplication defaults 0, and the independent multiplication area is usually default.

· Take physical attack as an example, use Addition on the diamond sword and fill in the value "1", you will get a diamond sword with an attack power +8, add 1 basic damage to the original basic damage of the diamond sword (7), That is, the damage is (7+1) x (1+0) x1 = 8; at this time, you can use Multiply_base or Multiply_total for your diamond sword, and fill in the value of 0.5, your diamond sword damage will become (7+1) X (1+0.5) x1 = 12 or (7+1) x (1+0) x1.5 = 12, at first glance, there seems to be no difference between the two.Two Multiply_base or twice Multiply_total or do you fill in the value 0.5?· In the end, your diamond sword damage is (7+1) x (1) x (1) x (1+0.5+0.5) x1 = 16 after "using adDition and two multiply_base".7+1) X (1+0) x1.5x1.5 = 18; Generally speaking, the more complicated the calculation formula, the more the player's bonus to a certain attribute.The benefits of the independent multiplication area (Multiply_total) are even greater; therefore, in some modules (demented), "basic attack damage" and "total attack damage" will be used to distinguish the Multiply_base and Multiply_total when adding attack power, some materials, some materialsBags are also distinguished with+ x%and x x%.

[]: Specify the equipment slot of the effectiveness, such as Mainhand, Office (HEAD), chest armor field (Chest), leg protection fenceLEGS, FEET, etc. (FEET), etc.; The trident in the example can only increase the swimming speed when the deputy. If it is changed to Mainhand, it can take effect in the master.

Some people may ask: How do I delete the original attributes of the tool?As long as the negative number is filled in the "value" section, the value is equal to its original value.Armor splene?Super spleen!

Make items with more types of attributes

The above list can be said to have only some very basic attributes. In my screenshot, there are attributes such as "magic damage", "damage absorption" and "dodge". How do we modify the attributes that have not been mentioned on this list?

First of all, we have to add these attributes to the game. The big guys will register by themselves, and ordinary people who choose to add modules with these attributes, such as "deity", "Xingyue relics", "Hai Ling Story", "Leitlan"Series", they added a lot of attribute values ​​such as crit rate, dodge rate, block value, magic damage, flame damage, frost damage, etc., which can be used by us.

After the addition, we need to know the attribute label of the attribute. At this time, we open the game and enter the instruction:

/ct dump attributes 

Then click the blue word generated by the system to view all the properties provided by all modules in your game at the end of this file.

As for their attribute names and specific translations, please use major translation software.

After learning the above, you can freely modify the attributes of the item; modify the item description

For details of the Chineseization tutorial described by items, please see another Chinese tutorial on the module weapon props.