setBlock: Place a block

Description Usage Arguments Value Examples

View source: R/setBlock.R

Description

Place a block at position (x,y,z) by type id

Usage

1
setBlock(x, y, z, id, style = 0)

Arguments

x

A numeric string with north/south position

y

A numeric string with height

z

A numeric string with east/west position

id

A numeric or character string with the ID of a Minecraft item (specify either name or id, not both)

style

A numeric or character string with the style of a Minecraft item (use this argument only if querying by id is provided)

Value

None.

Examples

1
2
3
4
5
6
## Not run: 
mc_connect()
h <- getHeight(0, 0)
setBlock(0, h, 0, 46)

## End(Not run)

ropenscilabs/miner documentation built on March 20, 2018, 8:52 p.m.