Math Function
by aiLinMc
Math Function lets players define mathematical expressions as reusable functions and apply them to projectiles, tools, and block structures in NeoForge 1.21.1.
What it does
Players define their own functions with the customfunction command, then save, list, look up, evaluate, modify and remove them. Saved functions are written to a custom functions file, so they survive restarts. A function can be used anywhere the mod accepts an expression, and the quick evaluation command returns a value without storing anything.
Functions can also be turned into physical results. Block graph generation builds a function as a three-dimensional block structure from a single command. The function enchantment, obtained through commands, can be applied to a bow or other tools, and anvil renaming sets trajectories on arrows, TNT, fireworks and other projectiles, so their flight follows a chosen curve.
Math Function is a NeoForge mod for Minecraft Java Edition 1.21.1 only. Servers that run it need every player to install it too.
Key features
Saved custom functions
Functions defined with customfunction add are kept in a file and reloaded after each restart.
Block graph generation
A single command builds a function's graph as a three-dimensional block structure in the world.
Function enchantment
A bow or tool enchanted through commands makes its projectiles follow a custom mathematical trajectory.
Quick evaluation
The evaluation command returns the value of an expression at a given input without saving it.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
Eval is a Fabric, Forge and NeoForge library for evaluating expressions, published under a custom license for 1.20.1 – 1.21.11 and not open source. Numberous is a NeoForge mod for 1.21.1 under All rights reserved, with a client and server environment and no open source code.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Math Function | NeoForge | 1.21.1 | Client and server | 2026-08-07 |
| Eval | Fabric, Forge and NeoForge | 1.20.1 – 1.21.11 | Not published | 2026-01-23 |
| Numberous | NeoForge | 1.21.1 | Client and server | 2026-04-26 |
Questions
Does Math Function need to be installed on the server?
Which loader and game version does Math Function support?
Where are custom functions stored?
Can a function be used for enchantments?
In the catalog
Math Function is one of 12,078 Decoration mods on ModsFinder, and one of 5,201 Decoration mods for NeoForge. 32,366 mods support Minecraft 1.21.1.
More from aiLinMc
Similar mods
What the author says
Bring mathematics to life in Minecraft with function-powered projectiles and graphs! Math Function is a Minecraft NeoForge mod that transforms mathematical expressions into interactive in-game experiences. Whether you want to visualize functions as block graphs or launch projectiles along custom curves, this mod…
Official listing
- Modrinth page
- modrinth.com/mod/math-function
- Owner
- aiLinMc
- Published
- 2026-04-02
- Updated on Modrinth
- 2026-08-07
- Facts verified
- 2026-10-15
