Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arpruss committed Jun 21, 2015
1 parent 6d5e205 commit d261269
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python2-scripts/mcpipy/mcpi/minecraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def getBlocks(self, *args):
"""Get a cuboid of blocks (x0,y0,z0,x1,y1,z1) => [id:int]"""
return int(self.conn.sendReceive_flat("world.getBlocks", floorFlatten(args)))

# must have no NBT tags in any Block instances
# must have no NBT tags in Block instance
def setBlock(self, *args):
"""Set block (x,y,z,id,[data])"""
self.conn.send_flat("world.setBlock", floorFlatten(args))
Expand All @@ -233,6 +233,7 @@ def setBlockWithNBT(self, *args):
data = list(flatten(args))
self.conn.send_flat("world.setBlock", list(floorFlatten(data[:5]))+data[5:])

# must have no NBT tags in Block instance
def setBlocks(self, *args):
"""Set a cuboid of blocks (x0,y0,z0,x1,y1,z1,id,[data])"""
self.conn.send_flat("world.setBlocks", floorFlatten(args))
Expand Down

0 comments on commit d261269

Please sign in to comment.