How can I check to see if a block falls?

Discussion in 'Plugin Development' started by JigokuSaru, May 6, 2015.

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

    JigokuSaru

    Ok so i want something like this ( I know there is no blockfall event)
    Code:
    public void onFall(BlockFallEvent e){
    if(e.getBlock().getType == Material.Anvil){
    //do whatever
    
    Notice: I know there is a lot of errors in that
     
    Last edited by a moderator: May 6, 2015
  2. Offline

    mine-care

  3. Offline

    Cool_Nick_Name

    Try checking if the block is somehow equal to FallingSand
     
  4. Online

    timtower Administrator Administrator Moderator

Thread Status:
Not open for further replies.

Share This Page