How do I make flying mobs stop staying still?

Started by undertale_lover12314 on

Topic category: Help with modding (Java Edition)

Last seen on 22:06, 1. Mar 2024
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

Last seen on 19:53, 2. Jun 2021
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

Last seen on 22:06, 1. Mar 2024
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This fixed the problem…
Tue, 06/16/2020 - 15:34

This fixed the problem. Thank you.