write_text: Write text in minecraft

Description Usage Arguments Value Examples

View source: R/write_text.R

Description

Write some text in minecraft, using blocks

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
write_text(
  text,
  lowerleft,
  font = c("4x5", "4x6", "4x8", "6x6", "8x6", "6x8", "8x8", "4x12", "6x12", "8x12",
    "8x16", "16x16"),
  id = 1,
  style = 0,
  dir = c("north", "south", "east", "west", "up", "down"),
  top = c("up", "east", "west", "north", "south", "down")
)

Arguments

text

A character string to be written in blocks

lowerleft

Vector of length 3 representing the location for the lower-left corner for the text.

font

Font size to use

id

Block type to use to write the text

style

Block style to use to write the text

dir

Direction the text should run

top

Direction that the top of the text should point

Value

None

Examples

1
2
3
4
5
6
## Not run: 
library(miner)
v <- getPlayerPos()
write_text("Hello!", v+c(5,3,0), font="4x8")

## End(Not run)

ropenscilabs/miner.extra documentation built on Dec. 20, 2020, 1:25 p.m.