Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Huge Impressive Python Examples
- Swimming Pool
- Build a swimming pool!
- '''
- from mcpi.minecraft import Minecraft
- mc = Minecraft.create()
- x, y, z = mc.player.getTilePos()
- y -= 1
- '''==Modify these values to set size=='''
- width = 64
- height = 5
- length = 64
- '''==================================='''
- edgeBlock = 4 #Cobble Stone
- #Clear the area
- mc.setBlocks(x, y, z,
- x + width, y + height, z + length,
- 0)
- #Swimming Pool
- mc.setBlocks(x, y, z,
- x + width, y - height, z + length,
- edgeBlock)
- mc.setBlocks(x + 1, y, z + 1,
- x + width - 1, y - height + 1, z + length - 1,
- 9)
- #Floor is dobule stone slab, because it looks nice!
- mc.setBlocks(x, y - height, z,
- x + width, y - height, z + length,
- 43)
- #Fancy Edge with stone slab
- mc.setBlocks(x, y + 1, z,
- x + width, y + 1, z + length,
- 44)
- mc.setBlocks(x + 1, y + 1, z + 1,
- x + width - 1, y + 1, z + length - 1,
- 0)
- #glow stone inside water
- mc.setBlock(x + 1, y - height, z + 1, 89)
- mc.setBlock(x + 1, y - height, z + length - 1, 89)
- mc.setBlock(x + width - 1, y - height, z + 1, 89)
- mc.setBlock(x + width - 1, y - height, z + length - 1, 89)
- ##diving
- #plank
- mc.setBlocks(x + width/2, y + 1, z,
- x + width/2, y + 4, z,
- 5)
- mc.setBlock(x + width/2, y + 4, z + 1, 5)
- #ladder
- mc.setBlocks(x + width/2, y + 1, z - 1,
- x + width/2, y + 4, z - 1,
- 65)
- #stair
- mc.setBlock(x + width/2, y + 3, z + 1, 53, 7)
- mc.setBlock(x + width/2, y + 4, z + 2, 53, 7)
- mc.player.setPos(x + width/2 + 0.5, y + 5, z + 2.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement