MCFPP is a brand new objected-oriented language that can be compiled into Minecraft Datapack. It aims to write datapacks in a syntax similar to C language, and introduces commonly used concepts in programming, thereby making the writing of datapacks more efficient.
This project is still in the early stage of development and cannot be used for actual use. Some functions have not been implemented, and features may change in future versions. The library is also not complete.
MCSharp is a CSharp library. Using MCSharp, developers can develop datapacks using CSharp. However, this project has been stopped due to technical issues. MCFPP inherits part of the ideas of MCSharp.
JustMCF is a project to simplify mcfunction projects. Using JustMCF, you can not only use the original commands, but also use the simplified commands designed by the project, which can make your commands more concise and efficient.
- Code optimization
- Garbage collection mechanism
- Operator overload
- Sandbox
-
- Syntactic sugar form of native
- Versioned compilation
- Basic library
func example(){
int i = @s.pos[0];
if(i > 0){
execute(as = @s) say("Hello Minecraft!");
}
}
class Example{
int i{
get {
return field * 2;
}
set {
field = value;
}
};
constructor(int i){
this.i = i;
}
func print(){
print(this.i);
}
}
import mcfpp.math;
void example{
float i = 1.5;
float out;
out = pow(i, 2);
print(out);
}
class Example<type T>{
T i;
public Example(T i){
this.i = i;
}
public func print(){
print(this.i);
}
}
func test<type T>(T i){
print(i);
}
func test(){
/execute as @a run say Hello Minecraft!
}
To see more features, please refer to the MCFPP API