I created a water entity, so I checked the case "Is water entity", and I added everything to make a Water Entity, but when I spawn my entity in the water, it dies after few seconds.
I took screenshots of the settings of the Water Entity. https://imgur.com/a/zB7rFlQ
You can see here that crabs drown into the water. https://i.imgur.com/Xt7VRTL.mp4
Issue comments
Ok thanks. I will change the panic (as i don't want they panic). Also, custom advancement roots have bugged background again. https://mcreator.net/forum/61120/custom-advancement-roots-have-bugged-b…
You don't generally need to turn on drowning immunity on water entities as this is by default.
I placed them in water cube and they did not drown, are you sure this crab died due to suffocation? I was not able to make it die by putting it underwater.
One thing I suspect is that panic when attacked makes them go out of the water and they somehow get stuck in the stone. But why I don't now unfortunately, I will keep trying, if you find anything useful, please let me know too.