Jump to content

[1.12.2] override AI of vanilla mobs [Solved]


DeBugger

Recommended Posts

Hey guys,

Im wondering how to override the AI of the vanilla mobs. Im dont want to add a new mob with (custom) AI, I want to override the vanilla AI for e.g. zombies. For example: a default vanilla zombie shouldn´t attack villagers and players anymore.

DeBugger

 

PS: Why does the Forge Doc dont have a chapter about entities??

Edited by DeBugger
Link to comment
Share on other sites

3 minutes ago, DeBugger said:

Why does the Forge Doc dont have a chapter about entities?? 

Because no one has taken their time to detail the massive amount of information an entity is.

3 minutes ago, DeBugger said:

Im wondering how to override the AI of the vanilla mobs.

EntityLiving has a public field called tasks that you can modify to have your tasks.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

6 minutes ago, DeBugger said:

Thank you. But do I have not to link my tasks to e.g. EntityZombie?

Yes, use the EntityJoinWorldEvent.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

  • 1 year later...
7 minutes ago, gameDevGandalf said:

@DeBugger did you find any solutions?

 

 

 

Make you own thread, and if you're using 1.12, it isn't supported here anymore.

It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".

Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.