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

Worktable

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.Worktable;

Static Methods

Return Type: void

script.zs
Worktable.register(name as string, core as IItemStack[], extra as IItemStack[], result as IItemStack, matrix as WorktableRecipeFunction) as void
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided
Parameter
core
Type
IItemStack[]
Description
No Description Provided
Parameter
extra
Type
IItemStack[]
Description
No Description Provided
Parameter
result
Type
IItemStack
Description
No Description Provided
Parameter
matrix
Type
WorktableRecipeFunction
Description
No Description Provided

Return Type: void

script.zs
Worktable.remove(name as string) as void
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided

Return Type: void

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