Solved Right clicking a dragon part

Discussion in 'Plugin Development' started by MRANDOM, Nov 18, 2020.

  1. Offline


    im tryn to make a thing for riding a dragon, just so i could see how well this could apply to other mobs and for some reason PlayerInteractEntityEvent is not working with the dragon. when ever i do event.getRightClicked(); it works for every other mob. EXCEPT for the dumb dragon. so am i just not allowed to ride the dragon because mc just hates me or somthing?

    event.getRightClicked().getType() == EntityType.ENDER_DRAGON

    edit: all i had to do was, dragon.getParts().contains(event.getRightClicked());
    Last edited: Nov 18, 2020
  2. Offline

    timtower Moderator Moderator

    @MRANDOM Is that with or without the check?
  3. Offline


    both of them dont work.
  4. Offline


  5. Offline


Share This Page