Tslat/SmartBrainLib

Vanilla Brain Garbage that would be great if SBL fixed

PizzaPrince24 opened this issue · 4 comments

image

Vanilla Sensors filter NEAREST_LIVING_ENTITIES and NEAREST_VISIBLE_LIVING_ENTITIES through these TargetingConditions that cap the range to 16 blocks. It would be pretty cool if you could change this to be customizable. Thanks Tslat

Tslat commented

I'm gonna leave this one for now until I figure out how I should best fix it
It's problematic to fix, because it's built in to some of the memories and stuff, so I'll have to have a think about how I wanna approach it

If your curious, my temporary fix is to just check if the memory exists at all to determine whether it should target something, combined with manually setting the target of the entity, because the target itself doesn't filter for 16 blocks, only the memory does to hold the target does.

Tslat commented

Yeah that only really works on a localised basis

As a global solution builtin to the lib, it's not suitable

I'll figure it out at some point - cus it's definitely a problem

Tslat commented

Finally got to this in 1.13 via FixedNearestVisibleLivingEntities & ExtendedTargetingConditions