Solved BlockBreakEvent help

Discussion in 'Plugin Development' started by Xerox262, Apr 6, 2015.

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

    Xerox262

    I am trying to figure out how to get what a block would naturally drop, right now my code, when executed runs a rng, then when it is 0 it runs another rng, which tells the plugin how many of the certain block to drop, the only problem is if I use e.getBlock().getType() it will drop stone when stone is mined rather than dropping cobblestone. Any help would be appreciated :) If worst comes to worse I'll just make lots of if's :p

    For clarification, I'm using this to drop the items
    Code:
    e.getBlock().getWorld().dropItem(Location, ItemStack)
     
  2. Offline

    mine-care

    It is a good idea to provide your code in forums so others can hide you directly
     
  3. Offline

    Xerox262

Thread Status:
Not open for further replies.

Share This Page