Home Migration Guide Getting Started With Scripts Commands Examples
Generic JSON Recipes

Crucible

This class was added by a mod with mod-id eidolon_tweaker. So you need to have this mod installed if you want to use this feature.

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import mods.eidolon.Crucible;

Static Methods

Return Type: Crucible

script.zs
Crucible.create(name as string, result as IItemStack) as Crucible
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided
Parameter
result
Type
IItemStack
Description
No Description Provided

Return Type: void

script.zs
Crucible.remove(resourceName as string) as void
ParameterTypeDescription
Parameter
resourceName
Type
string
Description
No Description Provided

Return Type: void

script.zs
// Crucible.removeAll() as void
Crucible.removeAll();

Constructors

No Description Provided

script.zs
new Crucible(name as string, result as IItemStack) as Crucible
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided
Parameter
result
Type
IItemStack
Description
No Description Provided

Methods

Return Type: Crucible

script.zs
Crucible.addStep(stirs as int) as Crucible
ParameterTypeDescription
Parameter
stirs
Type
int
Description
No Description Provided

Return Type: Crucible

script.zs
Crucible.addStep(input as IItemStack[], function as CrucibleRecipeFunction) as Crucible
ParameterTypeDescription
Parameter
input
Type
IItemStack[]
Description
No Description Provided
Parameter
function
Type
CrucibleRecipeFunction
Description
No Description Provided

Return Type: Crucible

script.zs
Crucible.addStirringStep(stirs as int, input as IItemStack[], function as CrucibleRecipeFunction) as Crucible
ParameterTypeDescription
Parameter
stirs
Type
int
Description
No Description Provided
Parameter
input
Type
IItemStack[]
Description
No Description Provided
Parameter
function
Type
CrucibleRecipeFunction
Description
No Description Provided

Return Type: void

script.zs
// Crucible.register() as void
myCrucible.register();