Workbench tools
Note: Glassmaking 2.0 introduces some changes in the json structure, update the tools if you're migrating from 1.0.
The tools included in the mod are described below, but in addition to them it is also possible to create custom types of tools.
Lathe
Tool code: lathe
Used to hold the workpiece and turn it.
{
"lathe": {
"recipeAttributes": {
"rpm": ...,
"transform": { ... },
"size": ...
}
}
}
- The
rpmparameter is the number of revolutions per minute. - The
transformparameter is the transformation of the workpiece relative to the center of the chuck. If this parameter is not defined, the lathe will not control the workpiece transformation. - The
sizeparameter is the size of the workpiece, based on which the jaws will be moved apart by a certain distance.
Blowtorch
Tool code: blowtorch
Used in operation where the glass or some parts should be heated.
{
"blowtorch": {
"recipeAttributes": {
"temperature": ...
}
}
}
- The
temperatureparameter specifies the minimum temperature should be provided by blowtorch.
Hand items
Tool code: handItem or otherHandItem
An item that must be held in the hand during crafting. The otherHandItem tool can be used if there's need to hold an additional item in the second hand.
{
"handItem": {
"type": ...,
"code": ...,
"isTool": ???,
...
}
}
The item will be consumed at the end of the step. If the item should not be consumed, but used as a tool add isTool: true parameter.
Liquid
Tool code: liquid
Consumes the liquid from any container in the hand.
{
"liquid": {
"type": ...,
"code": ...,
"recipeAttributes": {
"requiresLitres": ...
}
}
}
- The
typeparameter is the type of liquid portion (block or item). - The
codeparameter is the code of the liquid portion. - The
requiresLitresparameter is the amount of liquid needed.