Thank you for your answer, the bot looks useful!
I found a solution by looking at the source code of a mod on github. If people are interested:
https://github.com/AtomicStryker/atomicstrykers-minecraft-mods/blob/1.19/StalkerCreepers/src/main/java/atomicstryker/stalkercreepers/mixin/CreeperSwellGoalMixin.java
Good morning,
I want to know if an entity is in the FOV of a player.
I searched forums and there was a function EntityLiving#canEntityBeSeen that would do what I need.
Does anyone know what has become of this function since? (I work in 1.19.2)
Or an alternative?
Thank you in advance and good day !