How do I make flying mobs stop staying still?

Started by undertale_lover12314 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Sep 2019
Points:
669

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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

Active 4 years ago
Joined Sep 2016
Points:
1177

User statistics:

  • Modifications: 0
  • Forum topics: 54
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 403
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

Active 1 year ago
Joined Sep 2019
Points:
669

User statistics:

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

This fixed the problem. Thank you.