Use COT to build a soul -soul material [COT] ContentTweaker Minecraft Game

This tutorial is set by the author's setting without permission.

This tutorial is suitable for artisan soul 2 (1.12.2), the COT version is not limited

Some punctuation symbols in this tutorial code are all punctuation symbols in English

※ The code of this tutorial will be summarized at the end. If you just need the code to directly skip the previous explanation, go directly to the final instance to copy it, and this tutorial is suitable for the artisan soul armor.

Must -write content with "☆"

☆ The first step: guide bag

By the way, do you have to do one more thing before guide the package

#Loader ContentTweaker

The meaning of this step is to load this ZS script with COT. This step is very, very important. If you do not write the default as CRT loading, it will have problems. In the end

Then there is the code of the guide package, I don’t know why they want to guide these bags.

Import Crafttweaker.liquid.iliquidstack;

Import crafttweaker.game.igame;

Import Mods.ContentTWEAKER.TCONSTRUCT.MATERIAL;

Import mods.contenttweaker.tconstruct.matialBuilder;

Import Mods.ContentTweaker.flum;

Import Mods.ContentTweaker.Vanillafactory;

Import Mods.ContentTweaker.Color;

Import Mods.ContentTweaker.Conarm.extExEDMATERILDER;

Step 2: Create an artisan soul material called Yunxi, and set some basic data

Tip: This can build artisan soul armor, if you don’t need to view this

☆ Create an ID to yunxi:

value yunxi = extendedmaticBuilder.create ("yunxi");

※ You can only modify the yunxi here. Others must not be modified. Yunxi is the ID of your craftsmanship material. One ID can only be "numbers", "English" or "_"

☆ I found no color?Try to add this

yunxi.color = 0xffeb3b;

※ Yunxi is the ID.COLOR = 0x hexadecimal color code you want to register;

Smelting furnace production

yunxi.castable = true;

※ You can write False or True after "="

Component table

yunxi.craftable = true;

※ You can write False or True after "="

The items displayed by the artisan soul, I am a bread here

yunxi.RepRersentativeItem = ;

※ After "=",

The fluid required by the smelting furnace, I am an magma here, if it is only a part of the parts processing platform, you can’t write it.

yunxi.liquid = ;

The items needed by the component processing table, I am a bread here, if it is just a smelting furnace, you can’t write

☆ yunxi.addItem ();

☆ ※ The icon is displayed in the book. In parentheses, , I am a bread here

☆ yunxi.localizedName = "bread";

☆ ※ Localized name, I am a bread here, there seems to be another way, it’s not clear, you can go here to see

☆ Step 3: Set up basic attributes for materials

☆ Examples: yunxi.addheadmaterILSTATS (200, 3.5, 3, 0);

☆ ※ Specific method: yunxi.add components name Materiralstats (value);

This material can make the top, the specific attribute is 200 durability, the 3.5 mining speed, the attack power of 3, the 0 mining level (stone)

The value filled in the component ID and brackets is as follows

Top (head): durability-excavation speed-attack power-mining level

Handle: The handle coefficient-durability

Other components (EXTRA): durable

Bow arm (BOW): Pull the bow speed (a mysterious big man says the value of the artisan soul book*this value = 1)-range coefficient-additional damage

Projectile: Can't write things in parentheses

Bowstring: Fletching: strengthen-accuracy

Base (Core): durability-armor armor

Trust (Plates): strengthen-durable-toughness

Trim: durability

Discovery has no characteristic?

Don't worry about talking right away

Example: yunxi.addmatictrait ("frame", "head");

※ This ID adds a characteristic of the ID component of yunxi

The method is as follows:

yunxi.addmatericaltrait ("Features ID", "Component Name");

※ The component name is not written to add this feature to all components

※ If you have multiple features, you need to write a few more addmaterialtrait

※ Outside of the question: Sometimes COT does not recognize certain features to use artisan soul adjustments. For details, please check the comment area of ​​this tutorial.

☆ Step 4: Register

The method is as follows:

yunxi.register ();

※ Your ID.register ();

※ Can't write things in parentheses

Code part:

#loader contenttweaker

Import Crafttweaker.liquid.iliquidstack;

Import crafttweaker.game.igame;

Import Mods.ContentTWEAKER.TCONSTRUCT.MATERIAL;

Import mods.contenttweaker.tconstruct.matialBuilder;

Import Mods.ContentTweaker.flum;

Import Mods.ContentTweaker.Vanillafactory;

Import Mods.ContentTweaker.Color;

Import Mods.ContentTweaker.Conarm.extExEDMATERILDER;

value yunxi = extendedmaticBuilder.create ("yunxi");

yunxi.color = 0xffeb3b;

yunxi.castable = true;

yunxi.craftable = true;

yunxi.RepRersentativeItem = ;

yunxi.liquid = ;

yunxi.additem ();

yunxi.localizedName = "bread";

yunxi.addheadmaticstats (200, 3.5, 3, 0);

yunxi.addhandlematicstats (0.2, 70);

yunxi.adDextramateriLSTATS (-30);

yunxi.addbowmaticstats (2.2, 1, 0.2);

yunxi.addprojectilematicmaterstats ();

yunxi.addbowstringmaticstats (2.25);

yunxi.addfletchingmaticstats (1.0, 2.5);

yunxi.addcorematicstats (80, 4);

yunxi.addplatesmaticstats (0.25, 10, 0.25);

yunxi.addtrimmasterStats (20);

yunxi.addmaterialtrait ("Blasting", "BowString"); yunxi.addmaterialtrait ("Blasting", "Head");

yunxi.addmatictrait ("frame", "head");

yunxi.addmatictrait ("Dense");

yunxi.register ();

Well, let's restart the game now. If you are afraid of error, you can enter the/CT SYNTAX instruction first. If you have no error, restart the game. If you check carefully, you can send code and logs in the comment area if you cannot solve it.

What?What should you do if you say that you can't get a fluid with a smelting furnace?

Then go to see this tutorial.