How do I monitor that water bottle is full of water?

Discussion in 'Plugin Development' started by White_Soul, Jan 29, 2023.

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

    White_Soul

    How do I monitor that water bottle is full of water?
    PlayerInteractEvent does not work with
    There is no event.
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    White_Soul

    I want to know how to get a full water bottle.
    And take it away.
     
  4. Offline

    timtower Administrator Administrator Moderator

    When? Always? On a certain event?
     
  5. Offline

    White_Soul

    PlayerInteractEvent thank you ~
     
  6. Offline

    timtower Administrator Administrator Moderator

    Then what code did you use to test it?
     
  7. Offline

    KarimAKL

  8. Offline

    Strahan

    It's pretty simple; check if the item in question is Material.WATER_BUCKET or Material.BUCKET. If it's empty, it's the latter. If it has water, the former.
     
Thread Status:
Not open for further replies.

Share This Page