1.12.2 Use CRT to control items and dimensions.

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

GameStage is an important MOD as an integrated package. No one in the station uses the code of ZS, so let me explain it to you.

Before reading this tutorial, I define the reader's basic CRT use ability and simple ZS language code use ability. If the reader lacks, he can learn tutorials in the CRT area.

Because GameStage is only the front, this tutorial will bring the item stage (reached the corresponding stage to see the item) and the dimension stage (the corresponding stage can enter the dimension)

Define the game stage (1.12.2 and the following versions can be skipped)

Find a JSON file of .minecraft/config/GameStages/, enter the name of the input stages in the bracket, use English, separate

 // Example

[

"coal",

"Iron",

"Gold",

"Diamond"

]

Increase the game stage to the item

After increasing the game stage, you can only pick up the corresponding stage (the creative mode ignoring) and display the name and view it in Jei

Create a new ZS file under the Scripts folder

 Import Mods.Itemstages.addItemstage; // Guide package

// grammar: additeMStage ("Stage", item);

// For example: can I unlock the iron ingots after the coal stage is completed

addItemstage ("Coal", );

When there are more items, for example, only after the Iron stage is completed, diamonds, red rocks, obsidian.But once there are too many items, you need more code.

I give the following solutions

Using/ct inventory can output all the items of the backpack into the log in

 Import Mods.Itemstages.addItemstage;

Import crafttweaker.item.iitemstack; // guide package

var Item as IItemstack [] = [

,

,

]; // Define a array that stores diamonds, red stones, obsidian.Enter the car to choose from, here to facilitate reading

for I in item {

addItemstage ("Iron", I);

} // Traversing the array, and add each element to the Iron stage

Increase the game stage to the dimension

For example: Only after completing the Diamond stage can we enter the lower bound and twilight forests (assuming the existence of Twilight MOD)

TIPS: Use/Forge Dimensions to register the digital ID of all dimensions in all dimensions in the chat bar

 Import Mods.dimensionStages.adddimensionStage; // guide package

addimensionStage ("diamond", -1); // lower bound dim = -1

addimensionStage ("diamond", 7); // Twilight dim = 7

Similarly, for the sake of convenience, when there is a lot of dimensions, you can also use a cycle, for example, as follows:

 Import Mods.dimensionStages.adddimensionStage;

Import crafttweaker.item.iitemstack; // guide package var dim as int [] = [

-1,7

];

for I in dim {

addimensionStage ("diamond", i);

}