McFuncSharp is a collection of tools and libraries written in C# designed to generate Minecraft Datapacks.
The core library "FuncSharp" can generate simple Datapacks and add entrypoints.
McFuncScript is a programming language that transpiles to McFunction (Minecraft Datapack Language). It uses FuncSharp for Datapack Generation.
- Variables (statically typed)
- If Statements
- Loops (currently limited by maxCommandChainLength)
- While loops
- For loops
- Functions (transpile to actual minecraft functions; no parameter nor return value support yet)
- Operators
- Comparison (>, <, ==)
- Mathematics (+, -, *, /)
- Not (!)
- Ternary Conditional Operator (condition?positiveOutput:negativeOutput)
- Commands abstracted to functions:
- summon
- setBlock
- kill
- say
- teleport
- Types
- Advanced Minecraft specific functionality:
- raycasting