HeroGamers / MyDog

Tamed wolves but at least 10x better
https://www.spigotmc.org/resources/mydog.70260/
MIT License
11 stars 9 forks source link

Many dogs dying of entity cramming while in attack mode (going for mobs underground) #118

Open voltage9000 opened 1 month ago

voltage9000 commented 1 month ago

Type of bug

Other unexpected behaviour

Error log (if applicable)

No response

Bug description

I have a dog army of about 100 dogs or so, but I only took around 40 to a raid in a village. Then I enabled attack mode on the dogs and they all started to bunch up in a corner; targeting whatever mob was underground. They started to die rapidly due to the entity cramming. Can you please fix this, it is very frustrating when many of your dogs die not from mobs but from targeting a corner in the ground.

Steps to reproduce

Trigger attack mode You walk above a cave that is underground Dogs target mobs underground Dogs start to bunch up Dogs die from cramming

Expected behaviour

Ignore mobs in caves underground, except if you are in a cave.

Actual behaviour

Dogs target mobs underground and die from entity cramming.

HeroGamers commented 1 month ago

Sounds like a very valid bug, though I would actually call it a missing feature.

I will add it as a default enabled option that pets take no Cramming damage (if damage event and type of damage is cramming, cancel event).

I think it should be a config option so server admins can still choose to allow cramming damage, so players don't put 500 dogs into a one-block space. But, I would assume that for most servers with active moderation and a chill playerbase (which this plugin was also intended for), this is not an issue.

Added to backlog.