Benthic Water Mob

Started by Hellfax on Mon, 08/24/2020 - 23:08

Topic category: Help with modding (Java Edition)

Last seen on 15:48, 23. Oct 2020
Joined Jun 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Benthic Water Mob
Mon, 08/24/2020 - 23:08

Is there a possibility to create a water mob that crawls along the seafloor or can't swim? I've tried setting a normal mob without the "is water entity" tick to spawn as a watercreature or as ambient with the condition of the block at which it spawns being water material and the block below it being solid. None of these have worked, and I don't want to select "is water entity", because that will make it have fish motor movement. I'm trying to make a marine benthic seafloor crab.

Last seen on 22:51, 23. Oct 2020
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could eliminate from the…
Mon, 08/24/2020 - 23:47

You could eliminate from the AI blocks the (does entity swim when in water), bit I guess you have tried this already.

Maybe you could do a normal water mob and, on the tick update procedure, do this:

 

Set velocity vx: [entity velocity x]. vy: [-4]. vx: [entity velocity z]

 

This should make it be "squashed" to the floor and hopefully don't swim like a fish :)

Last seen on 15:48, 23. Oct 2020
Joined Jun 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks, I'll try this when I…
Tue, 08/25/2020 - 04:37

Thanks, I'll try this when I can!