How to make a mob walk on land and swim in the water

Started by Cosmic_Mango33 on

Topic category: Advanced modding

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a mob walk on land and swim in the water

I've added a capybara to my mod and I'm trying to get it to swim when in the water, but it only sits still and sinks while playing its swimming animation. When on land, it moves just find and when following an item it moves both in water and on land, but I can't get the mob to swim randomly while in the water, even with the "swim randomly" block inserted.

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
have both wander around and…
Sun, 12/11/2022 - 17:47

have both wander around and swim randomly in the ai goal.

make sure it can breathe water

 

Create a new procedure:

If is Event/Target Entity in water

do return true

return false

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i have the similar issue…
Sun, 01/28/2024 - 13:00

i have the similar issue with crocodile and gharial, but they sit still on land