[SOLVED]Set Birch wood

Discussion in 'Spigot Plugin Development' started by KyleMan, May 24, 2015.

  1. I am trying to drop a birch log but will only drop a log (OAK) please help I tryed block data but it doesnt work either.
    Code (Text):

    ItemStack drop = new ItemStack(block.getType());
  2. Hi Kyleman!

    You are correct in suggesting that BlockData may be an issue here- i'd suggest you show us the code you used here as this is the way to go about it.
  3. set the drops of the break event to nothing then get the location of the block the player broke then block#.getWorld().dropItemNaturally(new ItemStack(Material.LOG, 1, (short) DATA VALUE GOES HERE);) :p
    #3 NaJated, May 24, 2015
    Last edited: May 24, 2015
  4. This worked! Thanks so much!
  5. np :p