1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Event when player throws a potion

Discussion in 'Development' started by ethaniccc, Mar 17, 2020.

  1. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    Is there a particular event done when a player throws a potion? Don't ask why I'm asking this lol
     
  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    EntitySpawnEvent, maybe PlayerInteractEvent
     
    HimbeersaftLP and ethaniccc like this.
  3. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    Yeah you're right! I was using PlayerInteractEvent for other items but apparently, if you cancel the event, it prevents the potion from being thrown. Thanks!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.