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

20 lines
717 B
Python
Raw Permalink 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 shelve
blockIDs = shelve.open("idsFile.db")
ans = input("Введи название блока или букву 'д', чтобы добавить блокТайп: ")
if ans != "д":
if ans in blockIDs:
print(blockIDs[ans])
elif ans not in blockIDs:
print("Вы еще не добавили блока с таким названием :(")
elif ans == "д":
nameOfBlock = input("Введите название блока, который хотите добавить: ")
blockNumber = input("Введите номер этого блока: ")
blockIDs[nameOfBlock] = blockNumber
blockIDs.close()