Skip to content

Documentation

Grant Shotwell edited this page Jul 21, 2020 · 10 revisions

Syntax

The syntax for MCSharp has been designed to be as close as possible to C# syntax.

Classes and Structs

Structs represent a set of variables, while classes represent a set of variables within an entity. (Note: classes have not been implemented yet.)

Defining a Type

Structs can be made the same way as C# structs.

public struct MyStruct {
    ...
}

Defining Members

Members (fields, properties, methods) can be defined the same way as C# members.

Fields

Properties

Methods

Built-in Library

Many types are built-in to run the various commands Minecraft has.

Clone this wiki locally