Author Topic: Are item ids constant? Is there a way to get an id back into a name?  (Read 543 times)

Like if I do:
$bob = nametoID("RocketLauncherItem");
will $bob be the same time every time even if I get new add-ons, or at the very least, restart blockland?
And is there a way to do something comparable to 'idtoName(%a)' ?

I suppose this could be considered a coding question, but I'm really more curious about how the item ids work.

Never mind, I figured it out on my own.
It's like this:
$bob.getName();
would get it's name back again.

will $bob be the same time every time even if I get new add-ons, or at the very least, restart blockland?
No, but only if you change your add-ons list.

Never mind, I figured it out on my own.
It's like this:
$bob.getName();
would get it's name back again.
You can also do RocketLauncherItem.getID(); to get the ID.