Created
December 30, 2016 13:54
-
-
Save yukkura/6db3d4cf3ee42e2821b1c9a71e09cd1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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