Skip to content

Instantly share code, notes, and snippets.

@yukkura
Created December 30, 2016 07:39
Show Gist options
  • Save yukkura/a7e681280855da62efc8ed71da2812c9 to your computer and use it in GitHub Desktop.
Save yukkura/a7e681280855da62efc8ed71da2812c9 to your computer and use it in GitHub Desktop.
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