|
1 | | -# ⚠️ This repo has been transferred to Forgejo. New commits can now be found at [https://code.lostluma.net/Pixaurora/janerator](https://code.lostluma.net/Pixaurora/janerator). ⚠️ |
2 | | - |
3 | 1 | # Janerator |
4 | | - |
5 | | -A mod for using multiple types of generators in a single Minecraft world to have more varied terrain, such as flat and normal. |
6 | | - |
7 | | -This is done by graphing an inequality on the horizontal plane (x and z coordinates) of the world and then using an alternate generator for where that inequality returns true. |
8 | | -By creating a more complex inequality, you can make a world take almost any shape, just like how the base game allows for endless creativity! |
9 | | - |
10 | | - |
11 | | - |
12 | | -# Graphing Inequalities |
13 | | - |
14 | | -Using an example inequality `x > z` will create its respective graph in-game: |
15 | | - |
16 | | - |
17 | | - |
18 | | -You can also define variables, which can then be used in a final inequality which is what decides where each type of generator is used. |
19 | | - |
20 | | -For example, the first screenshot can be created using the following variables and inequality: |
21 | | - |
22 | | - variables: [ |
23 | | - "phi = (1 + sqrt(5)) / 2", |
24 | | - "log_phi = ln(phi)", |
25 | | - "dist_squared = x^2 + z^2", |
26 | | - "angle = ln(dist_squared) / log_phi" |
27 | | - ], |
28 | | - inequality: "(z - x * tan(angle)) * sgn(tan(angle) * csc(angle)) > 0" |
29 | | - |
30 | | ---- |
31 | | - |
32 | | -All math is parsed and evaluated using mXparser, so you can use its own docs where relevant to help you write equations. |
33 | | - |
34 | | -## Built-in Functions and variables |
35 | | -* [Variables (ie. pi, e, etc.)](https://mathparser.org/mxparser-tutorial/built-in-constants/) |
36 | | -* [1 argument functions (ie. sin, tan, ln, etc.)](https://mathparser.org/mxparser-math-collection/unary-functions/) |
37 | | -* [2 argument functions (ie. mod, log(a,b) etc.)](https://mathparser.org/mxparser-math-collection/binary-functions/) |
38 | | -* [3 argument functions](https://mathparser.org/mxparser-math-collection/3-args-functions/) |
39 | | -* [Functions with an arbitrary amount of variables (ie. max)](https://mathparser.org/mxparser-math-collection/variadic-functions/) |
| 2 | +This repository has been moved to [forge.pixaurora.net](https://forge.pixaurora.net/Rina/janerator). |
0 commit comments