Skip to content

Instantly share code, notes, and snippets.

@yukkura
Created December 30, 2016 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukkura/6db3d4cf3ee42e2821b1c9a71e09cd1a to your computer and use it in GitHub Desktop.
Save yukkura/6db3d4cf3ee42e2821b1c9a71e09cd1a to your computer and use it in GitHub Desktop.
import mcpi.minecraft as minecraft
import mcpi.block as block
mc = minecraft.Minecraft()
pos = mc.player.getPos()
size = 10
for y in range(size):
for x in range(size):
for z in range(size):
mc.setBlock(pos.x+x+1, pos.y+y, pos.z+z+1, block.DIAMOND_BLOCK)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment