Plaintext list of all item names

Discussion in 'Plugin Development' started by MyPasswordIsPassword, Jan 29, 2013.

Thread Status:
Not open for further replies.
  1. Is there anywhere I can get a formatted list of all the item names in Minecraft, sorted by ID number? For example:
    1 Stone
    2 Grass
    2:1 Grass with one damage
    3 Dirt
    The exact format doesn't matter, as I can change my code to match it, as long as it is sorted by ID.
  2. Offline


    I would just write a script to do it:
    For now, just write to the config
    1. public void writeMaterials() {
    2. for(Material m:Material.values()) {
    3. Integer id = m.getId();
    4. String name = m.toString();
    5. getConfig().set("Materials."+id.toString(), name);
    6. }
    7. saveConfig();
    8. }

    That should write a nice list to your config with them all
    This was how I generated my config for a plugin
Thread Status:
Not open for further replies.

Share This Page