CONTENT CONTRACT · VERSION 1
TerrainMining
Mining properties of a material, shared by player and resident tools and target queries.
Signature
{ hits: number, impact: MiningImpact, item: ItemId, regrows: boolean, resource_code: number, target_material: Name }Fields
| Name | Type | Meaning |
|---|---|---|
hits | number | Number of standard tool hits needed to remove a block; fractional damage accumulates. Range: 1…255 |
impact | MiningImpact | Physical contact effect emitted for each stroke. |
item | ItemId | Item yielded by destroying one exposed terrain block. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
regrows | boolean | Whether excavated blocks use the ruleset's mineral regrowth interval. |
resource_code | number | Two-bit resource code in generated terrain columns; unique across material definitions. Range: 0…3 |
target_material | Name | Collision material name returned for this resource; unique across mining definitions. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |