MetaData to block

Discussion in 'Plugin Development' started by runefist, Oct 28, 2013.

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

    runefist

    Hey guys/girls!

    I have a problem with a plugin and I am trying to modify it myself a bit so the bug is gone, he said it was allowed so I am not doing illegal stuff here :p Ok anyways I try to add a METAdata to a block cause now I have this

    if (block.getType() == Material.WATER
    || block.getType() == Material.STATIONARY_WATER)


    But I want to add something like

    || block.getType() != Material.WATER) <- and that this WATER but than with metadata 1 so it won't do anything with water that is to small :p

    Please give a full answer cause I am really basic with this, I know enough to change code and stuff like that but I have never worked with METAdata so :/

    Thanks,
    Runefist
     
Thread Status:
Not open for further replies.

Share This Page