Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by GABBOGA99, Aug 17, 2015.
Example john is a pig.....pig attack me ok?
You can do this with custom pathfinder goals and damaging nearby players to the pig.
Another option if you want it to shoot projectiles like arrows, just set the pigs direction towards the player and spawn an arrow with a set velocity.
There are many ways to do this so play around until you find something you like
Thanks! can you give me a small code example ? For making pigs attacking players?
Im not going to spoon feed you.
Use that tutorial, it should get you quite far then you just have to play around with the different functions yourself