Initial commit
This commit is contained in:
20
BookCraigRichardson/lists/mechVidenaAlmazRudi.py
Normal file
20
BookCraigRichardson/lists/mechVidenaAlmazRudi.py
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user