Materials of different Wood types

Discussion in 'Plugin Development' started by Jobi, May 6, 2012.

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

    Jobi

    Hi,

    I have the problem, that I have a huge list of 3 Dimensional Arrays from the type Material. Now i want to save materials of blocks in it, no problem, but how can i save dark wood as a material? here a little bit of my code:
    Code:
    Belagerung.katapult_elements[1] [3] [7] = Material.OBSIDIAN;
    Belagerung.katapult_elements[1] [3] [8] = Material.AIR;
    Belagerung.katapult_elements[2] [0] [0] = Material.LEVER;
    Belagerung.katapult_elements[2] [0] [1] = Material.WOOD;
    Belagerung.katapult_elements[2] [0] [2] = Material.[dark wood];
    Belagerung.katapult_elements[2] [0] [3] = Material.AIR;
    
     
  2. Offline

    Jogy34

    That won't work. The Material value for all 4 different wood blocks is the same, the only difference is the data value. You best bet would be to make the array 4D and have the fourth section be the data value of the block which for most blocks would just be 0 but for blocks like the dark wooden planks it would be, I believe, 1.
     
Thread Status:
Not open for further replies.

Share This Page