Solved Right clicking a dragon part

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

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

    MRANDOM

    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. Online

    timtower Administrator Administrator Moderator

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

    MRANDOM

    both of them dont work.
     
  4. Offline

    Kars

  5. Offline

    MRANDOM

Thread Status:
Not open for further replies.

Share This Page