[CT-HELP] The concept and practical application of mineral dictionary [CRT] CRAFTTWEAKER MINECRAFT Game

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

This tutorial is suitable for Crafttweaker, whether the API is compatible with it

The textbook part from Bilibili's "Minecraft Module Introduction-CRAFTTWEAKER, MODTWEAKER, Modtweaker full introduction -12p" (AV13038655) (AV13038655)

Some example questions are from "http://www.mcbbs.net/thread-304800-1-1.html" of "http://www.mcbbs.net/thread

The tutorial is edited by the editor by themselves. The full text uses (salty cat) chenwe_i_lin personal name, and uses the CC by-NC-ND statement protocol for protection

===========================================

OD (OredictionAry, that is, mineral dictionary) is a way to create synthesis for FORGE. It is mainly used for MOD to support certain MOD mineral synthesis. For exampleIt will be very disturbing. FORGE ORICTIONARY is a system that allows different modules to be universal. For example, collecting different copper mines in the world can be used to synthesize the same items, or even mix and use it.Intersection(Rebirth of the original words+a small modification, can you give me the rebirth sauce qwq)

Most mods such as IC2, TE, TIC, RC, FR, etc. are registered with the mineral dictionary, such as IC2's copper ingots are registered as Ingotcopper, TE copper mine is registered as Orecopper

OD plays an important role in multi -MOD generally

========== The end of the concept part ===========================

① The application of.od in the ZS script

(1). In the case of multiple mods, such as IC+TE, when you want to use two MODs such as bronze to write recipes ... the name of the item can only correspond to one item, and the bronze of the two mods usually is commonly available.Nympho

It can be seen that it is not possible to mark it only ...

For example:

recipes.addshapet (*2,

[, , ],,],],

[, , ],],],], [

[, , ]]

);

But this can only be used with IC's barrels and tin ... what to do, I want to use Te!

Oh, so let's come:

 Import Minetweaker.Item.iitemstack; Val One = [, ] as IITEMSTACK; Val Two = [, , ] as IITEMSTACK; Val Three = [*2, [One, Two, Three]); 
// Reduce the synthesis of game playability XD

Lazy use the array (funny)

In this way, you can use any MOD iron copper tin, as long as they have registered their minerals to this OD 233

You can also make a mineral dictionary yourself!

②. Custom mineral dictionary

A good child who dares to change the magic is to pinch OD yourself!

(1). Add something to the specified mineral dictionary

  .Add (); 

This is a template. Like the last time, you can throw it directly!

(2). Moving something out of the specified mineral dictionary

  .remove (); 

The bank is a template ↑

 (3). Unidirectional replacement OD (create a mirror, contain A and B, A can replace b, b, not to replace A) 
.mirror ();

The ↑ line is the same as a template.

(4). OD and (all the entries of A are added to B under B)

  .addall (); 

The ↑ line is the same as a template.

(5) Newly added OD

Entering an OD is considered by CT to add a new OD. You can make a lot of wonderful improvements to this OD, but that's it. There is nothing to say.

 value = ; Oda.add (). Addall (); 

This is the end of this tutorial