Terrarium
A pocket world built from blocks, floating in the dark and running its own ecology. Plant a tree and the forest takes it from there: trees mature, throw seeds into the neighborhood, crowd each other out and die of old age, and birds carry seeds between canopies. You set two dials: the rain, which moves the water table, and the sun, which is the whole life of the star this island is standing under. Let a century run, and then, if you want to see how it ends, let the light go.
A little world with rules, and a star it does not control.
Drag sideways to spin the island. Tap or click the grass and a tree grows; tap or click a tree and it comes down. Everything after that is the forest seeding itself. You set the rain and the sun. What grows is up to the forest.
- Kind
- Generative
- Status
- Live
- Made with
- Three.js · Voxels · Ecology sim
Notes
- 01The rules
- A sapling needs four things: dry ground above the water table, moisture within reach of standing water, enough room to see the sky, and light to spend. Nothing else is checked. Spacing is read off the moisture and the light, so a damp, well-lit island packs trees two cells apart and a thin one scatters them four, and a tree seeds more often the better it is standing. A tree starts seeding somewhere between two and a half and four and a half years old, keeps at it for the rest of its life, and dies of old age between eighteen and thirty-two. There is no population target anywhere in the code; the forest stops growing because it runs out of sky.
- 02Two dials, one clock
- The rain and the sun are conditions you set; the years run on their own, and the sun dial keeps its own clock, where one end to the other is billions of years. That split is the whole instrument: you can move a condition in a second, and then you have to sit through the consequence, which arrives in tree lifetimes. Move the rain and the pond swells or shrinks, the beach line follows, the moisture field redraws, and the forest migrates over the following decade. Move the sun and the same machinery answers a different input. Neither dial contains a single instruction about trees.
- 03The star’s life is the real one
- A Sun-like star brightens by roughly ten percent every billion years, which is enough to boil Earth’s oceans off long before the star leaves the main sequence, the long steady middle of its life. That is the middle of this dial: the heat lifts the water off the island, the moisture field collapses behind it, and the forest dies back to whatever is left of the pond while the ground goes to straw. Then the core runs out of hydrogen, the envelope swells and reddens and scours the place to rock, gets shed, and leaves a white dwarf with no fusion in it. The water freezes. The stars come out, because there is finally no daylight to hide them. Then the dwarf fades toward black, the rest of the sky goes out too, and the island is a rock you can only just make out.
- 04The birds do the planting
- Half the flights between canopies are carrying a seed, and it goes in where the bird lands. That is how the forest crosses ground no single tree could throw a seed over, and it is why the bird count matters: birds arrive as the canopy thickens and leave when it thins, so a wood that is spreading spreads faster than one that is holding.
- 05What to notice
- You cannot place a forest here. You can only place a tree and set the conditions, and the conditions decide what the tree amounts to. The same tap in a flood year and a red giant produces a wood and a dead sapling. Every system you will ever build sits on inputs you do not own. This is what it looks like when one of them goes: the design is unchanged and still correct, and the ground under it is gone.
- 06The manners
- The island only answers to one-finger sideways drags and a pinch, never up-and-down swipes, so scrolling past it on a phone always works. The controls arrive switched off and turn on when the world is real, because a button that looks live and does nothing is worse than one that admits it is waiting. Plant a tree does what tapping the grass does for anyone who is not using a pointer. With reduced motion on the whole instrument stays, including the decade skip and both dials; what goes away is only the things that ran on their own.