locate_blocks {rbedrock} | R Documentation |
Locate the coordinates of blocks in a chunk
Description
Locate the coordinates of blocks in a chunk
Usage
locate_blocks(blocks, pattern, negate = FALSE)
Arguments
blocks |
A character array containing block data. |
pattern |
The pattern to look for. Passed to |
negate |
If |
Examples
dbpath <- rbedrock_example_world("example1.mcworld")
db <- bedrockdb(dbpath)
blocks <- get_chunk_blocks_value(db, x=37, z=10, dimension=0)
locate_blocks(blocks, "ore")
close(db)
[Package rbedrock version 0.3.2 Index]