| locate_blocks | R Documentation | 
Locate the coordinates of blocks in a chunk
locate_blocks(blocks, pattern, negate = FALSE)
blocks | 
 A character array containing block data.  | 
pattern | 
 The pattern to look for. Passed to   | 
negate | 
 If   | 
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.