Mob Battle Mod (Forge)

Mob Battle Mod (Forge)

787k Downloads

Teamed Mobs can't see opponents through walls

Yellowbross opened this issue ยท 0 comments

commented

Modloader

Forge

Minecraft version

1.19.2

Modloader version

Forge 43.1.47

Mod version

2.4.3

Description

as of 2.4.3, mobs on teams are unable to actually target other-team mobs until they have line of sight. this is a problem since without automatic targeting through walls, things such as raid battles have become a lot more frustratingly tedious due to how much of a waiting game it becomes, as opposed to how raid battles function on unsupported versions such as 1.16 (here, mobs would target the raiders right away, making raid battles a lot more seamless + quicker).

to fix this, i'd imagine some sort of system should be implemented that if a teamed mob doesn't have a target, automatically tries to set the mob's target to the closest other-team mob every tick (don't forget to add a check for the "ignored_mobs" tag though. maybe also a check to make sure both mobs are alive first)

video below shows a perfect demonstration of this problem:
https://user-images.githubusercontent.com/85346124/199844700-97f100cf-2f26-4316-a207-917ac809a315.mp4

Steps to reproduce

easiest way of reproducing:

  1. spawn 2 zombies and add them to opposing teams; make sure they don't have line-of-sight with each other (place a wall between them)
  2. the zombies fail to target each other
  3. break part of the wall to where the 2 zombies can see each other, notice that only after the wall being broken they start to fight

Mods that might affect the issue

No response

Logs

(logs doesn't have any errors or anything useful, but it's required for some reason so)
debug.log