Adding casting mold
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:
output- what item will be crafted.recipecode- glass codeamount- required amount of glass (1000 units of glass are equivalent to one block by volume)allowedVariants- allowed variants for wildcard
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.