Initial commit
This commit is contained in:
11
BookCraigRichardson/booleans/underWater.py
Normal file
11
BookCraigRichardson/booleans/underWater.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from mcpi.minecraft import Minecraft
|
||||
mc = Minecraft.create()
|
||||
|
||||
pos = mc.player.getTilePos()
|
||||
x = pos.x
|
||||
y = pos.y
|
||||
z = pos.z
|
||||
|
||||
blockType = mc.getBlock(x, y, z)
|
||||
blockType2 = mc.getBlock(x, y + 1, z)
|
||||
mc.postToChat("Pod vodoy? " + str(blockType == 9 and blockType2 == 9))
|
||||
Reference in New Issue
Block a user