Posted July 12, 20232 yr 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 !
July 13, 20232 yr if you are porting from a super-old version, go to https://discord.neoforged.net/, and then to bot-commands channel. you can use bot there to find out the mojang name of the old function, and then to find the new name. let's not get into details of me giving you a link to a discord channel of a forge fork. it's the only place i know of that can translate between obfuscated names, mojang names and mcp names.
July 13, 20232 yr Author 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.