[][src]Crate langcraft_api

Macros

insert_asm

Allows inserting commands directly into the code that optionally take an input register.

print

See println! for details

print_str

Prints a string literal.

println

A drop-in replacement for Rust's normal println! macro (albiet a very slow one).

turtle_set_raw

Place a block at the turtle's current position.

Enums

McBlock

A limited subset of blocks for convenient usage.

Functions

print_int

Prints out a value to the chat

putc

Write a character to stdout. No text is displayed until a newline is written.

turtle_check

Returns 1 if the block at the turtle's position matches the argument

turtle_get

Returns the block at the turtle's position

turtle_get_char

Returns the char at the turtle's position

turtle_set

Sets the block at the turtle's position

turtle_x

Set the X coordinate of the turtle

turtle_y

Set the Y coordinate of the turtle

turtle_z

Set the Z coordinate of the turtle