from mcpi.minecraft import Minecraft mc = Minecraft.create() import time blocks = [] while True: hits = mc.events.pollBlockHits() if len(hits) > 0: hit = hits[0] hitX, hitY, hitZ = hit.pos.x, hit.pos.y, hit.pos.z block = mc.getBlock(hitX, hitY, hitZ) blocks.append(block) if "56" in blocks: mc.postToChat("Pssss, beri rudu bistree!") time.sleep(0.2) break