getBlocks: Determine block types in a cuboid

Description Usage Arguments Value Examples

View source: R/getBlock.R

Description

Determine block types in a cuboid for which one corner is at the position (x0, y0, z0) and the opposite corner is at the position (x1, y1, z1).

Usage

1
getBlocks(x0, y0, z0, x1, y1, z1)

Arguments

x0

A numeric value giving the starting north / south position of the cuboid.

y0

A numeric value giving the starting height of the cuboid.

z0

A numeric value giving the starting east / west position of the cuboid.

x1

A numeric value giving the north / south position of the opposite corner of the cuboid.

y1

A numeric value giving the ending height of the opposite corner of the cuboid.

z1

A numeric value giving the ending east / west position of the opposite corner of the cuboid.

Value

An 3-D array of integers where each integer gives the ID of the type of a block in the cuboid.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
mc_connect()
h <- getHeight(0,0)
block_types <- getBlocks(0, h, 0, 1, h + 3, 2)
block_types

find_item(id = block_types[1, 1, 1])

## End(Not run)

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