Source-checkedWorld generation

TerraMath

by addavriance · for Minecraft

Create custom terrain using mathematical functions and formulas for unique procedural world generation.

24KDownloads
16d agoLast updated
GPL-3.0-onlyLicense
Fabric · Forge +1Loaders

About TerraMath

From Modrinth

Create custom terrain using mathematical functions and formulas for unique procedural world generation.

Discord Modrinth Curseforge GitHub

Fabric API Minecraft

Description

TerraMath is a Minecraft 1.20 - 1.21.x mod that allows you to customize world generation using mathematical functions. Create unique landscapes by defining terrain height through mathematical formulas!

You can also join my Discord to find more formulas or share yours.

Features

  • Custom world generation through mathematical formulas
  • Adjustable basic generation parameters (scale, height, variation, smoothing)
  • Configurable noise overlay on top of your base formula
  • Support for mathematical constants in formulas

How to Use on Client

image

  • World generation settings interface

Parameter Configuration

  1. Go to "World" tab in world creation screen
  2. Open the terrain settings screen
  3. Enter your desired formula in the field
  4. Adjust additional parameters (optional):
  • Scale
  • Base Height (determines average surface level)
  • Height Variation (amplitude of changes)
  • Smoothing (terrain transition smoothness)
  1. Choose noise type and settings (optional):
  • Noise type: Perlin, Simplex, Blended, Normal
  • X, Y, Z coordinate multipliers
  • General noise height multiplier

How to Use on Server

  1. Start the server with TerraMath mod installed
  2. Check the config folder, there will be a terramath.json file
  3. Set the necessary parameters manually in the file, or...
  4. ...configure the mod on your client
  5. Set the parameters and save the config
  6. Transfer the config file to the server's config folder

Important Server Notes:

  • For the config to apply to a new world, make sure the useDefaultFormula parameter in the config is set to true
  • After changing config settings, you'll need to delete the existing world and restart the server for the new terrain formula to take effect
  • Alternatively, you can transfer your entire world folder from a client to the server - the world will continue to generate according to the same formula without requiring config changes

Formula Examples

  • Basic wavy landscape: sin(x)image
  • Spiky volcanic-like terrain with steep slopes: abs(sin(x/10))exp(cos(z/15))8 + tanh(sqrt(x^2 + z^2)/20)*15image
  • Rolling mountains: sin(x/8)cos(z/8)10 + abs(sin(x/20))15 + sqrt(abs(x/10))5image
  • Some crazy and heavy thing: round(sin(x/15))10 + round(cos(z/15))10 + sqrt(abs(sin((x+z)/20)))*15image
  • Terraced landscape with plateaus: floor(sin(x/20) cos(z/20) 5) * 4 + sqrt(x^2 + z^2)/10image
  • Crater-filled terrain: 10 (1 - exp(-((x/30)^2 + (z/30)^2) / 2)) + 5 perlin(x/50, 0, z/50)image

Available Functions and Operators

Mathematical Functions:

Trigonometric:
- sin(x) - sine
- cos(x) - cosine
- tan(x) - tangent
- csc(x) - cosecant
- sec(x) - secant
- cot(x) - cotangent
- asin(x) - inverse sine
- acos(x) - inverse cosine
- atan(x) - inverse tangent
- atan2(x,y) - two-argument inverse tangent
- acsc(x) - inverse cosecant
- asec(x) - inverse secant
- acot(x) - inverse cotangent

Hyperbolic:
- sinh(x) - hyperbolic sine
- cosh(x) - hyperbolic cosine
- tanh(x) - hyperbolic tangent
- asinh(x) - inverse hyperbolic sine
- acosh(x) - inverse hyperbolic cosine
- atanh(x) - inverse hyperbolic tangent
- csch(x) - hyperbolic cosecant
- sech(x) - hyperbolic secant
- coth(x) - hyperbolic cotangent
- acsch(x) - inverse hyperbolic cosecant
- asech(x) - inverse hyperbolic secant
- acoth(x) - inverse hyperbolic cotangent

Root and Power:
- sqrt(x) - square root
- cbrt(x) - cube root
- root(x,n) - nth root of x
- pow(x,y) - x raised to power y
- exp(x) - exponential (e^x)

Logarithmic:
- ln(x) - natural logarithm
- lg(x) - base-10 logarithm

Read the full description on Modrinth →

Highlights

From source data

Game versions

Supports 15 Minecraft versions, the newest being 26.2.

Loaders

Runs on Fabric, Forge and NeoForge.

Footprint

Rated a light load on a server.

TerraMath on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers. We download it from Modrinth, place it, and restart the server.
Server side
Required on the server
Server type needed
Fabric, Forge, NeoForge
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.4.0-26.2+neoforge, released 2026-10-19

Game versions by loader

LoaderGame versionsNewest
Forge1.20 to 26.2 (14 versions)26.2
Fabric1.20.2 to 26.2 (11 versions)26.2
NeoForge26.1.2 to 26.2 (2 versions)26.2

From 10 recorded builds of TerraMath.

Recent builds

BuildReleasedGame versionsLoaders
1.4.0-26.2+neoforge2026-10-1926.2NeoForge
1.4.0-26.2+forge2026-10-1926.2Forge
1.4.0-26.2+fabric2026-10-1926.2Fabric
1.4.0-26.1.2+neoforge2026-10-1926.1.2NeoForge
1.4.0-26.1.2+forge2026-10-1926.1.2Forge
1.3.0-1.20.6+forge2025-05-131.20.5 to 1.21.4 (7 versions)Forge

Dependencies

  • Required: modrinth project P7dR8mSH (modrinth, not in our catalogue)

Declared by the newest build that lists any. Required ones are installed with it on one-click installs.

Run TerraMath on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

World generation

Changes or adds to how new terrain, biomes and structures are created.

Runs on your server

From source side support

Modrinth lists TerraMath as required on the server. Check its Modrinth page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
FabricForgeNeoForge
Runs on
Serverrequired on the server
Game versions
26.2 and 14 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-20Open ↗
  • ✓Authoraddavriance, as published on Modrinth
  • ✓LicenseGPL-3.0-onlyFree

TerraMath, answered

Generated from the mod’s own source data.

Do my players need to install TerraMath?

Modrinth lists TerraMath as required on the server. Check its Modrinth page to see whether players need it too.

Which loaders does it support?

Fabric, Forge and NeoForge.

Is it free?

Yes. TerraMath is free to download from Modrinth. Its license is GPL-3.0-only.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run TerraMath on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add TerraMath in one click.