Quote from evildoctorbluetooth
Hi, I read your question a couple of times to make sure that I understood it.
To ease this I will answer the first question in this post, if I manage to sus out the answer to the other questions, they may go in other posts.
So you want the value contained in one variable to affect the name of another.
Assumption: what you want is
I can see what you are trying to say and do, but I dont see why, if you do this, you will have issues refering to the variable in the future if the int changes.
int testing = 1; //therefore variables name is storage1. storage1 = "word" testing = 2;
At this point, how will you know what the variable name is in order to refer to it.
I think it is possible you are refering to arrays, if so, say yes, and I will reply with help on how to do these.
The first example you provided is what I'm going for.
What I'm working on is a block that will drop a random item a random amount of times. I plan on putting the above code within a for loop to do so because if I use:
EntityItem entityitem = new EntityItem(world, (float)i + f2, (float)j + f3, (float)k + f4, new ItemStack(Item.ingotIron)); EntityItem entityitem = new EntityItem(world, (float)i + f2, (float)j + f3, (float)k + f4, new ItemStack(Item.ingotIron));
I get an error when recompiling that states "entityitem" has already been defined. For each item drop I have to have a different variable from entityitem, if that makes sense.
Also in regards to my 3rd question would something like this work.
String variableA = Item.coal; EntityItem entityitem = new EntityItem(world, (float)i + f2, (float)j + f3, (float)k + f4, new ItemStack( + variableA + ));
Sorry if what I'm saying is confusing, I'm trying my best to describe what I'm trying to accomplish.