Skip to content

Handheld Purifier

Invadermonky edited this page Jul 22, 2025 · 2 revisions

Overview

Adds new fluid interactions when using Survival Tools Handheld Purifier. You can use this to define new fluid interactions when attempting to convert liquids into purified water.

Parameter Description
inputLiquid The liquid that will be converted into Purified Water. 1000mB or 1 block of this fluid will be drained from the source to perform this recipe.
outputAmount The amount of Purified Water generated by this interaction.
canFillBottles Whether this recipe can fill empty bottles with Purified Water. This is useful for liquids that only produce small amounts of Purified Water.

CraftTweaker

Importing

import mods.survivaltools.HandheldPurifier;

Adding Recipes

//mods.survivaltools.HandheldPurifier.addRecipe(ILiquidStack inputLiquid, int outputAmount, boolean canFillBottles);
mods.survivaltools.HandheldPurifier.addRecipe(<fluid:water>, 1000, true);

Removing Recipes

//mods.survivaltools.HandheldPurifier.removeRecipe(ILiquidStack inputLiquid);
mods.survivaltools.HandheldPurifier.removeRecipe(<fluid:water>);
//mods.survivaltools.HandheldPurifier.removeAll();
mods.survivaltools.HandheldPurifier.removeAll();

GroovyScript

Importing

import mods.survivaltools.HandheldPurifier

Adding Recipes

//mods.survivaltools.HandheldPurifier.addRecipe(Fluid input, int outputAmount, boolean canFillBottles)
mods.survivaltools.HandheldPurifier.addRecipe(fluid('water'), 1000, true)

Removing Recipes

//mods.survivaltools.HandheldPurifier.removeRecipe(Fluid input)
mods.survivaltools.HandheldPurifier.removeRecipe(fluid('water').getFluid())
//mods.survivaltools.HandheldPurifier.removeAll()
mods.survivaltools.HandheldPurifier.removeAll()

Clone this wiki locally