Files
pythonmc/BookCraigRichardson/whileLoops/waterCurse.py
BarsTigerMeowcat 8bed7171c2 Initial commit
2020-01-26 12:49:01 +02:00

13 lines
378 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from mcpi.minecraft import Minecraft
mc = Minecraft.create()
import time
input("Точно? Вода потом не уйдет, а останется навсегда (если да, то нажми здесь любую клавишу) ")
count = 0
while count < 30:
pos = mc.player.getTilePos()
mc.setBlock(pos.x, pos.y, pos.z, 8)
time.sleep(1)
count += 1