1.14.4 Make hostile entity move / attack

Discussion in 'Spigot Plugin Development' started by art0007i, Feb 24, 2020.

  1. I would like to make hostile entities move / attack when clicked. I want it to move to the current location of the player who clicked it when left clicked and attack the player when right clicked. Detecting the clicks is easy but I have no clue on how to make the entities move / attack.
     
  2. If you are using NMS & custom entites -> PathFinderGoals.
    I do not believe there is a „Bukkit“ / „Spigot“ way of doing this
     
    • Useful Useful x 1
  3. Yeah you are right on that one,the only way to change the AI of a entity is to mess with nms and pathfindergoals,wish spigot would implement a way to do it
     
  4. I see, I will look into the NMS custom entities and see what I can figure out. Thanks for the help.