I hate pulling out my calculator to do math for my redstone projects
fn slope(m,x,b) = m*x+b;
slope(1,5,2)
/eval <program>
- Add, subtract, multiply, divide numbers in the minecraft commandline.
- Create simple functions to remove redundant routines.
- Bind native functions
- sin,cos,min,max, and more!
- PR's needed to add more.
Syntax :
A program consists of zero or more functions and an optional expression. If no expression exists, 0 is the result.
fn ident(id, id1, id2) = expr
fn ident() = expr
Basically, any math calculator
1 + 2 - 5
sin(rad(0))
- yields
.49999
Built in constants are PI
, E
, CHUNK
- A CHUNK is 16 ( in minecraft )
- This is a gradle project, and two main scripts exist
- I use intellij to simplify the workflow.
- I don't know how to use anything else for java applications
- generateGrammarSource
- build
- Read this
- Open a pull request.
- I'll review it!