zenonet / McFuncSharp

A high level scripting language that transpiles to McFunction (Minecraft Datapacks)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

McFuncSharp

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

McFuncScript is a programming language that transpiles to McFunction (Minecraft Datapack Language). It uses FuncSharp for Datapack Generation.

Language Features

  • 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
    • String
    • Number
    • Vector (3D)
    • Entity (reference using a tag)
    • EntityType1
    • BlockType1
  • Advanced Minecraft specific functionality:
    • raycasting

Footnotes

  1. This is a const type meaning it can't be assigned to variables (yet) 2

About

A high level scripting language that transpiles to McFunction (Minecraft Datapacks)


Languages

Language:C# 100.0%