Using Code Editor to Alter Vanilla Mob AI

Started by ivanwafles67 on Sat, 03/06/2021 - 19:15

Topic category: Help with modding (Java Edition)

Last seen on 15:52, 16. May 2022
Joined Jan 2021

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Using Code Editor to Alter Vanilla Mob AI
Sat, 03/06/2021 - 19:15

I made an item element of sorts and then had a procedure added to it which triggers when this item is right-clicked on a zombie. I want this procedure to change the zombie's AI somewhat, such as making it follow a player when holding a certain item. Is there a line or block of code I could input into the executeProcedure section (where all the code for the procedure events themselves go) of the procedure's .java file to alter a certain mob's AI like this (or at all)?