Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from mcpi.minecraft import Minecraft
- import time
- mc = Minecraft.create()
- from mcpi.minecraft import Minecraft
- mc = Minecraft.create()
- pos = mc.player.getTilePos()
- counter = 0
- y = pos.y
- def getDiamonds():
- pos = mc.player.getTilePos()
- counter = 0
- y = pos.y
- for i in range(y):
- counter += 1
- x = pos.x
- y = pos.y - counter
- z = pos.z
- blockType = mc.getBlock(x,y,z)
- if blockType == 56: # алмазы
- mc.postToChat("On " + str(y) + "height diamonds. Fast mine it!" )
- if blockType == 16: #уголь
- mc.postToChat("On " + str(y) + "height coal ore. Fast mine it!" )
- if blockType == 15: #железо
- mc.postToChat("On " + str(y) + "height iron ore. Fast mine it!" )
- if blockType == 14: # золото
- mc.postToChat("On " + str(y) + "height gold_ore. Fast mine it!" )
- if blockType == 21: # лазурит
- mc.postToChat("On " + str(y) + "height lapis_ore. Fast mine it!" )
- if blockType == 73: # редстоун
- mc.postToChat("On " + str(y) + "height redstone_ore. Fast mine it" )
- if blockType == 129: # изумруд
- mc.postToChat("On " + str(y) + "height emerald_ore. Fast mine it!" )
- if y == 0:
- mc.postToChat("There are no more ore. Find another place. Next scanning in 2 seconds get ready " )
- time.sleep(2)
- while True:
- getDiamonds()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement