This is the support section for those modding with Forge. Help with modding goes in here, however, please keep in mind that this is not a Java school. You are expected to have basic knowledge of Java before posting here.
YouTube Modder Support: Modders who are preparing for 1.18 Anybody please drop in my request I want to make an airplane Realizing lift and gravity on an airplane A realistic airplane! It is difficult to make it. I want to implement the cockpit gui and key bindings and I want to make these custom entities on YouTube, please contact me.
with the way you use, no. If you want to avoid that, you need to replace the Target Goal of the Entity. btw, this is the better way to prevent monsters from attacking the Player instead setting the target to null