EntityDamageByBlockEvent?

Discussion in 'Plugin Development' started by Jozeth, Sep 1, 2013.

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

    Jozeth

    What calls the EntityDamageByBlockEvent? Is it when a player is stuck in a block and starts to suffocate?
     
  2. Offline

    caseif

    You're thinking of the EntityDamageEvent. You'd just need to check the damage type from the event to make sure the player (check that too) is suffocating. I'm not sure of the exact enum value, but it shouldn't be too tricky to figure out. Probably SUFFOCATION or something along those lines.
     
  3. Offline

    Jozeth

    I know that, but what calls the EntityDamageByBlockEvent?
     
  4. Offline

    caseif

    Sorry, I completely misunderstood your question. :p I've never used it before, but if I had to guess, I would say it's called when an entity is pricked by a cactus.
     
    Jozeth likes this.
Thread Status:
Not open for further replies.

Share This Page