Created
December 30, 2016 07:39
-
-
Save yukkura/a7e681280855da62efc8ed71da2812c9 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() | |
playerPos = mc.player.getPos() | |
for counter in range(100): | |
if counter % 2 == 0: | |
mc.setBlock(playerPos.x+counter, playerPos.y-1,playerPos.z, block.DIAMOND_BLOCK) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment