Crates.io | blackstonedf |
lib.rs | blackstonedf |
version | 0.1.0 |
source | src |
created_at | 2023-05-12 23:42:34.101929 |
updated_at | 2023-05-12 23:42:34.101929 |
description | A compiler for the Blackstone programming language. |
homepage | https://blackstonedf.github.io/ |
repository | https://github.com/BlackstoneDF/blackstone |
max_upload_size | |
id | 863395 |
size | 7,159,302 |
Blackstone is a programming language designed to help create plots on the MCDiamondFire Minecraft server.
Blackstone also allows you to distribute your code publicly - whether you just want your game to be open-source or you want to make a library others can use.
Discord DF Website For ease of use with Blackstone, we recommend downloading the Recode Mod.
You can install the compiler using the Cargo toolchain.
cargo install blackstonedf
It will automatically handle building from source for you.
You can also install it through our Releases
page on the sidebar. During official releases, we will compile binaries for Windows & Linux.
Note that none of the bonus features are guaranteed to be implemented. We do think they would be useful, though.
None yet! Let us know if there's some cool ones you'd like to see in our Discord!
Blackstone will allow you to define your game & library in the Blackstone.toml
file.
For example, a Blackstone.toml
for a game would be:
[game]
name = "Islands 2"
id = 51025
And for a library, an example one would be:
[library]
name = "Entity Utilities"
id = "entity_utilities"
description = "This is a library used to make manipulating entities just better."
creator = "Endistic"
todo!()
todo!()
All code must be inside an Event, Function, or Procedure. Here's some basic examples:
// TODO: fix outdated tutorial
playerEvent(Join) {
//supports comments too!
default.sendMessage("Hello world!");
}
func FunnyFunction {
// variables must be manually scoped - local, game, or save
var game.joke = "Among us";
// defaults to local
var list = ["a", "b", "c"];
// default.sendMessage(...) == print(...)
default.sendMessage(joke);
}