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

Started by Cosmic_Mango33 on Wed, 11/02/2022 - 23:39

Topic category: Advanced modding

Last seen on 15:10, 2. Jan 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a mob walk on land and swim in the water
Wed, 11/02/2022 - 23:39

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.

Last seen on 00:18, 23. Jan 2023
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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