EverambleGAME API / 1

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

NameTypeMeaning
hitsnumberNumber of standard tool hits needed to remove a block; fractional damage accumulates.
Range: 1…255
impactMiningImpactPhysical contact effect emitted for each stroke.
itemItemIdItem 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
regrowsbooleanWhether excavated blocks use the ruleset's mineral regrowth interval.
resource_codenumberTwo-bit resource code in generated terrain columns; unique across material definitions.
Range: 0…3
target_materialNameCollision material name returned for this resource; unique across mining definitions.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$