How to make custom entity swim in custom fluid?

Started by bobzuma on

Topic category: Help with modding (Java Edition)

Last seen on 17:59, 25. Jun 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make custom entity swim in custom fluid?

I am currently trying to make a custom water mob which can swim in a custom fluid I've created. The custom fluid is based on water, so I thought that maybe my custom entity's AI would work there too, but it didn't. Is there anything I can do with editing the code itself? Is there some workaround to this using procedures perhaps? Any advice would be appreciated. 

Last seen on 02:37, 13. Apr 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have several mobs able to…
Sat, 06/03/2023 - 03:03

I have several mobs able to swim in a custom fluid near-identical to water. I use the "Fly around" AI task/goal for them instead of the swimming one, with an "Additional continue condition" checking to see if the entity is "in water or bubble column" or not.

I also just have them marked as water entities; not flying ones. Even though the flying task saying it's "only for flying entities", it still functions for other mobs.