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