Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Important

This repository is not being updated and should not be used going forward.

This module has been moved to its own repository here.

Minecraft Query Language (mql)

A subset of MoLang (may eventually be a full implementation). Available as an interpreter or a JIT compiled mode.

Background

Install

Artifacts are published on Jitpack for now. Add the following to your build.gradle(.kts):

Note: {VERSION} should be replaced with the latest version on Jitpack, you can find this here.

dependencies {
    implementation("com.github.hollow-cube.common:mql:{VERSION}")
}

Syntax

mql supports the following syntax

  • Query functions
  • Math & Comparison operators (+, *, ==, etc)

Usage

See the docs.

Future Plans

  • Unify the interpreter and compiler apis
    • Allows for fallback if using unsupported JIT features, permission issues, etc.
  • Temp variables
  • Public variables/querying other scripts
  • Other data types & functions

Contributing

Issues and PRs are welcome! Please refer to CONTRIBUTING.md for more information.

License

This project is licensed under the MIT License.