FallingBlockEntity land event?

Discussion in 'Plugin Development' started by joehot2000, Mar 31, 2013.

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

    joehot2000

    I would like to get the even when a fallingBlockEntity lands (and then remove the falling block), how do i do that, if it an event, or what?

    thanks in advance!
     
  2. Offline

    the_merciless

    The item will change from a Fallingblock to a Block it may trigger on the blockPlaceEvent but in all honesty im not entirely sure. I have seen this question asked before, do a quick google search
     
  3. Offline

    chasechocolate

  4. Offline

    the_merciless

    I did a little search and found that it triggers a EntityRemoveEvent since it changes from an entity to a block, this may help.

    Actually this looks better:

    Entity org.bukkit.event.block.EntityBlockFormEvent.getEntity ( )
    Get the entity that formed the block.
    Returns
    Entity involved in event
    Definition at line 29 of file EntityBlockFormEvent.java.
     
  5. Offline

    joehot2000

    Hmm, ok, thanks for the help, so there is no accurate way to do this?
    Thanks!
     
  6. Offline

    stirante

    You can also try EntityChangeBlockEvent.
     
  7. Offline

    the_merciless

    Thats called when a mob changes a block, for example when a snowman leaves snow behind.

    Im guessing you are spawning the falling block with your code. if so you can just get the uuid of it and compare it to the entity's uuid returned in EntityBlockFormEvent
     
  8. Offline

    stirante

    chasechocolate likes this.
  9. Offline

    microgeek

    This plus a Metadata value is what I use.
     
  10. Offline

    Havime

    I'm trying to figure out the same thing... EntityChangeBlockEvent changes nothing as far as I've seen. A new event just for this would help unless there is an event that I haven't tried yet.
     
Thread Status:
Not open for further replies.

Share This Page