Skip to content

Commit

Permalink
0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
arpruss committed Jun 10, 2015
1 parent 2381dd0 commit 4944db3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file modified python2-scripts.zip
Binary file not shown.
Binary file modified python3-scripts.zip
Binary file not shown.
5 changes: 3 additions & 2 deletions python3-scripts/mcpipy/teleport.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
mc = Minecraft()
pos = mc.player.getTilePos()

goldPieces = 10
goldPieces = 0

for i in range(goldPieces):
while goldPieces < 10:
x = pos.x + randint(-10,10)
z = pos.z + randint(-10,10)
if mc.getBlock(x,pos.y-1,z) != GOLD_BLOCK.id:
mc.setBlock(x,pos.y-1,z,GOLD_BLOCK)
goldPieces = goldPieces + 1

startTime = time()
while goldPieces > 0:
Expand Down

0 comments on commit 4944db3

Please sign in to comment.