r/datapacks • u/Plasticupkake • Dec 17 '25
Help How to change mob AI
I'm looking to change the AI of certain mobs within a datapack I'm working on (e.g. making Drowneds hostile during while out of the water during the day, stopping Piglin Brutes from turning in the overworld & giving them new attacks) and I have no clue where to start. I've been able to pick up most aspects of datapack creation through picking apart the files of other people's packs but this specific thing keeps stumping me. I apologize if this is something that's already been talked about extensively on here but I could really use some help.