Learn R Programming

miner (version 0.2.2)

setBlock: Place a block

Description

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

Usage

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

Run this code
# NOT RUN {
mc_connect()
h <- getHeight(0, 0)
setBlock(0, h, 0, 46)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab