Solved About Creature's question

Discussion in 'Plugin Development' started by 936796603, Aug 12, 2018.

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

    936796603

    Today I want to Cast Bat to Creature,But i meet a question
    Who can help me?please
    QQ图片20180812171449.png
    QQ图片20180812171458.png
    QQ图片20180812171813.png

    My question is how to cast bat to creature.
    Because I want bats to harass players.
     
  2. Offline

    Zombie_Striker

    Bats are not creatures, so you can cast them to it.

    However, they do extend/implement Mob, which contains the setTarget method.
     
  3. Offline

    936796603

    Ok,Your mean is I can't set bats's target in the plugin

    Really ,Have no moth to do?:'(
     

    Attached Files:

    Last edited by a moderator: Aug 13, 2018
  4. Offline

    Zombie_Striker

    @936796603
    You can, but only on newer updates (Not sure about 1.12, but I know you can on 1.13)
     
    936796603 likes this.
Thread Status:
Not open for further replies.

Share This Page