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

13 lines
482 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()
pos = mc.player.getTilePos()
x, y, z = pos.x, pos.y, pos.z + 1
dopoln = 0
block = int(input("Введите ID блока: "))
estDopoln = int(input("У этого блока есть дополнительный идентификатор? Нет-0, есть-1 "))
if estDopoln != 0:
dopoln = int(input("Тогда введите этот идентификатор: "))
mc.setBlock(x, y, z, block, dopoln)