Table of Contents

Class CrushingProperties

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Defines a set of properties that allow an object to be ground in a quern.

public class CrushingProperties
Inheritance
CrushingProperties
Inherited Members
Extension Methods

Examples

"crushingPropsByType": {
	"ore-poor-ilmenite-*": {
		"crushedStack": {
			"type": "item",
			"code": "crushed-ilmenite"
		},
		"quantity": { "avg": 1 },
		"hardnessTier": 4
	},
	"ore-poor-cassiterite-*": {
		"crushedStack": {
			"type": "item",
			"code": "crushed-cassiterite"
		},
		"quantity": { "avg": ".33" },
		"hardnessTier": 1
	},
},

Fields

CrushedStack

If set, the block/item is crusable in a pulverizer and this is the resulting itemstack once the crushing time is over.

public JsonItemStack CrushedStack

Field Value

JsonItemStack

HardnessTier

The hardness tier for this collectible. Affects what pounder cap must be used for pulverization.

  • 0 = stone
  • 1 = copper
  • 2 = bronze
  • 3 = iron
  • 4 = steel
public int HardnessTier

Field Value

int

Quantity

The random quantity of item to return. Note that this value is multiplied by CrushedStack's quantity.

public NatFloat Quantity

Field Value

NatFloat

Methods

Clone()

Makes a deep copy of the properties.

public CrushingProperties Clone()

Returns

CrushingProperties