Main
Vintage Story Mods

Adding casting mold

Example on github.

Parameters used by molds:


{
	"class": "glassmaking:castingmold",
	"entityClass": "glassmaking:castingmold",
	"attributes": {
		"glassmaking:castingmold": {
			"recipe": {
				"code": "...",
				"amount": ...,
				"allowedVariants": [...]
			},
			"output": {
				"type": "...",
				"code": "..."
			}
		},
		"fillHeight": ...,
		"fillQuadsByLevel": [...]
	}
}

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

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

The fillHeight and fillQuadsByLevel attributes are used to display the melt in the mold (acts same as the clay tool molds in vanilla).

The fillHeight attribute specifies the maximum melt height in voxels.

The fillQuadsByLevel attribute specifies the dimensions of the polygon with the melt. It is possible to specify one overall size, or for each voxel layer.