EMCSTAGE How to use EMCSTAT MINECRAFT Game

Added item stage

1.1.0

In the latest version, if the module has updated this tutorial will be updated simultaneously.

Pack:

 {{

"Type": "emc_stage: stage_limit",

"Limit_item": {

"Item": "Minecraft: Iron_INGOT"

},

"STAGES": ["Two", "Three"],

"Require": TRUE

}

Add TWO and Three's transformation phase to the iron ingots and need to be achieved at the same time.

If the Require field is changed to FALSE, the TWO and Three phase can be reached at any.

Crafttweaker:

  .add (Stack as Iitemstack, Stages as String [], Require as Boolean); 

The meaning of the Require field here is the same as above.

1.0.0

Pack: packet:

 {{

"Type": "emc_stage: stage_limit",

"Limit_item": {

"Item": "Minecraft: Bedrolk"

},

"Stage": "TWO"

}

Adding a TWO conversion phase to Kenya, this version is limited to adding a stage.

Crafttweaker:

  .add (Item as IITEMSTACK, Stage as String); 

CRT player expansion

CRT player name:

 Crafttweaker.api.player.mcplayEncentity; 

Method name Explanation Getemc ()

LONG Get the player EmcgetBigintegerPlayermc ()

java.math.biginteger If the player EMC exceeds the LONG limit (may be a problem) SETEMC (Long Value) VOID setting the player EMCHASKLEDGE (IITEMSTACK) Boolean determines whether the player exists in a certain item conversion table knowledge ADDKNOWLED GE (IITEMSTACK Stack) BooleanPlayer adds an item converting table knowledge, and return whether to successfully add Removeknowledge (IItemstack Stack) Boolean to delete an item converting table knowledge for the player, return whether the return is successfully deleted

example:

When the player picks up items:

Output the player's EMC value; set the player's EMC to 114,514;

Whether the player has the knowledge of the transformation of base rock;

Add the knowledge of iron ingots to players and ignore the return value.

 Import Crafttweaker.api.Events.CTEVENTMANAGER;

Import crafttweaker.api.event.entity.player.mcitempickupevent;

CteventManager.register (Event => {{

Var Player = Event.player;

Println (Player.Getemc ());

Player.Setemc (114514);

Println (Player.hasknowledge (););

Player.addknowledge ();

});