your current location:首页 > news>[1.12.2] How to use the CRT magic transformation nuclear power process (radiation chapter) [NC] NuclearCraft (NUCLEARCRA

[1.12.2] How to use the CRT magic transformation nuclear power process (radiation chapter) [NC] NuclearCraft (NUCLEARCRA

2024-12-10 17:57:55|Myriagame |source:minecraft skins

Note: The dual brackets ([...]) in the function are necessary.This is basically because all NUCLEARCRAFTTWER methods need an object array

All recipes include five sets of information -input, fluid input, item output, fluid output and additional information.The first four are obviously the ingredients and products involved in the formula. The additional information includes the processing time and power of the machine, the basic life, the power of the fusion combination, and the heat variables of the fusion combination.

All parts of the formula are simply listed in the method-internal nuclearcraft code to process them into these five categories and pack information and pack information into formula

Add items to get radiation

 mods.nuclearcraft.radiation.getradiationLevel (iteminput); 

Add block transformation.When the radiation is lower than the radiation threshold, the square will not change

 Mods.nuclearcraft.radiation.AddBlockMutation (BlockInput, Blockoutput, Double RadiationThrest); 

Adjust the player's anti -radiation ability according to the game stage

This method allows players to control the radiation ability according to the game stage.DefaultImmunity specifies the anti -radiation capacity of players without the specified stage.Stagenames is an array of all stages names that can switch the player's anti -radiation ability.

 Mods.nuclearcraft.radiation.setraduNIMUNITYGAMESTAGES (Boolean DEFAULTIMMUNITY, String [] Stagenames); 

Add radiation

Amount is the amount of radiation added to the entity.USEIMMUNITY (through anti -radiation) control function occurs, even if the entity is immune.

 IENTITYLIVINGBASE.ADDRADIATION (double amount, @optional boolean userimmunity); 

Set physical radiation level

Amount is a radiation level applied to the entity.The userimmunity control function occurs, even if the entity is immune.

 IENTITYLIVINGBASE.SETRADIATION (double amount, @optional boolean userimmunity); 

Get radiation level information

Get the radiation level information of the specified entity.

 IENTITYLIVINGBASE.Getradiation (); 

Add radiation resistance value

Amount is the value of radiation resistance added to the entity.Slowbuffer determines whether the radiation BUFF added is slow BUFF.

 IENTITYLIVINGBASE.ADDRADIATIONRESISTANCE (Double Amount, @Optional Boolean Slowbuffer); 

Set the radiation resistance value

Amount is the value of the radiation resistance of the entity.Slowbuffer determines whether the radiation BUFF added is slow BUFF.

 IENTITYLIVINGBASE.SETRADIATIONRSISTANCE (Double Amount, @Optional Boolean Slowbuffer); 

Get biological radiation resistance

Get the radiation resistance value of the entity.Slowbuffer determines whether the radiation BUFF added is slow BUFF.

 IENTITYLIVINGBASE.GetraductionResistance (@optional Boolean Slowbuffer); 
Add poisoning Debuff

Amount is the radiation value of the poisoning buff to the entity.

 IENTITYLIVINGBASE.ADDPOISONBUFFER (double amount); 

Set poisoning Debuff

Amount is to set the radiation value of the physical poisoning buff.

 IENTITYLIVINGBASE.SETPOISONBUFFER (double amount); 

Get poisoning DEBUFF radiation value

 IENTITYLIVINGBASE.GetpoisonBuffer (); 

Increase anti -radiation

Amount is an anti -radiation value added to the entity.

 IENTITYLIVINGBASE.ADDRADAWAYBUFFER (double amount); 

Set radiation resistance

Amount is an anti -radiation value applied to the entity.

 IENTITYLIVINGBASE.SetraDawaybuffer (double amount); 

Get anti -radiation ability value

This method returns the radiation resistance value of the entity.

 IENTITYLIVINGBASE.GetraDawaybuffer (); 

Initial radiation level

Return to physical radiation in the unit of RADS.

 IENTITYLIVINGBASE.GetrawRadiationLevel (); 

Radiation level

Get the change of physical radiation level, the unit is RADS/TICK.

 IENTITYLIVINGBASE.GetradiationLevel ();