Posted 25 August 2013 - 02:18 PM
I am trying to make a simple program to display item id's for minecraft, so far:
write("Item Name:")
input = read()
As you can see I haven't got far without getting to a problem,
To display the I'd, the only way I can think is:
If input == "stone" then
print("I'd = 1")
elseif input == "grass" then
print("I'd = 2")
elseif…..
As you can see it will take a while to write all these out, is there a shorter way? Thanks!
write("Item Name:")
input = read()
As you can see I haven't got far without getting to a problem,
To display the I'd, the only way I can think is:
If input == "stone" then
print("I'd = 1")
elseif input == "grass" then
print("I'd = 2")
elseif…..
As you can see it will take a while to write all these out, is there a shorter way? Thanks!