Note: The double set of brackets ([...]) is not required here!

This method gets the radiation of an IIngredient in rads/tick.

ZenScript
Copy
mods.nuclearcraft.radiation.getRadiationLevel(itemInput);

This method adds a block mutation. The Block will not mutate when the radiation is below radiationThreshold.

ZenScript
Copy
mods.nuclearcraft.radiation.addBlockMutation(blockInput, blockOutput, double radiationThreshold);

Radiation Immunity

Link to radiation-immunity

This method gives the ability to control the immunity of players depending on the stage. defaultImmunity is a boolean specifiying the players' immunity without the specified stages. stageNames is an array of the names of all stages that can toggle the immunity of players.

ZenScript
Copy
mods.nuclearcraft.radiation.setRadiationImmunityGameStages(boolean defaultImmunity, string[] stageNames);

Radiation Getters/Setters

Link to radiation-getterssetters

Adding Radiation

Link to adding-radiation

amount is the amount of radiation added to the IEntityLivingBase. useImmunity controls whether the function occurs even the IEntityLivingBase is immune.

ZenScript
Copy
IEntityLivingBase.addRadiation(double amount, @Optional boolean useImmunity);

Setting Radiation

Link to setting-radiation

amount is the level of radiation that is applied to the IEntityLivingBase. useImmunity controls whether the function occurs even the IEntityLivingBase is immune.

ZenScript
Copy
IEntityLivingBase.setRadiation(double amount, @Optional boolean useImmunity);

Getting Radiation

Link to getting-radiation

This method returns the level of radiation of the IEntityLivingBase.

ZenScript
Copy
IEntityLivingBase.getRadiation();

Radaway Buffer Getters/Setters

Link to radaway-buffer-getterssetters

Adding Radaway Buffer

Link to adding-radaway-buffer

amount is the amount of Radaway Buffer added to the IEntityLivingBase. slowBuffer decides if the Radaway Buffer added is a slow buffer.

ZenScript
Copy
IEntityLivingBase.addRadiationResistance(double amount, @Optional boolean slowBuffer);

Setting Radaway Buffer

Link to setting-radaway-buffer

amount is the amount of Radaway Buffer that is applied to the IEntityLivingBase. slowBuffer decides if the Radaway Buffer added is a slow buffer.

ZenScript
Copy
IEntityLivingBase.setRadiationResistance(double amount, @Optional boolean slowBuffer);

Getting Radaway Buffer

Link to getting-radaway-buffer

This method returns the Radaway Buffer of the IEntityLivingBase. slowBuffer determines whether slow buffer is included in the returned value.

ZenScript
Copy
IEntityLivingBase.getRadiationResistance(@Optional boolean slowBuffer);

Poison Buffer Getters/Setters

Link to poison-buffer-getterssetters

Adding Poison Buffer

Link to adding-poison-buffer

amount is the amount of Poison Buffer added to the IEntityLivingBase.

ZenScript
Copy
IEntityLivingBase.addPoisonBuffer(double amount);

Setting Poison Buffer

Link to setting-poison-buffer

amount is the amount of Poison Buffer that is applied to the IEntityLivingBase.

ZenScript
Copy
IEntityLivingBase.setPoisonBuffer(double amount);

Getting Poison Buffer

Link to getting-poison-buffer

This method returns the Poison Buffer of the IEntityLivingBase.

ZenScript
Copy
IEntityLivingBase.getPoisonBuffer();

Radiation Resistance Getters/Setters

Link to radiation-resistance-getterssetters

Adding Radiation Resistance

Link to adding-radiation-resistance

amount is the amount of Radiation Resistance added to the IEntityLivingBase.

ZenScript
Copy
IEntityLivingBase.addRadawayBuffer(double amount);

Setting Radiation Resistance

Link to setting-radiation-resistance

amount is the amount of Radiation Resistance that is applied to the IEntityLivingBase.

ZenScript
Copy
IEntityLivingBase.setRadawayBuffer(double amount);

Getting Radiation Resistance

Link to getting-radiation-resistance

This method returns the Radiation Resistance of the IEntityLivingBase.

ZenScript
Copy
IEntityLivingBase.getRadawayBuffer();

Radiation Level Getters

Link to radiation-level-getters

Raw Radiation Level

Link to raw-radiation-level

This method returns the radiation of the IEntityLivingBase in rads.

ZenScript
Copy
IEntityLivingBase.getRawRadiationLevel();

This method returns the change in radiation level of the IEntityLivingBase in rads/tick.

ZenScript
Copy
IEntityLivingBase.getRadiationLevel();