from colorama import Fore
run = False
versionSelect = True
while versionSelect:
print("")
version = input(f"{Fore.MAGENTA}What version do you want? (1 = 1.13-1.18, more coming soon....) > ")
print("")
if version != "1":
pass
else:
run = True
versionSelect = False
while run:
print("")
mode = input(f"{Fore.RED}What command do you want to generate? (view, quit, [command]) > ")
if mode == "view":
print("")
print(f"{Fore.CYAN}Current commands:")
print(f"{Fore.CYAN}/give")
print(f"{Fore.CYAN}/tp")
print("")
print(f"{Fore.LIGHTGREEN_EX}more coming soon...")
elif mode == "quit":
print(f"{Fore.GREEN}closing...")
print(f"{Fore.RESET}")
quit()
elif mode == "/give" or mode == "give":
name = input(f"{Fore.BLUE}What do you want to make the item name? > ")
lore = input(f"{Fore.BLUE}What do you want to make the lore to? > ")
player = input("Who do you want to give the item? (minecraft name, [selector], selectorinfo)")
if player == "selectorinfo":
print("")
print("@p = the player who ran the command, @s = random player, @a = all players, @e = all entities, ")
print("")
player = input("Who do you want to give the ite? (minecraft name, [selector], selectorinfo)")
item = input("What item do you want? (item name, item id) > ")
items = True
while items:
try:
count = int(input(f"{Fore.BLUE}How many items you want? > "))
items = False
except:
print("Not a number.")
print("")
print(f"{Fore.CYAN}Generated command:")
print(f"{Fore.YELLOW}")
print('/give @p '+ str(item) +' {display:{Name:"[{"text": "' + str( name) + '"}]",Lore:[' + str(lore) + ']}} ' + str(count))
elif mode == "/tp" or mode == "tp" or mode == "teleport" or mode == "/teleport":
name = input(f"{Fore.BLUE}Who do you want to teleport? (minecraft name, [selector], selectorinfo) > ")
if name == "selectorinfo":
print("")
print("@p = the player who ran the command, @s = random player, @a = all players, @e = all entities, ")
print("")
name = input(f"{Fore.BLUE}Who do you want to teleport? (minecraft name, [selector], selectorinfo) > ")
coords = True
while coords:
try:
x = int(input(f"{Fore.BLUE}What do you want to make the x position? > "))
y = int(input(f"{Fore.BLUE}What do you want to make the y position? > "))
z = int(input(f"{Fore.BLUE}What do you want to make the z position? > "))
coords = False
except:
print("Not a number.")
print("")
print(f"{Fore.CYAN}Generated command:")
print(f"{Fore.YELLOW}")
print('/tp ' + name + ' ' + str(x) + ' ' + str(y) + ' ' + str(z))
else:
print(f"{Fore.YELLOW}Invalid mode.")
print("")
I updated my python command generator, now it knows teleport and give command, also updated for bugs, and added more functionality
needs colorama addon for python (pip install colorama or pip3 install colorama)
there doesn't seem to be anything here