Plugin Help About Creature's question

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

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


    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.
    Last edited: Aug 12, 2018
  2. Offline


    Not every animal or monster is a subclass of Creature, which therefore has setTarget() implemented (1.13 introduced Mob, to do that, just saying for other people). So you sadly cannot simply let a bat harass another entity, e.g. Player.

    Edit: I just looked up the documentation for Spigot 1.9. The interface Bat indeed does not implement Creature. In order to let a bat harass a player, you have to write your own Bat Class which provides every needed method to work on the server, which is an extremely heavy task.
    Last edited: Aug 29, 2018
Thread Status:
Not open for further replies.

Share This Page