Make Entity Ignore Water

Started by Cosmeticboot on

Topic category: Help with modding (Java Edition)

Last seen on 13:44, 23. Jun 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make Entity Ignore Water

I am making this mod, and one of the entities is a giant. This giant is tall enough to wade through large bodies of water, but instead it just swims at the top layer. I changed it's code so it doesn't float, but that just makes it sink slowly. Is there a way to make it so it ignores water completely? The best example I can think of is the Goatman mod. The Goatman runs through water as if it wasn't there, that would be great for my entity. Does anyone know how to do that?

Last seen on 22:04, 23. Jun 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Perhaps if it takes damage…
Thu, 05/16/2024 - 21:12

Perhaps if it takes damage while in water it will run away?

Last seen on 13:44, 23. Jun 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not trying to get it to…
Thu, 05/16/2024 - 22:01

I'm not trying to get it to run away, I'm trying to get it to ignore the slowing effect water gives it. I want it to walk through rivers like they aren't even there. I don't know if I need to edit it's swim speed, or maybe change the code, but I don't know how to get it to ignore the water.

Last seen on 22:04, 23. Jun 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I see sorry I misunderstood,…
Thu, 05/16/2024 - 22:08

I see sorry I misunderstood,

All I can think of is perhaps set it to float or ignore gravity to some degree or limit its y height for flight to make it look like its still on land. Or maybe set a speed effect without particles during the time the entity is in water.

Last seen on 13:44, 23. Jun 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you, I found a…
Sat, 05/18/2024 - 15:00

Thank you, I found a solution, I just used a /fill command to remove the water and replace it once it passes the water