How do I make flying mobs stop staying still?

Started by undertale_lover12314 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make flying mobs stop staying still?

I have made a bird mob in my mod, and I want it to keep moving forward like the phantom does. When I make it able to fly, it just wanders and stops in the sky like a land mob would. It  looks weird and unnatural because of this. Is there a way to code it to keep flying forward? I have Mcreator 2020.3 and Minecraft 1.15

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when i want a custom mob…
Mon, 06/15/2020 - 23:18

when i want a custom mob with the same type of a existent vanilla mob i usually extend its entity on:

 

public static class CustomEntity extends SquidEntity {
		public CustomEntity(FMLPlayMessages.SpawnEntity packet, World world) {
			this(entity, world);
		}

in this case i made a octoput that moves like a squid, i guess you can do the same for any entity, in theory