Cave-In

Caves now have ability to cave-in thanks to this module. Cave-in can possibly cover you in rocks and harm you which varies by rock type. Cave-in can by prevented by placing logs / planks.

Details
Cave-ins do not occur in places where the stone density is not high enough. Quintessentially, this means that they only occur below ground in deeper caves.

A cave-in can occur when: Cave-ins also do not occur when the player is standing below a block (other than air) that is not a stone variant or stone itself. This means that building a roof of cobblestone will protect the player from any potential cave-ins.
 * 1) Stone or stone variants are mined (10% chance)
 * 2) TNT exploding or TNT cart exploding after being triggered by an activator rail (TNT carts exploding on crash do NOT cause cave-ins)
 * 3) Wither spawn explosion
 * 4) Cave-in powder is used from the Runic Magic module (to be confirmed)

When a cave-in occurs, the blocks collapse downwards and drag blocks that are below them. This means that, in a cave which is gently sloping downwards, a collapse at the entrance may lead to the entire system to fall.

A very steep cave will not collapse as much, however.

Damage
By wearing a helmet and proper armour, the player is usually able to survive such episodes. However, their helmet will take the brunt of the damage. A regular diamond helmet can be broken in just 3 cave-in episodes.

Supports
Supports can come in different forms. Currently, logs support a 21x21 area while planks support a 11x11 area with the support in the centre of the grid. Supports prevent cave-ins from occurring, and when a player is mining, should support the roof of the cavern/strip-mine.

Technical details
The Cave-In module relies on a pseudorandom clock to calculate the chance of collapse when a player mines a stone block/stone variant. Every module tick, a score of 27 is added to the main TesseractFour armour stand. When the score is higher than 100, 100 is deducted. Generally, cave-ins occur when the score is below 9 and the player is mining a block, giving a chance of about 10%.

In determining whether the area is suitable for collapse or otherwise, the module clones stone blocks to its overlapped position and logs down the number of stone cloned. If the number of stone in the area exceeds 500 blocks, it means that the position is suitable for collapse.

Trivia
It is possible to use the Cave-In module to cause a huge escapade. ChocoParrot postulated that a player on the server can prepare a cave in such a manner so that when it collapses, it would cause a huge chain effect.

This is particularly useful on PvP servers in which a player can meticulously plan an attack against another player by preparing a cave and collapsing it when the victim is in the system.