All Pets considered aggressive.
mibby opened this issue ยท 6 comments
Jenkins build 198.
So here's a fun one for ya... All pets are considered aggressive to other mobs. When spawning in a pet, if you are near an iron golem or spawn in an iron golem mob, it will attack the pet. Even funnier, if you attack the iron golem, it will get even more mad and swing faster. Eventually his arms become turbines trying to hit the invincible pet.
E.g. Pet squid. Iron golem will start whacking at it.
Shouldn't all pets instead be passive? Again, this occurs with all pets! Even ones that would be considered normally passive or neutral.
Possibly related? Because butcher kills aggressive mobs unless specifying a passive flag.
From IRC, heavily edited.
20:37 mibby_ So DSH105. Thoughts on pets being aggressive?
20:46 DSH105 mibby_: I think I can work a fix
20:46 mibby_ Would also fix butchering pets too, unless specifying butcher all passive pets flag.
20:47 DSH105 I *think*
20:47 DSH105 It may not fix the butchering though
20:48 mibby_ Actually...
20:48 mibby_ You could specify pets as an actual pet instead of passive or aggressive mob.
20:48 DSH105 is it worldedit? O.o
20:48 mibby_ As there is also a pet flag for tamed mobs.
20:48 DSH105 oh?
20:48 mibby_ Both worldedit and essential's butcher does it.
20:48 mibby_ But if you had pets classified as tamed, an actual pet, it would fix butcher I believe.
20:48 DSH105 My "fix" is that pets are "Ownable"
20:49 mibby_ As it would be considered like a tamed ocelot or wolf.
20:49 DSH105 yeah
20:49 mibby_ Butcher pet flag is /butcher -p
20:49 DSH105 Hopefully that will work
20:50 mibby_ And that should also fix the issue with iron golems attacking because it is a tamed "pet"?
20:50 DSH105 Yeah
20:50 DSH105 That's where I got the idea from
20:50 mibby_ You just have to make sure it doesn't have a wolf property so it doesn't attack mobs.
20:50 mibby_ Or have the ocelot property where creepers run away from the pet.
20:51 DSH105 I looked through the Iron Golem's pathfinding goals and found that it ignored EntityOwnable
20:51 mibby_ So classifying pets as "tamed" basically. Not aggressive, passive, or ambient.