TerraMath: Custom Terrain Formulas for Minecraft Worlds

TerraMath lets you shape Minecraft terrain with math formulas. Download TerraMath for Minecraft and build unique landscapes with ease.

Download terramath for Minecraft 1.21, 1.20.2, 1.20.1

Original name: terramath

Minecraft: 1.20.1, 1.20.2, 1.21

Loaders: Fabric, Forge

FileVersionLoaderSize
terramath-1.1.0-1.20+fabric.jar1.20.1Fabric82 КБDownload
terramath-1.3.0-1.20+fabric.jar1.20.1Fabric1.2 МБDownload
terramath-1.2.0-1.20.4+fabric.jar1.20.2Fabric82 КБDownload
terramath-1.3.0-1.20.4+fabric.jar1.20.2Fabric1.2 МБDownload
terramath-1.3.0-1.20.6+fabric.jar1.21Fabric1.2 МБDownload
terramath-1.1.0-1.20+forge.jar1.20.1Forge83 КБDownload
terramath-1.3.0-1.20+forge.jar1.20.1Forge1.2 МБDownload
terramath-1.2.0-1.20.4+forge.jar1.20.2Forge83 КБDownload
terramath-1.3.0-1.20.4+forge.jar1.20.2Forge1.2 МБDownload
terramath-1.3.0-1.20.6+forge.jar1.21Forge1.2 МБDownload

TerraMath: Sculpt Minecraft Worlds with Mathematical Formulas

Imagine generating terrain where every hill, valley, and cliff is defined by a formula you wrote yourself. That is exactly what TerraMath delivers. This add-on for Minecraft replaces standard noise-based world generation with a mathematical expression engine, giving you total control over the shape of your landscape. If you have ever wanted to build a world that follows the curve of a sine wave or the spikes of a hyperbolic function, this is the tool for you.

What TerraMath Does

TerraMath is a world generation mod that calculates terrain height using mathematical functions. Instead of accepting the vanilla terrain as-is, you enter a formula, and the mod evaluates it for every block coordinate in the world. The result is a height value that determines how high or low the terrain sits at that point.

The add-on supports Minecraft 1.20 through 1.21.x and is built for the Fabric loader, so it fits neatly into modern modded setups. Whether you run a single-player world or a dedicated server, TerraMath gives you the same formula-driven control.

Core Features

  • Custom world generation driven by mathematical formulas
  • Adjustable base parameters: scale, base height, height variation, and smoothing
  • Configurable noise overlay layered on top of your base formula
  • Support for mathematical constants such as pi, e, and the golden ratio
  • Dozens of built-in functions covering trigonometry, logarithms, roots, and special functions

How to Install TerraMath for Minecraft

Getting started is straightforward. First, make sure you have Fabric installed for your Minecraft version. Then place the TerraMath mod file into your mods folder and launch the game. If you prefer a simpler route, the foxygame.net launcher handles TerraMath installation in a single click and keeps it updated automatically whenever a new build is released, which saves you from manually chasing version compatibility.

Once the game loads, open the world creation screen and go to the World tab. From there, open the terrain settings interface and enter your formula in the designated field. You can also tweak optional parameters like scale, base height, height variation, and smoothing to fine-tune the result before you ever step into the world.

Configuring Noise and Parameters

Beyond the base formula, TerraMath lets you overlay noise for extra detail. You can choose from Perlin, Simplex, Blended, or Normal noise, then adjust the X, Y, and Z coordinate multipliers along with a general noise height multiplier. This is useful when a pure formula feels too clean and you want natural-looking roughness on top of it.

Using TerraMath on a Server

Server owners are not left out. Start your server with TerraMath installed, and a terramath.json file will appear in the config folder. You can edit the parameters directly in that file, or configure everything on your client and transfer the config to the server. Just remember that for a new world to use your formula, the useDefaultFormula parameter must be set to true, and after changing settings you will need to delete the existing world and restart the server.

Formula Examples to Try

Not sure where to begin? These examples show what TerraMath can produce:

  • sin(x) creates a gentle wavy landscape
  • abs(sin(x/10))*exp(cos(z/15))*8 + tanh(sqrt(x^2 + z^2)/20)*15 builds spiky, volcanic-style terrain
  • sin(x/8)*cos(z/8)*10 + abs(sin(x/20))*15 + sqrt(abs(x/10))*5 forms rolling mountains
  • floor(sin(x/20) * cos(z/20) * 5) * 4 + sqrt(x^2 + z^2)/10 generates terraced plateaus

You can combine trigonometric, hyperbolic, logarithmic, and rounding functions freely, and even use random number generators like rand() or randnormal() for unpredictable results. Be careful with heavy formulas, though, since extreme expressions can hurt performance and slow chunk loading.

Final Thoughts

TerraMath turns world generation into a creative mathematical playground. If you want to download TerraMath and start experimenting, grab it for Fabric on Minecraft 1.20 to 1.21.x and see what your formulas can build. The only limit is your imagination and, perhaps, your grasp of calculus.