Data values in material.getMaterial()

Discussion in 'Plugin Development' started by nanerz_123, Aug 13, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    nanerz_123

    I want to use a data value like 35:7 in material.getMatterial() I need it to be an item id. When I try "ItemStack (material.getMaterial(35:7));" it doesn't work! Someone please help me! Thanks in advance! :)
     
  2. Offline

    Garris0n

    The data part has nothing to do with the block id, which is what the Material represents.
     
  3. Offline

    TheHandfish

    Just a heads up, it's much better not to use item IDs as Mojang is planning on dropping those. As a general rule, when you see something is deprecated, it's best to search for alternatives.
     
  4. Offline

    nanerz_123

    TheHandfish it needs to be an item id. Anyway, do you know how to do it? Can you please tell me? :)
     
  5. nanerz_123 I don't know of any use cases it'd "need" to be an id. You'll want to check out the data parameter. It's a byte.
     
  6. Offline

    nanerz_123

    someone help??
     
Thread Status:
Not open for further replies.

Share This Page