Material class redsand

Discussion in 'Plugin Development' started by mcdorli, Sep 3, 2015.

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

    mcdorli

    Hello, I'm currently updating one of my world generators. I wanted to add some biome specific features. When i tried to create the mesa biome, i couldn't place redsand on the top. There is no constant under the Material class for it. Is there a way, to set the damage value of a material?

    generator: http://dev.bukkit.org/bukkit-plugins/extremeterrain/

    Thanks

    Update: I also got stuck with the podzol too.

    <Edited by bwfcwalshy: Merged posts, please use the edit button rather than double posting.>
     
    Last edited by a moderator: Sep 3, 2015
  2. Offline

    Anrza

    Red sand is a variation of sand. http://minecraft.gamepedia.com/Red_sand

    Normal sand has the data value 0, while red sand has 1. Use Block#setData(1) to change it to red sand. A Material has no damage value, I think you're confusing it with ItemStack.
     
  3. Offline

    mcdorli

    Thank you, it worked.
     
Thread Status:
Not open for further replies.

Share This Page