In 1.14, villagers use an AI system completely independent from the old Goal system. However, this system can be used by any LivingEntity
. This document aims at explaining the basics of that more advanced AI.
Every living entity now has a Brain
. A brain uses memories and sensors to perform tasks and activities.
Memories are a way to save arbitrary data for use by tasks.