Pulling blocks from -5 to 5 in x, y, and z directions relative to the player position using the Minecraft Python API.
Dynamo Definition Part 1
The definition below obtains the current player position, generates a cross product of coordinates from -5..5 in x,y,z around the player, and obtains the Minecraft blocks at those postions. player.getPos() and getBlock() are custom Python nodes. DateTime.Now allows the graph to run periodically.
Custom Python Node: player.getPos()
mc.player.getPos() uses the Minecraft Python API to get the current player position.
Custom Python Node: getBlock()
mc.getBlock() uses the Minecraft Python API to get the block type at the requested location.
Dynamo Definition Part 2
The definition continues by filtering out AIR Block(0) air blocks and generating a cuboid at each x,y,z coordinate.
Result
Block locations are posted to Minecraft Chat using mc.postToChat() and then output to Dynamo.