How do i make entities avoid standing on specific blocks?

Started by Jaeger223 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make entities avoid standing on specific blocks?

In the mod I am working on, I want the mob to run as far away from its spawn position as physically possible. Since its spawn is likely on a certain type of block, I'm trying to make the entity avoid standing on that block so its first priority becomes to run off it. Is there any way to do this?