A volcano is the surface vent of a deep plumbing system. Molten rock โ magma โ collects in a chamber kilometres down, rises because it is lighter than the rock around it, and forces its way up a conduit to the vent. Whether the result is a gentle river of lava or a violent ash blast comes down to just two things: how much gas the magma carries and how sticky (viscous) it is. Play with both below.
A cut-away view: a magma chamber feeds a conduit that rises to the vent through a layered cone. Set the two controls that decide everything. Low gas + runny (low viscosity) magma erupts gently as effusive lava flows (Hawaiian-style). High gas + sticky (high viscosity) magma traps its gas, pressure builds, and it bursts in an explosive ash plume with pyroclastic flows. Then press Trigger eruption.
As magma and its dissolved gas keep accumulating in a sealed chamber, pressure climbs. Sticky magma plugs the conduit so nothing escapes โ exactly like a shaken, capped fizzy drink. When the pressure beats the strength of the rock cap, it fails all at once: the gas rushes out of solution, expands explosively, and the gauge drops as the eruption vents the pressure. Hold "Pump magma + gas" to charge it up.
The whole story in three sentences: