New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.11] Add a way to modify Entity AI #3615
Conversation
@@ -171,6 +171,7 @@ | ||
@@ -108,6 +108,7 @@ | ||
|
||
protected void func_184651_r() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this named?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use the bot yourself to find out :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend using this extension if using Chrome
https://chrome.google.com/webstore/detail/mcp-srg-mapper/ijjbogjfmngomjdmnabifgckbonmcebh
You need to fix the merge conflict. |
why are you calling the superclass initialization after the subclass initialization? |
I would suggest modifying their AI only when they are added to the world. The patch is too big and meaningless. |
I don't see much of a point to this to be honest ,we can already listen to entity spawn events and edit the task list using reflection. the patch is too big for the value it returns |
Or to patch after the call of |
Probably to allow vanilla to add it's AI tasks before the event is fired |
Ah, didn't notice those events |
Added a way to modify Entity AI through an event. Works with any Entity as long as it has an instance of EntityAITasks.