Main
Vintage Story Mods

Adding blowing mold

Example on github.

Parameters used by molds:


{
	"class": "glassmaking:glassmold",
	"entityClass": "glassmaking:glassmold",
	"variantgroups": [
		{
			"code": "state",
			"states": ["opened", "closed"]
		}
	],
	"attributes": {
		"glassmaking:glassmold": {
			"output": {
				"type": "...",
				"code": "..."
			},
			"recipe": [
				{
					"name": "...",
					"code": "...",
					"allowedVariants": [...],
					"amount": ...,
					"var": ...
				}
			],
			"fillTime": ...
		},
		"contentsTransform": { ... }
	}
}

To specify that a block is a mold, you need to use the block and entity class glassmaking:glassmold.

The recipe is described in the glassmaking:glassmold attribute, you can specify either a single entry or an array:

If variantgroups is used with the code state, mold blowing is only possible in the closed state.

If the contentsTransform attribute is specified, then the form will store the result in the internal inventory and display it until the item is picked up. In the closed state, the item is not displayed.