Skip to content

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

Notifications You must be signed in to change notification settings

zenonet/McFuncSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages