MineInAbyss / Mobzy

Config-driven custom mobs for Spigot using ECS
https://mineinabyss.com/Mobzy/
MIT License
41 stars 8 forks source link

Make mobs uninterested in players on respawn #89

Closed pixelfac closed 2 years ago

pixelfac commented 2 years ago

fix #84

Added new "TargetNearbyPlayer" behavior that checks how recently the player has died. Currently ignores players who have died within 200 ticks = 10 seconds, but that's an easily changed variable. Currently only makes the change for HostileMobs, but a separate pr to add this to the hostile flying mobs is WIP

Boy0000 commented 2 years ago

I'll let @0ffz review the code portion unless it takes years. Tested it locally now and fixed build issues. Works without issue, just like i expected it to.